/* Persue Budget marketing site — shared stylesheet.
   Palette and type follow design_handoff_lmh/README.md exactly. */

:root {
  --brand: #3D5FE0;
  --brand-deep: #2C46C4;
  --positive: #17A46A;
  --positive-deep: #0F7C50;
  --ground: #F4F5F8;
  --surface: #FFFFFF;
  --text: #131722;
  --secondary: #5C6575;
  --tertiary: #8A93A3;
  --navy: #17264A;
  --hairline: #E4E7EC;
  --hairline-soft: #EEF0F4;
  --shadow-card: 0 1px 2px rgba(19, 23, 34, 0.06), 0 8px 24px -8px rgba(19, 23, 34, 0.10);
  --caution: #B87A08;
  --negative: #D93A31;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --brand: #7C93F5;
    --brand-deep: #5E78E8;
    --positive: #2FBF80;
    --positive-deep: #17A46A;
    --ground: #1B1C20;
    --surface: #26272C;
    --text: #F2F3F6;
    --secondary: #A6ADB9;
    --tertiary: #767D89;
    --navy: #C7D0EE;
    --hairline: #35363D;
    --hairline-soft: #303136;
    --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.35), 0 8px 24px -8px rgba(0, 0, 0, 0.5);
    color-scheme: dark;
  }
}

* {
  box-sizing: border-box;
}

html {
  font-variant-numeric: tabular-nums;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display",
    "Segoe UI", system-ui, Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--brand);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  display: block;
}

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 28px;
}

.prose {
  max-width: 720px;
}

/* ---------- header ---------- */

.site-header {
  padding: 26px 0;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-mark {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  font-size: 18px;
  color: var(--text);
}

.brand-mark img {
  width: 34px;
  height: 34px;
  border-radius: 9px;
}

.brand-mark:hover {
  text-decoration: none;
}

.site-header nav {
  display: flex;
  gap: 26px;
}

.site-header nav a {
  color: var(--secondary);
  font-size: 15px;
  font-weight: 500;
}

/* ---------- hero ---------- */

.hero {
  padding: 56px 0 40px;
  text-align: center;
}

.hero h1 {
  font-size: clamp(40px, 6vw, 64px);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
  color: var(--text);
}

.hero .tagline {
  font-size: clamp(18px, 2.4vw, 22px);
  color: var(--secondary);
  max-width: 620px;
  margin: 0 auto 36px;
}

.appstore-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #0B0C10;
  color: #FFFFFF;
  border-radius: 14px;
  padding: 12px 22px;
  font-size: 16px;
  line-height: 1.25;
  text-align: left;
}

.appstore-badge:hover {
  text-decoration: none;
  background: #17181D;
}

.appstore-badge .badge-copy small {
  display: block;
  font-size: 11px;
  color: #C7C9D1;
  font-weight: 400;
}

.appstore-badge .badge-copy strong {
  display: block;
  font-size: 18px;
  font-weight: 600;
}

.hero-frame {
  margin: 56px auto 0;
  max-width: 300px;
}

.hero-frame img {
  border-radius: 34px;
  box-shadow: var(--shadow-card);
}

/* ---------- features ---------- */

.feature {
  padding: 72px 0;
  border-top: 1px solid var(--hairline-soft);
}

.feature .wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.feature.reverse .wrap {
  direction: rtl;
}

.feature.reverse .wrap > * {
  direction: ltr;
}

.feature-copy .eyebrow {
  color: var(--brand);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 12px;
}

.feature-copy h2 {
  font-size: clamp(26px, 3.4vw, 34px);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 16px;
  color: var(--text);
}

.feature-copy p {
  color: var(--secondary);
  font-size: 17px;
  margin: 0;
}

.feature-shot {
  display: flex;
  justify-content: center;
}

.feature-shot img {
  width: 100%;
  max-width: 280px;
  border-radius: 30px;
  box-shadow: var(--shadow-card);
}

/* ---------- unlock / pricing ---------- */

.unlock {
  padding: 80px 0;
  background: var(--surface);
  border-top: 1px solid var(--hairline-soft);
  border-bottom: 1px solid var(--hairline-soft);
}

.unlock h2 {
  text-align: center;
  font-size: clamp(28px, 3.6vw, 36px);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 12px;
}

.unlock > .wrap > p.lede {
  text-align: center;
  color: var(--secondary);
  max-width: 620px;
  margin: 0 auto 48px;
  font-size: 17px;
}

.tier-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.tier-card {
  background: var(--ground);
  border-radius: 20px;
  padding: 32px;
  border: 1px solid var(--hairline-soft);
}

.tier-card h3 {
  margin: 0 0 6px;
  font-size: 20px;
}

.tier-card .price {
  font-size: 14px;
  color: var(--secondary);
  margin: 0 0 20px;
}

.tier-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.tier-card li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
  color: var(--text);
  font-size: 15.5px;
}

.tier-card li:last-child {
  margin-bottom: 0;
}

.tier-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--positive);
}

.tier-card.lifetime li::before {
  background: var(--brand);
}

.sync-note {
  margin: 28px auto 0;
  max-width: 720px;
  text-align: center;
  font-size: 14.5px;
  color: var(--tertiary);
}

/* ---------- privacy summary ---------- */

.privacy-summary {
  padding: 80px 0;
  text-align: center;
}

.privacy-summary h2 {
  font-size: clamp(26px, 3.4vw, 32px);
  font-weight: 700;
  margin: 0 0 14px;
  letter-spacing: -0.01em;
}

.privacy-summary p {
  color: var(--secondary);
  max-width: 560px;
  margin: 0 auto 30px;
  font-size: 17px;
}

.privacy-summary a.button,
.button {
  display: inline-block;
  background: var(--brand);
  color: #fff;
  font-weight: 600;
  padding: 13px 26px;
  border-radius: 14px;
  font-size: 15.5px;
}

.privacy-summary a.button:hover,
.button:hover {
  text-decoration: none;
  background: var(--brand-deep);
}

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--hairline-soft);
  padding: 40px 0;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.site-footer nav {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}

.site-footer nav a {
  color: var(--secondary);
  font-size: 14.5px;
}

.site-footer .legal {
  color: var(--tertiary);
  font-size: 14px;
}

/* ---------- simple content pages (privacy, terms, support) ---------- */

.page-head {
  padding: 64px 0 20px;
  border-bottom: 1px solid var(--hairline-soft);
}

.page-head .wrap {
  max-width: 760px;
}

.page-head h1 {
  font-size: clamp(32px, 4.4vw, 44px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}

.page-head .updated {
  color: var(--tertiary);
  font-size: 14.5px;
}

.page-body {
  padding: 48px 0 96px;
}

.page-body .wrap {
  max-width: 760px;
}

.page-body h2 {
  font-size: 23px;
  font-weight: 700;
  margin: 44px 0 14px;
  letter-spacing: -0.01em;
}

.page-body h2:first-child {
  margin-top: 0;
}

.page-body p {
  color: var(--text);
  margin: 0 0 16px;
}

.page-body ul {
  margin: 0 0 16px;
  padding-left: 22px;
}

.page-body li {
  margin-bottom: 8px;
}

.page-body strong {
  font-weight: 600;
}

.back-links {
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid var(--hairline-soft);
  color: var(--secondary);
  font-size: 15px;
}

.back-links a {
  font-weight: 600;
}

/* faq */

.faq-item {
  border-bottom: 1px solid var(--hairline-soft);
  padding: 26px 0;
}

.faq-item:first-of-type {
  border-top: 1px solid var(--hairline-soft);
}

.faq-item h2 {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 10px;
}

.faq-item p {
  margin: 0;
  color: var(--secondary);
}

.contact-card {
  background: var(--surface);
  border: 1px solid var(--hairline-soft);
  border-radius: 18px;
  padding: 28px 32px;
  box-shadow: var(--shadow-card);
  margin-bottom: 44px;
}

.contact-card h2 {
  margin: 0 0 8px;
  font-size: 20px;
}

.contact-card p {
  margin: 0;
  color: var(--secondary);
}

.contact-card a {
  font-weight: 600;
}

@media (max-width: 820px) {
  .feature .wrap {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .feature.reverse .wrap {
    direction: ltr;
  }

  .feature-shot {
    order: -1;
  }

  .tier-grid {
    grid-template-columns: 1fr;
  }

  .site-header nav {
    gap: 16px;
  }
}

@media (max-width: 520px) {
  .wrap {
    padding: 0 20px;
  }

  body {
    font-size: 16px;
  }

  .contact-card {
    padding: 24px;
  }
}
