/* =========================================================
   Varsha Jadhav · Indie iOS Developer
   Shared styles · Primary palette: White + Red · Line icons
   ========================================================= */

:root {
  --red: #ff3b30;
  --red-deep: #d70015;
  --red-soft: #fff1f0;
  --ink: #0b0b0f;
  --ink-2: #2a2a31;
  --muted: #6b7280;
  --line: #ececf1;
  --bg: #ffffff;
  --bg-2: #fafafb;
  --white: #ffffff;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 10px 40px -16px rgba(11, 11, 15, 0.18);
  --shadow-red: 0 16px 40px -14px rgba(255, 59, 48, 0.45);
  --maxw: 1080px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI",
    Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

a { color: inherit; text-decoration: none; }

img, svg { display: block; }

.icon {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

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

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 66px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 1.05rem;
}

.brand .mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--red);
  color: #fff;
  box-shadow: var(--shadow-red);
}

.brand .mark .icon { width: 19px; height: 19px; stroke-width: 1.9; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 0.94rem;
  font-weight: 500;
}

.nav-links a { color: var(--ink-2); transition: color 0.18s ease; }
.nav-links a:hover { color: var(--red); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff !important;
  font-weight: 600;
  transition: transform 0.18s ease, background 0.18s ease;
}
.nav-cta:hover { background: var(--red); transform: translateY(-1px); }
.nav-cta .icon { width: 16px; height: 16px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.18s ease, box-shadow 0.18s ease,
    background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.btn .icon { width: 19px; height: 19px; }

.btn-primary { background: var(--red); color: #fff; box-shadow: var(--shadow-red); }
.btn-primary:hover { background: var(--red-deep); transform: translateY(-2px); }

.btn-ghost { background: var(--white); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--red); color: var(--red); transform: translateY(-2px); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 96px 0 84px;
  background:
    radial-gradient(60% 90% at 85% -10%, rgba(255, 59, 48, 0.10), transparent 60%),
    radial-gradient(50% 80% at 0% 0%, rgba(255, 59, 48, 0.06), transparent 55%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(11, 11, 15, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(11, 11, 15, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(70% 60% at 50% 35%, #000 0%, transparent 75%);
  mask-image: radial-gradient(70% 60% at 50% 35%, #000 0%, transparent 75%);
  pointer-events: none;
}

.hero .wrap { position: relative; z-index: 1; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--red-soft);
  color: var(--red-deep);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.01em;
  border: 1px solid rgba(255, 59, 48, 0.18);
}
.eyebrow .icon { width: 15px; height: 15px; }

.hero h1 {
  margin: 22px 0 0;
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 800;
  max-width: 16ch;
}
.hero h1 .accent {
  background: linear-gradient(120deg, var(--red), var(--red-deep));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero .lede {
  margin: 24px 0 0;
  max-width: 56ch;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--ink-2);
}

.hero-actions {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* ---------- Stats ---------- */
.stats {
  margin-top: 60px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.stat {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.stat .ic {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 11px;
  background: var(--red-soft);
  color: var(--red);
  margin-bottom: 10px;
}
.stat .num {
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.stat .label { color: var(--muted); font-size: 0.92rem; font-weight: 500; }

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section.alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.section-head { max-width: 60ch; margin-bottom: 44px; }
.kicker {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--red);
}
.section-head h2 {
  margin: 12px 0 0;
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  letter-spacing: -0.03em;
  font-weight: 800;
  line-height: 1.08;
}
.section-head p { margin: 14px 0 0; color: var(--ink-2); font-size: 1.08rem; }

/* ---------- Feature cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: rgba(255, 59, 48, 0.35);
}
.card .ic {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border-radius: 13px;
  background: var(--red-soft);
  color: var(--red);
  margin-bottom: 18px;
}
.card h3 { margin: 0 0 8px; font-size: 1.18rem; letter-spacing: -0.01em; }
.card p { margin: 0; color: var(--muted); font-size: 0.97rem; }

/* ---------- Apps (empty state) ---------- */
.apps-empty {
  border: 1.5px dashed rgba(255, 59, 48, 0.35);
  border-radius: 22px;
  background:
    radial-gradient(80% 120% at 50% -20%, rgba(255, 59, 48, 0.06), transparent 60%),
    var(--white);
  padding: 64px 32px;
  text-align: center;
}
.apps-empty .badge {
  width: 72px; height: 72px;
  margin: 0 auto 22px;
  display: grid; place-items: center;
  border-radius: 20px;
  background: var(--red);
  color: #fff;
  box-shadow: var(--shadow-red);
}
.apps-empty .badge .icon { width: 36px; height: 36px; }
.apps-empty h3 { margin: 0 0 10px; font-size: 1.5rem; letter-spacing: -0.02em; }
.apps-empty p { margin: 0 auto; max-width: 52ch; color: var(--ink-2); }
.apps-empty .pill {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 22px;
  padding: 9px 16px; border-radius: 999px;
  background: var(--red-soft); color: var(--red-deep);
  font-weight: 600; font-size: 0.9rem;
}
.apps-empty .pill .icon { width: 16px; height: 16px; }

/* ---------- Support ---------- */
.support-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: stretch;
}
.support-card {
  background: var(--ink);
  color: #fff;
  border-radius: 24px;
  padding: 40px;
  position: relative;
  overflow: hidden;
}
.support-card::after {
  content: "";
  position: absolute;
  width: 280px; height: 280px;
  right: -90px; top: -90px;
  background: radial-gradient(circle, rgba(255, 59, 48, 0.55), transparent 65%);
  pointer-events: none;
}
.support-card .ic {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.10);
  color: #fff;
  margin-bottom: 20px;
}
.support-card h3 { margin: 0 0 10px; font-size: 1.6rem; letter-spacing: -0.02em; }
.support-card p { margin: 0 0 26px; color: rgba(255, 255, 255, 0.74); max-width: 42ch; }
.support-card .email-btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px; border-radius: 999px;
  background: var(--red); color: #fff; font-weight: 600;
  transition: background 0.18s ease, transform 0.18s ease;
}
.support-card .email-btn:hover { background: var(--red-deep); transform: translateY(-2px); }
.support-card .note { margin-top: 18px; font-size: 0.86rem; color: rgba(255,255,255,0.55); display:flex; align-items:center; gap:8px; }
.support-card .note .icon { width: 15px; height: 15px; }

.support-list {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.support-list .row { display: flex; gap: 14px; align-items: flex-start; }
.support-list .row .ic {
  flex: none;
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: var(--red-soft); color: var(--red);
}
.support-list .row h4 { margin: 0 0 2px; font-size: 1rem; }
.support-list .row p { margin: 0; color: var(--muted); font-size: 0.92rem; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-2);
  padding: 44px 0 36px;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 30px;
  flex-wrap: wrap;
}
.footer-brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; }
.footer-brand .mark {
  display: grid; place-items: center;
  width: 32px; height: 32px; border-radius: 9px;
  background: var(--red); color: #fff;
}
.footer-brand .mark .icon { width: 18px; height: 18px; }
.footer-links { display: flex; gap: 26px; font-size: 0.93rem; font-weight: 500; flex-wrap: wrap; }
.footer-links a { color: var(--ink-2); transition: color 0.18s ease; }
.footer-links a:hover { color: var(--red); }
.footer-bottom {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.88rem;
}
.footer-bottom a { color: var(--muted); }
.footer-bottom a:hover { color: var(--red); }

/* ---------- Legal pages ---------- */
.legal-hero {
  padding: 70px 0 40px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(50% 120% at 100% 0%, rgba(255, 59, 48, 0.08), transparent 60%);
}
.legal-hero .back {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--muted); font-weight: 500; font-size: 0.92rem; margin-bottom: 22px;
}
.legal-hero .back:hover { color: var(--red); }
.legal-hero .back .icon { width: 17px; height: 17px; }
.legal-hero h1 { margin: 0; font-size: clamp(2.1rem, 5vw, 3.1rem); letter-spacing: -0.03em; font-weight: 800; }
.legal-hero .updated {
  margin-top: 14px; display: inline-flex; align-items: center; gap: 8px;
  color: var(--muted); font-size: 0.92rem;
}
.legal-hero .updated .icon { width: 16px; height: 16px; }

.legal-body { padding: 54px 0 80px; }
.legal-body .col { max-width: 760px; }
.legal-body .summary {
  display: flex; gap: 16px;
  background: var(--red-soft);
  border: 1px solid rgba(255, 59, 48, 0.18);
  border-radius: var(--radius);
  padding: 22px 24px;
  margin-bottom: 40px;
}
.legal-body .summary .ic { flex: none; color: var(--red); }
.legal-body .summary p { margin: 0; color: var(--ink-2); }
.legal-body h2 {
  margin: 38px 0 12px;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  scroll-margin-top: 84px;
}
.legal-body h2 .n { color: var(--red); font-variant-numeric: tabular-nums; margin-right: 10px; }
.legal-body h3 { margin: 24px 0 8px; font-size: 1.05rem; }
.legal-body p, .legal-body li { color: var(--ink-2); }
.legal-body ul { padding-left: 20px; }
.legal-body li { margin: 6px 0; }
.legal-body a { color: var(--red-deep); text-decoration: underline; text-underline-offset: 2px; }
.legal-body .contact-box {
  margin-top: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 28px;
  background: var(--bg-2);
}
.legal-body .contact-box h2 { margin-top: 0; }

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

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .cards { grid-template-columns: 1fr 1fr; }
  .support-grid { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .nav-links .nav-text { display: none; }
  .nav-links { gap: 16px; }
  .stats { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .hero { padding: 64px 0 56px; }
  .support-card, .support-list { padding: 28px; }
}
