/* Pare Apps — shared styles for every page. */

:root {
  --purple: #3B2D47;
  --purple-soft: #5A4670;
  --purple-tint: #F1EDF5;
  --red: #D95946;
  --gold: #FFCC00;
  --bg: #FFFFFF;
  --surface: #F5F5F7;
  --text: #1C1C1E;
  --text-2: #5E5E66;
  --line: #E5E5EA;
  --radius: 20px;
  --max: 1080px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--purple); }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0; }
p { margin: 0; }

.wrap { width: min(var(--max), 100% - 40px); margin: 0 auto; }

/* ── Header ─────────────────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255,255,255,0.85);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 19px; color: var(--text); text-decoration: none; }
.brand img { width: 26px; height: 26px; }
.nav { display: flex; gap: 22px; font-size: 15px; }
.nav a { color: var(--text-2); text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--purple); }
@media (max-width: 560px) { .nav { gap: 14px; font-size: 14px; } .nav .hide-sm { display: none; } }

/* ── Buttons and badges ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 22px; border-radius: 14px;
  background: var(--purple); color: #fff; font-weight: 600; text-decoration: none;
}
.btn.light { background: #fff; color: var(--purple); }
.btn.ghost { background: transparent; color: var(--purple); box-shadow: inset 0 0 0 1.5px var(--purple); }
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px; border-radius: 999px;
  font-size: 14px; font-weight: 600;
  background: var(--purple-tint); color: var(--purple);
}
.badge.on-dark { background: rgba(255,255,255,0.14); color: #fff; }
.pro { background: var(--gold); color: #fff; font-size: 11px; font-weight: 800; letter-spacing: 0.04em; padding: 3px 8px; border-radius: 8px; }

/* ── Phone screenshots ──────────────────────────────────────────────────── */
.phone {
  border-radius: 38px; background: #0B0B0D; padding: 8px;
  box-shadow: 0 24px 60px rgba(28, 20, 36, 0.28), inset 0 0 0 1.5px rgba(255,255,255,0.1);
  width: 100%; max-width: 320px;
}
.phone img { border-radius: 31px; width: 100%; height: auto; }
.phone.legacy { border-radius: 28px; }
.phone.legacy img { border-radius: 21px; }

/* ── Home ───────────────────────────────────────────────────────────────── */
.home-hero { padding: 88px 0 56px; text-align: center; }
.home-hero h1 { font-size: clamp(44px, 7vw, 72px); font-weight: 800; }
.home-hero p { font-size: clamp(19px, 2.4vw, 23px); color: var(--text-2); margin-top: 14px; }

.app-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; padding-bottom: 96px; }
.app-card {
  display: flex; flex-direction: column; gap: 14px;
  padding: 28px; border-radius: var(--radius); background: var(--surface);
  color: var(--text); text-decoration: none; transition: transform 0.2s, box-shadow 0.2s;
}
.app-card:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(0,0,0,0.08); }
.app-card.featured { background: linear-gradient(160deg, #5A4670, #3B2D47 55%, #241B2C); color: #fff; }
.app-card .badge { align-self: flex-start; }
.app-card .icon { width: 72px; height: 72px; border-radius: 16px; box-shadow: 0 6px 16px rgba(0,0,0,0.15); }
.app-card h2 { font-size: 26px; }
.app-card p { color: var(--text-2); }
.app-card.featured p { color: rgba(255,255,255,0.78); }
.app-card .more { margin-top: auto; font-weight: 600; color: var(--purple); }
.app-card.featured .more { color: #fff; }

/* Stand-in tiles for the older apps' icons. */
.tile-icon { width: 72px; height: 72px; border-radius: 16px; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 16px rgba(0,0,0,0.12); }
.tile-icon img { width: 70%; height: 70%; }
.tile-icon.weather { background: linear-gradient(160deg, #F2F2C4, #D8CFA2); }
.tile-icon.save { background: linear-gradient(160deg, #A3A31F, #6E4A12); }
.tile-icon.save img { filter: invert(1); }

/* ── App pages ──────────────────────────────────────────────────────────── */
.app-hero {
  background: radial-gradient(circle at 15% 10%, #5A4670 0%, #3B2D47 45%, #22192B 100%);
  color: #fff;
}
.app-hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; padding: 72px 0 0; }
.app-hero .icon { width: 96px; height: 96px; border-radius: 22px; box-shadow: 0 10px 30px rgba(0,0,0,0.35); }
.app-hero h1 { font-size: clamp(48px, 7vw, 76px); font-weight: 800; margin-top: 22px; }
.app-hero .tagline { font-size: clamp(19px, 2.3vw, 24px); color: rgba(255,255,255,0.8); margin-top: 12px; max-width: 30ch; }
.app-hero .actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 30px; padding-bottom: 72px; }
.app-hero .shot { justify-self: center; align-self: end; margin-bottom: -150px; position: relative; z-index: 2; }
.app-hero .shot .phone { max-width: 330px; }
@media (max-width: 820px) {
  .app-hero .wrap { grid-template-columns: 1fr; text-align: center; padding-top: 56px; }
  .app-hero .icon { margin: 0 auto; }
  .app-hero .tagline { margin-left: auto; margin-right: auto; }
  .app-hero .actions { justify-content: center; padding-bottom: 8px; }
  .app-hero .shot { margin-bottom: -160px; }
  .app-hero .shot .phone { max-width: 270px; }
}
.after-hero { padding-top: 150px; }
@media (max-width: 820px) { .after-hero { padding-top: 190px; } }
.intro { text-align: center; max-width: 680px; margin: 0 auto; padding-bottom: 24px; }
.intro h2 { font-size: clamp(30px, 4vw, 42px); }
.intro p { font-size: 19px; color: var(--text-2); margin-top: 14px; }

.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; padding: 64px 0; }
.feature + .feature { border-top: 1px solid var(--line); }
.feature .shot { justify-self: center; }
.feature:nth-of-type(even) .shot { order: -1; }
.feature .eyebrow { font-size: 14px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--red); }
.feature h2 { font-size: clamp(30px, 4vw, 42px); margin-top: 10px; }
.feature p { font-size: 18px; color: var(--text-2); margin-top: 16px; max-width: 46ch; }
@media (max-width: 820px) {
  .feature { grid-template-columns: 1fr; gap: 32px; padding: 48px 0; text-align: center; }
  .feature:nth-of-type(even) .shot { order: 0; }
  .feature p { margin-left: auto; margin-right: auto; }
  .feature .shot .phone { max-width: 270px; }
}

.pro-band { background: var(--purple); color: #fff; border-radius: 28px; padding: 56px; margin: 48px 0; display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: center; }
.pro-band h2 { font-size: clamp(32px, 4.5vw, 46px); display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.pro-band p { color: rgba(255,255,255,0.78); margin-top: 14px; font-size: 18px; }
.pro-band ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.pro-band li { display: flex; gap: 14px; align-items: flex-start; }
.pro-band li .dot { flex: none; width: 34px; height: 34px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 17px; }
.pro-band li b { display: block; }
.pro-band li span { color: rgba(255,255,255,0.72); font-size: 15px; }
.pro-band small { display: block; margin-top: 18px; color: rgba(255,255,255,0.6); font-size: 14px; }
@media (max-width: 820px) { .pro-band { grid-template-columns: 1fr; padding: 36px 26px; } }

.extras { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; padding: 24px 0 64px; }
.extra { background: var(--surface); border-radius: 18px; padding: 22px; }
.extra .emoji { font-size: 26px; }
.extra h3 { font-size: 18px; margin-top: 10px; }
.extra p { color: var(--text-2); font-size: 15px; margin-top: 6px; }

.cta { text-align: center; padding: 72px 0 96px; }
.cta h2 { font-size: clamp(32px, 5vw, 48px); }
.cta p { color: var(--text-2); margin-top: 12px; font-size: 19px; }
.cta .actions { margin-top: 26px; display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }

/* ── Older apps ─────────────────────────────────────────────────────────── */
.legacy-hero { padding: 80px 0 40px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px; align-items: center; }
.legacy-hero h1 { font-size: clamp(44px, 6.5vw, 66px); font-weight: 800; margin-top: 20px; }
.legacy-hero p { color: var(--text-2); font-size: 19px; margin-top: 16px; max-width: 48ch; }
.legacy-hero .actions { margin-top: 26px; display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.legacy-hero .shot { justify-self: center; }
.legacy-hero .shot .phone { max-width: 290px; }
@media (max-width: 820px) {
  .legacy-hero { grid-template-columns: 1fr; text-align: center; padding-top: 56px; }
  .legacy-hero .tile-icon { margin: 0 auto; }
  .legacy-hero p { margin-left: auto; margin-right: auto; }
  .legacy-hero .actions { justify-content: center; }
}

/* ── Text pages ─────────────────────────────────────────────────────────── */
.prose { max-width: 720px; margin: 0 auto; padding: 64px 0 96px; }
.prose h1 { font-size: 42px; }
.prose .updated { color: var(--text-2); margin-top: 8px; }
.prose h2 { font-size: 23px; margin-top: 36px; }
.prose p, .prose li { color: #3A3A40; margin-top: 12px; }
.prose ul { padding-left: 22px; }

/* ── Footer ─────────────────────────────────────────────────────────────── */
.site-footer { border-top: 1px solid var(--line); padding: 32px 0 48px; color: var(--text-2); font-size: 14px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; }
.site-footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
.site-footer a { color: var(--text-2); text-decoration: none; }
.site-footer a:hover { color: var(--purple); }
