/* My Progress Buddy: landing page, privacy policy, terms and support. Colors match the iOS app. */
:root {
  --mint: #21cc9e;
  --blue: #1a8fdb;
  --accent: #1fc79e;
  --gradient: linear-gradient(135deg, var(--mint), var(--blue));
  --bg: #f4f6f8;
  --surface: #ffffff;
  --text: #0f1419;
  --muted: #5b6672;
  --line: #e3e8ee;
  --shadow: 0 10px 30px rgba(15, 20, 25, 0.08);
  --radius: 20px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b0e12;
    --surface: #151a20;
    --text: #eef2f6;
    --muted: #9aa6b2;
    --line: #232a33;
    --accent: #33dbad;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0b0e12;
  --surface: #151a20;
  --text: #eef2f6;
  --muted: #9aa6b2;
  --line: #232a33;
  --accent: #33dbad;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.55;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
.wrap { width: min(1100px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 32px); margin-inline: auto; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-size: 19px; white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand img { width: 32px; height: 32px; border-radius: 9px; box-shadow: 0 3px 10px rgba(26, 143, 219, 0.35); }
.brand .my { font-weight: 500; color: var(--muted); }
.brand .progress { font-weight: 800; }
.brand .buddy { font-weight: 800; background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.site-nav { display: flex; gap: 22px; font-size: 15px; }
.site-nav a { color: var(--muted); font-weight: 600; }
.site-nav a:hover { color: var(--text); text-decoration: none; }

/* Buttons */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px; border-radius: 14px;
  font-weight: 700; font-size: 17px; border: 0; cursor: pointer;
}
.button:hover { text-decoration: none; }
.button.primary { background: var(--text); color: var(--bg); }
.button.secondary { background: var(--surface); color: var(--text); border: 1px solid var(--line); }
.button .small { display: block; font-size: 11px; font-weight: 600; opacity: 0.8; line-height: 1.1; }
.button .big { display: block; font-size: 19px; line-height: 1.1; }

/* Hero */
.hero { position: relative; isolation: isolate; padding: 72px 0 40px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-block; padding: 6px 12px; border-radius: 999px; background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); font-weight: 700; font-size: 14px; }
.hero h1 { font-size: clamp(40px, 6vw, 64px); line-height: 1.03; margin: 18px 0 18px; letter-spacing: -0.02em; }
.pill-row { display: flex; flex-wrap: wrap; gap: 8px; }
.eyebrow.private { display: inline-flex; align-items: center; gap: 6px; color: #fff; background: var(--gradient); }
.eyebrow svg { width: 15px; height: 15px; }
.private-callout {
  display: flex; gap: 14px; align-items: flex-start; text-align: left;
  margin: 0 0 28px; padding: 16px 18px; max-width: 520px;
  border-radius: 16px; border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
  background: color-mix(in srgb, var(--accent) 10%, var(--surface));
}
.private-callout .lock { flex: none; width: 40px; height: 40px; border-radius: 12px; background: var(--gradient); color: #fff; display: grid; place-items: center; }
.private-callout .lock svg { width: 22px; height: 22px; }
.private-callout strong { display: block; font-size: 17px; margin-bottom: 2px; }
.private-callout span { color: var(--muted); font-size: 15px; line-height: 1.45; }
.hero h1 .gradient { background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: 20px; color: var(--muted); margin: 0 0 28px; max-width: 34ch; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.fineprint { color: var(--muted); font-size: 14px; margin-top: 14px; }

/* Phone mockup */
.phone {
  justify-self: center; width: min(340px, 80vw); aspect-ratio: 9 / 19.2;
  border-radius: 52px; padding: 12px; background: #0d1116;
  box-shadow: 0 40px 80px rgba(26, 143, 219, 0.25), 0 0 0 2px #2a313a inset;
  position: relative;
}
.phone::before {
  content: ""; position: absolute; top: 22px; left: 50%; transform: translateX(-50%);
  width: 30%; height: 24px; border-radius: 20px; background: #0d1116; z-index: 2;
}
.phone .screen { width: 100%; height: 100%; border-radius: 42px; overflow: hidden; background: #f2f4f7; padding-top: 44px; }
.phone .screen img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.glow { position: absolute; inset: -20% -30% auto auto; width: 520px; height: 520px; background: var(--gradient); filter: blur(120px); opacity: 0.22; z-index: -1; border-radius: 50%; }

/* Landscape phone (Compare) */
.phone.landscape {
  width: min(900px, 100%); aspect-ratio: 19.5 / 9; margin: 0 auto 36px;
  border-radius: 56px; padding: 14px;
}
.phone.landscape::before {
  top: 50%; left: 22px; transform: translateY(-50%);
  width: 26px; height: 22%;
}
.phone.landscape .screen { padding: 0; border-radius: 44px; position: relative; background: #0b0e12; }
.phone.landscape .screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.placeholder {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 12%;
  background: linear-gradient(180deg, #1a1f29, #07090c);
}
.placeholder .divider { width: 1px; height: 70%; background: rgba(255, 255, 255, 0.12); }
.placeholder .figure {
  width: 14%; height: 72%; border-radius: 40% 40% 12% 12% / 22% 22% 8% 8%;
  background: linear-gradient(180deg, rgba(255,255,255,0.22), rgba(255,255,255,0.06));
  position: relative;
}
.placeholder .figure::after {
  content: ""; position: absolute; left: -18%; right: -18%; top: 46%; height: 5%;
  border-radius: 50%; border: 2px solid #ffd60a; opacity: 0.9;
}
.compare-points .card h3 { margin-top: 0; }

/* Sections */
section { padding: 64px 0; }
.section-title { text-align: center; margin-bottom: 40px; }
.section-title h2 { font-size: clamp(30px, 4vw, 42px); margin: 0 0 10px; letter-spacing: -0.01em; }
.section-title p { color: var(--muted); margin: 0 auto; max-width: 56ch; }

.grid { display: grid; gap: 18px; grid-template-columns: repeat(3, 1fr); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.card h3 { margin: 14px 0 6px; font-size: 20px; }
.card p { margin: 0; color: var(--muted); font-size: 16px; }
.icon {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: var(--gradient); color: #fff;
}
.icon svg { width: 24px; height: 24px; }

.steps { counter-reset: step; display: grid; gap: 18px; grid-template-columns: repeat(3, 1fr); }
.step { position: relative; padding-top: 58px; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: 20px; left: 24px; width: 30px; height: 30px; border-radius: 50%;
  background: var(--gradient); color: #fff; font-weight: 800; display: grid; place-items: center; font-size: 15px;
}

.scan-stage {
  margin: 22px 0 0; padding: 0; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow);
  background: radial-gradient(ellipse at 50% 85%, rgba(33, 204, 158, 0.10), transparent 60%), linear-gradient(180deg, #151a22, #07090c);
}
.scan-stage canvas { display: block; width: 100%; height: clamp(300px, 42vw, 440px); }
.scan-stage figcaption { padding: 14px 20px 18px; color: #9aa6b2; font-size: 15px; text-align: center; border-top: 1px solid rgba(255, 255, 255, 0.06); }

.privacy-band { background: var(--surface); border-block: 1px solid var(--line); }
.privacy-band .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.privacy-band h2 { font-size: clamp(28px, 3.5vw, 38px); margin: 0 0 12px; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; }
.checks li::before { content: "✓"; flex: none; width: 26px; height: 26px; border-radius: 50%; background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent); display: grid; place-items: center; font-weight: 800; font-size: 14px; }

.pricing { display: grid; gap: 18px; grid-template-columns: 1fr 1fr; max-width: 820px; margin: 0 auto; }
.plan h3 { margin: 0 0 4px; font-size: 22px; }
.plan .price { font-size: 38px; font-weight: 800; margin: 8px 0 2px; color: var(--text); }
.plan .price small { font-size: 16px; font-weight: 600; color: var(--muted); }
.plan ul { padding-left: 20px; margin: 14px 0 0; color: var(--muted); }
.plan.featured { border: 2px solid transparent; background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--gradient) border-box; }
.badge { display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; color: #fff; background: var(--gradient); padding: 4px 10px; border-radius: 999px; }

details { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px 20px; }
details + details { margin-top: 10px; }
summary { cursor: pointer; font-weight: 700; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; float: right; color: var(--muted); font-weight: 600; }
details[open] summary::after { content: "–"; }
details p { color: var(--muted); margin: 10px 0 0; }

/* Legal pages */
.legal { padding: 48px 0 72px; }
.legal h1 { font-size: clamp(34px, 5vw, 46px); margin: 0 0 6px; letter-spacing: -0.01em; }
.legal .updated { color: var(--muted); margin: 0 0 28px; }
.legal h2 { font-size: 22px; margin: 36px 0 8px; }
.legal h3 { font-size: 18px; margin: 22px 0 6px; }
.legal p, .legal li { color: var(--text); }
.legal ul { padding-left: 22px; }
.legal li + li { margin-top: 6px; }
.summary-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 24px; box-shadow: var(--shadow); }
.summary-box ul { margin: 8px 0 0; }
.legal table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 10px 0; }
.legal th, .legal td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal th { color: var(--muted); font-weight: 700; }
.table-scroll { overflow-x: auto; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 32px 0 44px; color: var(--muted); font-size: 15px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 20px; }
.site-footer a { color: var(--muted); font-weight: 600; }

@media (max-width: 880px) {
  .hero { padding-top: 40px; }
  .hero .wrap, .privacy-band .wrap { grid-template-columns: 1fr; }
  .hero .wrap { text-align: center; }
  .hero p.lead { margin-inline: auto; }
  .cta-row, .pill-row { justify-content: center; }
  .private-callout { margin-inline: auto; }
  .grid, .steps { grid-template-columns: 1fr; }
  .phone.landscape { border-radius: 34px; padding: 8px; }
  .phone.landscape .screen { border-radius: 27px; }
  .phone.landscape::before { left: 12px; width: 16px; }
  .pricing { grid-template-columns: 1fr; }
  .site-nav .hide-sm { display: none; }
}
@media (max-width: 420px) {
  .brand { font-size: 16px; }
  .site-nav { gap: 14px; font-size: 14px; }
}

/* Tips under the How it works animation */
.scan-tips { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
.scan-tip { display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.scan-tip strong { display: block; margin-bottom: 4px; color: var(--text); }
.scan-tip p { margin: 0; color: var(--muted); font-size: 0.95rem; line-height: 1.5; }
.tip-icon { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, transparent); }
@media (max-width: 880px) { .scan-tips { grid-template-columns: 1fr; } }

/* Real, not rebuilt */
.versus { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; max-width: 920px; margin: 0 auto; }
.versus h3 { margin: 0 0 16px; font-size: 20px; }
.versus-us { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 9%, var(--surface)), var(--surface)); }
.versus-us h3 { color: var(--accent); }
.versus-them h3 { color: var(--muted); }
.crosses { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; color: var(--muted); }
.crosses li { display: flex; gap: 12px; align-items: flex-start; }
.crosses li::before { content: "✕"; flex: none; width: 26px; height: 26px; border-radius: 50%; background: color-mix(in srgb, var(--muted) 16%, transparent); color: var(--muted); display: grid; place-items: center; font-weight: 800; font-size: 13px; }
@media (max-width: 880px) { .versus { grid-template-columns: 1fr; } }
