/* Life Upgraded, LLC — site styles.
   System fonts only. No trackers, cookies, scripts, or external resources. */
:root {
  --bg: #f7f5f1;
  --surface: #ffffff;
  --surface-2: #fbfaf7;
  --ink: #16171d;
  --ink-2: #3b3d47;
  --muted: #5f6270;
  --line: rgba(22, 23, 29, 0.09);
  --line-2: rgba(22, 23, 29, 0.14);
  --brand: #2f5bea;
  --brand-ink: #1f3fb0;
  --brand-soft: #e8eeff;
  --accent: var(--brand);
  --accent-ink: var(--brand-ink);
  --accent-soft: var(--brand-soft);
  --focus: #2f5bea;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow-1: 0 1px 2px rgba(16, 18, 27, 0.05), 0 1px 1px rgba(16, 18, 27, 0.03);
  --shadow-2: 0 1px 2px rgba(16, 18, 27, 0.04), 0 8px 24px -8px rgba(16, 18, 27, 0.12);
  --shadow-3: 0 2px 6px rgba(16, 18, 27, 0.06), 0 24px 48px -16px rgba(16, 18, 27, 0.22);
  --wrap: 72rem;
  --prose: 65ch;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-round: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
}
.theme-we {
  --accent: #5b47e0;
  --accent-ink: #4331b8;
  --accent-soft: #eeebff;
  --focus: #5b47e0;
}
.theme-ft {
  --bg: #fff8ec;
  --surface: #fffdf8;
  --surface-2: #fff3dc;
  --ink: #2a1d12;
  --ink-2: #4a3726;
  --muted: #6e5843;
  --line: rgba(84, 52, 18, 0.12);
  --line-2: rgba(84, 52, 18, 0.2);
  --accent: #0f7a6c;
  --accent-ink: #0a5d52;
  --accent-soft: #dff3ee;
  --sun: #f6b928;
  --tomato: #e2553f;
  --focus: #0f7a6c;
}
*, *::before, *::after { box-sizing: border-box; }
html { color-scheme: light; -webkit-text-size-adjust: 100%; scroll-padding-top: 5rem; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.65 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-ink); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--accent); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.skip {
  position: absolute; left: -999px; top: 0; z-index: 50;
  background: var(--surface); color: var(--ink); padding: 0.6rem 0.9rem; border-radius: 10px;
  box-shadow: var(--shadow-2);
}
.skip:focus { left: 1rem; top: 1rem; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4rem; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--ink); text-decoration: none; font-weight: 700; letter-spacing: -0.015em; font-size: 1.02rem; white-space: nowrap; }
.brand:hover { color: var(--ink); }
.brand-mark { width: 30px; height: 30px; flex: none; }
.brand small { font-weight: 500; color: var(--muted); font-size: inherit; }
.nav { display: flex; gap: 0.25rem; flex-wrap: wrap; justify-content: flex-end; }
.nav a {
  color: var(--ink-2); text-decoration: none; font-size: 0.94rem; font-weight: 500;
  padding: 0.42rem 0.8rem; border-radius: 999px; transition: background 0.15s, color 0.15s;
}
.nav a:hover { background: rgba(127, 127, 140, 0.12); color: var(--ink); }
.nav a[aria-current="page"], .nav a.is-section { background: var(--ink); color: #fff; }

/* Type */
h1, h2, h3 { font-family: var(--font-display); color: var(--ink); margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 5.4vw, 4rem); line-height: 1.04; letter-spacing: -0.035em; font-weight: 750; }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); line-height: 1.12; letter-spacing: -0.025em; font-weight: 700; }
h3 { font-size: 1.12rem; line-height: 1.3; letter-spacing: -0.01em; font-weight: 650; }
p { margin: 0 0 1rem; }
.lede { font-size: clamp(1.1rem, 1.8vw, 1.28rem); line-height: 1.55; color: var(--ink-2); max-width: 38em; }
.muted { color: var(--muted); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.45rem;
  font-size: 0.78rem; font-weight: 650; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent-ink); background: var(--accent-soft);
  padding: 0.34rem 0.75rem; border-radius: 999px; margin-bottom: 1.1rem;
}
.section-head { max-width: 44rem; margin-bottom: 2.25rem; }
.section-head p { color: var(--muted); font-size: 1.08rem; margin-top: 0.75rem; }

/* Layout */
.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section + .section { padding-top: 0; }
.hero + .section { padding-top: clamp(1rem, 3vw, 2rem); }
.band { background: var(--surface); border-block: 1px solid var(--line); }
.band.section + .section { padding-top: clamp(3.5rem, 7vw, 6rem); }
.grid { display: grid; gap: 1.25rem; }
@media (min-width: 720px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 720px) and (max-width: 1000px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }

/* Buttons */
.actions { display: flex; flex-wrap: wrap; gap: 0.65rem; margin-top: 1.75rem; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 2.9rem; padding: 0.7rem 1.25rem; border-radius: 999px;
  font-weight: 600; font-size: 0.98rem; text-decoration: none; line-height: 1.1;
  border: 1px solid var(--line-2); background: var(--surface); color: var(--ink);
  box-shadow: var(--shadow-1); transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}
.btn:hover { color: var(--ink); transform: translateY(-1px); box-shadow: var(--shadow-2); }
.btn-primary { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-primary:hover { color: #fff; background: #000; }
.btn-accent { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-accent:hover { color: #fff; background: var(--accent-ink); }
.btn svg { width: 1.1em; height: 1.1em; flex: none; }
.btn-sm { min-height: 2.4rem; padding: 0.5rem 0.95rem; font-size: 0.9rem; }

/* Cards */
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem; box-shadow: var(--shadow-1);
}
.card h3 { margin-bottom: 0.45rem; }
.card p { color: var(--ink-2); margin-bottom: 0; font-size: 1rem; }
.card p + p { margin-top: 0.75rem; }
.icon-tile {
  width: 2.6rem; height: 2.6rem; border-radius: 12px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent-ink); margin-bottom: 1rem;
}
.icon-tile svg { width: 1.35rem; height: 1.35rem; }

/* Hero */
.hero { padding: clamp(3rem, 7vw, 6rem) 0 clamp(3rem, 6vw, 5rem); position: relative; overflow: hidden; }
.hero-grid { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.15fr 0.85fr; } }
.hero h1 + .lede { margin-top: 1.25rem; }
.hero .tagline + .lede { margin-top: 1.1rem; }
.doc-hero h1 + .lede, .doc-hero h1 + .policy-meta { margin-top: 0.9rem; }
.hero .tagline { font-family: var(--font-display); font-size: clamp(1.5rem, 3.2vw, 2.3rem); line-height: 1.15; letter-spacing: -0.025em; font-weight: 650; color: var(--brand); margin: 0.6rem 0 0; }
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.5rem; padding: 0; list-style: none; }
.chips li {
  display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.88rem; font-weight: 550;
  color: var(--ink-2); background: var(--surface); border: 1px solid var(--line);
  padding: 0.35rem 0.75rem; border-radius: 999px;
}
.chips li svg { width: 1rem; height: 1rem; color: var(--accent); }
.app-head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.25rem; }
.app-icon { width: 76px; height: 76px; border-radius: 22.5%; box-shadow: 0 0 0 1px rgba(0,0,0,0.06), var(--shadow-2); flex: none; }
.app-icon.lg { width: 96px; height: 96px; }
.app-head .meta { font-size: 0.92rem; color: var(--muted); line-height: 1.4; }
.app-head .meta strong { display: block; color: var(--ink); font-size: 1rem; }

/* Phone screenshots */
.phone {
  border-radius: 34px; overflow: hidden; background: #111;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.08), var(--shadow-3);
  aspect-ratio: 600 / 1304;
}
.phone img { width: 100%; height: 100%; object-fit: cover; }
.phone-stack { position: relative; display: flex; justify-content: center; gap: 1rem; }
.phone-stack .phone { width: min(46%, 250px); }
.phone-stack .phone:nth-child(2) { transform: translateY(2.5rem); }
.gallery {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, 240px); gap: 1.25rem;
  overflow-x: auto; padding: 0.5rem 0.25rem 2rem; scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}
.gallery figure { margin: 0; scroll-snap-align: start; }
.gallery figcaption { font-size: 0.88rem; color: var(--muted); margin-top: 0.85rem; text-align: center; }
.gallery .phone { border-radius: 28px; box-shadow: 0 0 0 1px rgba(0,0,0,0.08), var(--shadow-2); }

@media (min-width: 1000px) {
  .gallery { grid-auto-columns: minmax(0, 1fr); overflow: visible; padding-bottom: 0.5rem; }
  .gallery.g3 { max-width: 52rem; margin-inline: auto; gap: 2rem; }
}
.home-visual { display: flex; justify-content: center; gap: 1.25rem; }
.home-visual .phone { width: min(44%, 240px); }
.home-visual .phone:first-child { transform: rotate(-4deg) translateY(1rem); }
.home-visual .phone:last-child { transform: rotate(4deg) translateY(-0.5rem); }
@media (max-width: 899px) { .home-visual { display: none; } }
.support-contact { grid-template-columns: 1fr !important; }
.support-contact .btn { justify-self: start; }

/* Home app showcase */
.showcase { display: grid; gap: 1.5rem; }
@media (min-width: 900px) { .showcase { grid-template-columns: 1fr 1fr; } }
.app-card {
  position: relative; display: grid; grid-template-columns: 1fr; gap: 1.5rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: 28px; padding: 2rem;
  box-shadow: var(--shadow-2); overflow: hidden;
}
@media (min-width: 560px) { .app-card { grid-template-columns: 1fr 170px; align-items: start; } }
.app-card.we { background: linear-gradient(160deg, #f4f2ff 0%, #ffffff 55%); }
.app-card.ft { background: linear-gradient(160deg, #fff3d6 0%, #fffdf8 60%); }
.app-card h3 { font-size: 1.5rem; letter-spacing: -0.02em; }
.app-card p { color: var(--ink-2); font-size: 1rem; }
.app-card .phone { border-radius: 24px; max-width: 170px; margin-inline: auto; }
.app-card .links { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.25rem; }
.app-card ul.facts { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: 0.4rem; font-size: 0.95rem; color: var(--ink-2); }
.app-card ul.facts li { display: flex; gap: 0.5rem; align-items: baseline; }
.app-card ul.facts li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: 0.45; flex: none; transform: translateY(-2px); }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
@media (min-width: 720px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { background: var(--surface); padding: 1.5rem; }
.stat b { display: block; font-family: var(--font-display); font-size: clamp(1.9rem, 3.6vw, 2.6rem); letter-spacing: -0.035em; line-height: 1; color: var(--ink); font-weight: 750; }
.stat span { display: block; margin-top: 0.5rem; color: var(--muted); font-size: 0.95rem; }

/* Languages */
.langs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.85rem; }
@media (min-width: 720px) { .langs { grid-template-columns: repeat(3, 1fr); } }
.lang { display: flex; align-items: center; gap: 0.9rem; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 1rem 1.1rem; box-shadow: var(--shadow-1); }
.lang .code { width: 2.6rem; height: 2.6rem; border-radius: 10px; display: grid; place-items: center; font-weight: 700; font-size: 0.9rem; letter-spacing: 0.02em; background: var(--accent-soft); color: var(--accent-ink); flex: none; }
.lang strong { display: block; line-height: 1.2; }
.lang small { color: var(--muted); font-size: 0.86rem; }

/* Steps */
.steps { counter-reset: step; display: grid; gap: 1.25rem; list-style: none; padding: 0; margin: 0; }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { counter-increment: step; position: relative; }
.steps li::before {
  content: counter(step); display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%;
  background: var(--accent); color: #fff; font-weight: 700; margin-bottom: 1rem; font-family: var(--font-round);
}

/* Callouts */
.callout {
  display: grid; gap: 1rem; align-items: center; border-radius: var(--radius);
  padding: 1.5rem 1.75rem; background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
}
@media (min-width: 720px) { .callout { grid-template-columns: 1fr auto; } }
.callout h3 { margin-bottom: 0.3rem; }
.callout p { margin: 0; color: var(--ink-2); }
.note { font-size: 0.95rem; color: var(--muted); }

/* French Toss warmth */
.theme-ft h1, .theme-ft h2, .theme-ft .stat b { font-family: var(--font-round); }
.theme-ft .hero { background: radial-gradient(1200px 500px at 85% -10%, #ffe3a3 0%, transparent 60%), radial-gradient(800px 400px at -10% 110%, #ffd9cf 0%, transparent 60%); }
.theme-ft .eyebrow { background: #fff0c7; color: #8a5300; }
.theme-ft .btn-accent { background: var(--accent); }
.theme-ft .card { border-radius: 24px; }
.theme-ft .icon-tile { background: #fff0c7; color: #9a5b00; }
.theme-ft .icon-tile.teal { background: var(--accent-soft); color: var(--accent-ink); }
.theme-ft .icon-tile.tomato { background: #ffe3dd; color: #b23a26; }
.parents {
  background: #fffdf8; border: 2px solid #f3dfb5; border-radius: 32px; padding: clamp(1.5rem, 4vw, 3rem);
  box-shadow: 0 20px 40px -24px rgba(138, 83, 0, 0.35);
}
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.9rem; }
@media (min-width: 720px) { .checklist { grid-template-columns: 1fr 1fr; column-gap: 2rem; } }
.checklist li { display: flex; gap: 0.75rem; align-items: flex-start; color: var(--ink-2); }
.checklist li svg { width: 1.5rem; height: 1.5rem; flex: none; color: var(--accent); margin-top: 0.1rem; }
.checklist strong { color: var(--ink); }
.price-card { margin-top: 2rem; display: grid; gap: 1rem; background: linear-gradient(135deg, #0f7a6c, #0b5f55); color: #fff; border-radius: 24px; padding: 1.75rem; }
@media (min-width: 720px) { .price-card { grid-template-columns: auto 1fr; align-items: center; gap: 2rem; } }
.price-card .big { font-family: var(--font-round); font-size: 3rem; line-height: 1; font-weight: 800; letter-spacing: -0.03em; }
.price-card .big small { display: block; font-size: 0.95rem; font-weight: 600; letter-spacing: 0; opacity: 0.85; margin-top: 0.35rem; }
.price-card p { margin: 0; color: rgba(255,255,255,0.92); }
.price-card a { color: #fff; }

/* Doc pages (support / privacy) */
.doc-hero { padding: clamp(2.75rem, 6vw, 4.5rem) 0 2rem; }
.doc-hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.25rem); }
.doc-hero .app-head { margin-bottom: 1.5rem; }
.doc-grid { display: grid; gap: 2.5rem; padding-bottom: 5rem; }
@media (min-width: 980px) { .doc-grid { grid-template-columns: 15rem 1fr; gap: 3.5rem; } }
.toc { position: sticky; top: 5.5rem; align-self: start; font-size: 0.93rem; display: none; }
@media (min-width: 980px) { .toc { display: block; } }
.toc p { font-weight: 650; color: var(--ink); margin-bottom: 0.5rem; font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line-2); }
.toc a { display: block; padding: 0.35rem 0 0.35rem 1rem; color: var(--muted); text-decoration: none; margin-left: -1px; border-left: 2px solid transparent; }
.toc a:hover { color: var(--ink); border-left-color: var(--accent); }
.prose { max-width: var(--prose); }
.prose section { padding-top: 0.5rem; margin-bottom: 2.25rem; }
.prose h2 { font-size: 1.4rem; letter-spacing: -0.02em; margin-bottom: 0.75rem; }
.prose p, .prose li { color: var(--ink-2); }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: 0.4rem; }
.summary {
  max-width: var(--prose); display: grid; gap: 1rem; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow-2); margin-bottom: 2.75rem;
}
.summary .chips { margin-top: 0; }
.summary p { margin: 0; color: var(--ink-2); }
.policy-meta { display: flex; flex-wrap: wrap; gap: 0.35rem 1.25rem; font-size: 0.95rem; color: var(--muted); margin-top: 1rem; }
.policy-meta strong { color: var(--ink); font-weight: 600; }
.support-contact { max-width: var(--prose); margin-bottom: 2.75rem; }
.support-contact .btn { white-space: nowrap; }
.kbd { display: inline-block; font: 600 0.85em/1 var(--font); padding: 0.2em 0.5em; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--line-2); color: var(--ink); white-space: nowrap; }
details.faq { border: 1px solid var(--line); background: var(--surface); border-radius: 14px; margin-bottom: 0.65rem; box-shadow: var(--shadow-1); }
details.faq summary { cursor: pointer; list-style: none; padding: 1rem 1.25rem; font-weight: 600; display: flex; justify-content: space-between; align-items: center; gap: 1rem; color: var(--ink); }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; font-size: 1.35rem; line-height: 1; color: var(--muted); transition: transform 0.2s; }
details.faq[open] summary::after { transform: rotate(45deg); }
details.faq > div { padding: 0 1.25rem 1.1rem; }
details.faq > div p:last-child { margin-bottom: 0; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: var(--surface); padding: 3rem 0 2.5rem; font-size: 0.95rem; color: var(--muted); }
.footer-grid { display: grid; gap: 2rem; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.site-footer h2 { font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink); margin-bottom: 0.75rem; font-family: var(--font); font-weight: 650; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.4rem; }
.site-footer a { color: var(--ink-2); text-decoration: none; }
.site-footer a:hover { color: var(--accent); text-decoration: underline; }
.site-footer .legal { border-top: 1px solid var(--line); margin-top: 2.5rem; padding-top: 1.5rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem; font-size: 0.88rem; }
.site-footer .brand { margin-bottom: 0.75rem; }

/* 404 */
.notfound { min-height: 50vh; display: grid; align-content: center; padding: 5rem 0; }
.notfound .code { font-family: var(--font-display); font-size: clamp(4rem, 12vw, 8rem); font-weight: 800; letter-spacing: -0.05em; line-height: 1; color: var(--brand-soft); -webkit-text-stroke: 2px var(--brand); }

@media (max-width: 560px) {
  body { font-size: 1rem; }
  .site-header .wrap { min-height: 3.5rem; flex-wrap: wrap; padding: 0.6rem 0; gap: 0.4rem; }
  .nav { width: 100%; justify-content: flex-start; margin-left: -0.6rem; }
  .nav a { padding: 0.35rem 0.6rem; font-size: 0.9rem; }
  .app-card { padding: 1.5rem; }
  .actions .btn { flex: 1 1 auto; }
  .phone-stack .phone:nth-child(2) { transform: translateY(1.5rem); }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
