/* Fix Your Life — shared styles */
:root {
  --bg: #000000;
  --panel: #0d0d0d;
  --panel-2: #141414;
  --border: #232323;
  --text: #ffffff;
  --muted: #a3a3a3;
  --muted-2: #6f6f6f;
  --red: #ff2b2b;
  --radius: 20px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--text); }

.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 760px; margin: 0 auto; padding: 0 24px; }

::selection { background: var(--red); color: #fff; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(0,0,0,.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.brand {
  display: flex; align-items: center; gap: 12px;
  font-weight: 800; letter-spacing: .02em; text-decoration: none; font-size: 17px;
}
.brand img { width: 30px; height: 30px; border-radius: 7px; }
.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav a {
  color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 500;
  transition: color .15s ease;
}
.site-nav a:hover { color: var(--text); }
.site-nav .nav-cta {
  color: #000; background: #fff; padding: 9px 18px; border-radius: 999px;
  font-weight: 700;
}
.site-nav .nav-cta:hover { background: var(--red); color: #fff; }
/* ---------- Mobile burger menu ---------- */
.nav-toggle { display: none; }
.nav-burger { display: none; }
@media (max-width: 1023px) {
  .nav-burger {
    display: flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 42px; height: 42px; padding: 10px;
    cursor: pointer; border: 1px solid var(--border); border-radius: 12px;
  }
  .nav-burger span {
    display: block; width: 100%; height: 2px; background: var(--text);
    border-radius: 2px; transition: transform .2s ease, opacity .2s ease;
  }
  .site-nav {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 8px 24px 20px;
    box-shadow: 0 24px 40px rgba(0,0,0,.5);
  }
  .site-nav a { display: block; padding: 14px 0; font-size: 16px; border-bottom: 1px solid var(--border); }
  .site-nav .nav-cta { margin-top: 14px; text-align: center; padding: 13px 18px; border-bottom: none; }
  .nav-toggle:checked ~ .site-nav { display: flex; }
  .nav-toggle:checked ~ .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle:checked ~ .nav-burger span:nth-child(2) { opacity: 0; }
  .nav-toggle:checked ~ .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: #fff; color: #000; text-decoration: none;
  font-weight: 700; font-size: 17px;
  padding: 15px 30px; border-radius: 999px;
  transition: transform .15s ease, background .15s ease, color .15s ease;
}
.btn:hover { background: var(--red); color: #fff; transform: translateY(-1px); }
.btn-outline {
  background: transparent; color: #fff; border: 1px solid #3a3a3a;
}
.btn-outline:hover { background: #fff; color: #000; border-color: #fff; }

/* App Store badge */
.appstore-badge {
  display: inline-flex; align-items: center; gap: 12px;
  background: #fff; color: #000; text-decoration: none;
  border-radius: 14px; padding: 10px 22px 10px 18px;
  transition: transform .15s ease, box-shadow .15s ease;
}
.appstore-badge:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(255,255,255,.14); }
.appstore-badge svg { width: 28px; height: 34px; flex: none; }
.appstore-badge .badge-text { display: flex; flex-direction: column; line-height: 1.15; text-align: left; }
.appstore-badge .badge-text small { font-size: 11.5px; font-weight: 500; letter-spacing: .02em; }
.appstore-badge .badge-text strong { font-size: 20px; font-weight: 700; letter-spacing: -.01em; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 84px 0 40px;
  text-align: center;
  background:
    radial-gradient(1200px 500px at 50% -10%, rgba(255,43,43,.10), transparent 65%),
    radial-gradient(900px 420px at 85% 0%, rgba(255,255,255,.05), transparent 60%);
  overflow: hidden;
}
.hero .eyebrow {
  display: inline-block; font-size: 13px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--red);
  border: 1px solid rgba(255,43,43,.4); border-radius: 999px;
  padding: 7px 16px; margin-bottom: 26px;
}
.hero h1 {
  font-size: clamp(42px, 7vw, 78px);
  font-weight: 900; line-height: 1.02; letter-spacing: -.03em;
  max-width: 900px; margin: 0 auto 22px;
}
.hero h1 .accent { color: var(--red); }
.hero .sub {
  font-size: clamp(18px, 2.4vw, 21px); color: var(--muted);
  max-width: 640px; margin: 0 auto 36px;
}
.hero-ctas { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; align-items: center; }
.hero .micro {
  margin-top: 18px; font-size: 14px; color: var(--muted-2);
}
.hero-phone {
  margin: 56px auto -120px; max-width: 380px;
  filter: drop-shadow(0 40px 80px rgba(0,0,0,.8));
}
/* .hero-phone img { border-radius: 36px; border: 1px solid #2a2a2a; } */
.hero-spacer { height: 150px; }

/* ---------- Sections ---------- */
section { padding: 96px 0; }
.section-dark { background: var(--bg); }
.section-panel { background: var(--panel); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 64px; }
.section-head .kicker {
  font-size: 13px; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--red); margin-bottom: 14px;
}
.section-head h2 {
  font-size: clamp(30px, 4.6vw, 46px); font-weight: 900;
  letter-spacing: -.02em; line-height: 1.08; margin-bottom: 16px;
}
.section-head p { color: var(--muted); font-size: 18px; }

/* ---------- Feature rows (screenshots) ---------- */
.feature-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px;
  align-items: center; padding: 44px 0;
}
.feature-row + .feature-row { border-top: 1px solid var(--border); }
.feature-row .shot { max-width: 330px; margin: 0 auto; }
.feature-row .shot img {
  border-radius: 28px;
  box-shadow: 0 30px 80px rgba(0,0,0,.65);
}
.feature-row.flip .shot { order: 2; }
.feature-copy .feature-kicker {
  color: var(--red); font-weight: 700; font-size: 13px;
  letter-spacing: .12em; text-transform: uppercase; margin-bottom: 12px;
}
.feature-copy h3 {
  font-size: clamp(24px, 3.2vw, 34px); font-weight: 800;
  letter-spacing: -.02em; line-height: 1.12; margin-bottom: 14px;
}
.feature-copy p { color: var(--muted); font-size: 17px; }
.feature-copy .feature-link {
  display: inline-block; margin: 18px -6px 0; padding: 2px 6px 3px; border-radius: 4px;
  color: #fff; font-weight: 600; text-decoration: none;
  background-image: linear-gradient(var(--red), var(--red)), linear-gradient(rgba(255,43,43,.3), rgba(255,43,43,.3));
  background-size: 0% 100%, 100% 2px;
  background-position: 0 100%, 0 100%;
  background-repeat: no-repeat;
  transition: background-size .4s cubic-bezier(.25,.8,.25,1), color .2s ease;
}
.feature-copy .feature-link:hover { background-size: 100% 100%, 100% 2px; }
@media (max-width: 820px) {
  .feature-row { grid-template-columns: 1fr; gap: 36px; text-align: center; }
  .feature-row.flip .shot { order: 0; }
  .feature-row .shot { max-width: 270px; }
}

/* ---------- How it works ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.step {
  background: var(--panel-2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 30px 26px;
  transition: transform .18s ease, border-color .18s ease;
}
.step:hover { transform: translateY(-4px); border-color: #3a3a3a; }
.step .num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 12px;
  background: var(--red); color: #fff; font-weight: 900; font-size: 18px;
  margin-bottom: 18px;
}
.step h3 { font-size: 19px; font-weight: 800; margin-bottom: 8px; letter-spacing: -.01em; }
.step p { color: var(--muted); font-size: 15px; }
@media (max-width: 980px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Guides ---------- */
.guide-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.guide-card {
  display: flex; flex-direction: column; gap: 10px;
  background: var(--panel-2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 26px;
  text-decoration: none;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.guide-card:hover { transform: translateY(-4px); border-color: var(--red); }
.guide-card .tag {
  align-self: flex-start;
  font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--red); border: 1px solid rgba(255,43,43,.4);
  padding: 4px 10px; border-radius: 999px;
}
.guide-card h3 { font-size: 18px; font-weight: 800; letter-spacing: -.01em; line-height: 1.3; }
.guide-card p { color: var(--muted); font-size: 14.5px; flex: 1; }
.guide-card .read {
  color: #fff; font-size: 14px; font-weight: 700;
}
.guide-card .read::after { content: " →"; color: var(--red); }
@media (max-width: 900px) { .guide-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 580px) { .guide-grid { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item {
  border: 1px solid var(--border); border-radius: 16px;
  background: var(--panel-2); margin-bottom: 12px; overflow: hidden;
}
.faq-item summary {
  cursor: pointer; list-style: none;
  padding: 20px 24px; font-weight: 700; font-size: 17px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; color: var(--red); font-size: 26px; font-weight: 400; line-height: 1;
  transition: transform .2s ease; flex: none;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-body { padding: 0 24px 22px; color: var(--muted); font-size: 16px; }
.faq-item .faq-body a {
  color: #fff; font-weight: 600; text-decoration: none; padding: 1px 4px; margin: 0 -4px; border-radius: 3px;
  background-image: linear-gradient(var(--red), var(--red)), linear-gradient(rgba(255,43,43,.3), rgba(255,43,43,.3));
  background-size: 0% 100%, 100% 2px;
  background-position: 0 100%, 0 100%;
  background-repeat: no-repeat;
  box-decoration-break: clone; -webkit-box-decoration-break: clone;
  transition: background-size .4s cubic-bezier(.25,.8,.25,1), color .2s ease;
}
.faq-item .faq-body a:hover { background-size: 100% 100%, 100% 2px; }

/* ---------- CTA ---------- */
.cta {
  text-align: center;
  background:
    radial-gradient(900px 400px at 50% 120%, rgba(255,43,43,.14), transparent 70%);
  border-top: 1px solid var(--border);
}
.cta blockquote {
  font-size: clamp(26px, 4.4vw, 44px); font-weight: 900; letter-spacing: -.02em;
  line-height: 1.15; max-width: 860px; margin: 0 auto 18px;
}
.cta blockquote .accent { color: var(--red); }
.cta .cta-sub { color: var(--muted); font-size: 18px; margin-bottom: 40px; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 56px 0 40px; color: var(--muted-2); font-size: 14px;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 40px;
}
.footer-grid h4 {
  color: #fff; font-size: 13px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; margin-bottom: 14px;
}
.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 9px; }
.footer-grid a { color: var(--muted); text-decoration: none; font-size: 14.5px; }
.footer-grid a:hover { color: #fff; }
.footer-about p { max-width: 320px; color: var(--muted-2); margin-top: 12px; }
.footer-bottom {
  border-top: 1px solid var(--border); padding-top: 24px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- Article / guide pages ---------- */
.article-hero { padding: 72px 0 36px; }
.breadcrumbs { font-size: 13.5px; color: var(--muted-2); margin-bottom: 26px; }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: #fff; }
.breadcrumbs span { margin: 0 8px; color: #3d3d3d; }
.article-hero .tag {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--red);
  border: 1px solid rgba(255,43,43,.4); border-radius: 999px;
  padding: 5px 14px; margin-bottom: 20px;
}
.article-hero h1 {
  font-size: clamp(32px, 5.4vw, 54px); font-weight: 900;
  letter-spacing: -.025em; line-height: 1.06; margin-bottom: 18px;
}
.article-hero .lede { font-size: 19px; color: var(--muted); max-width: 680px; }

.article { padding: 24px 0 80px; }
.article h2 {
  font-size: clamp(24px, 3.4vw, 32px); font-weight: 800; letter-spacing: -.02em;
  margin: 52px 0 16px; line-height: 1.15;
}
.article h3 { font-size: 20px; font-weight: 800; margin: 34px 0 10px; }
.article p { color: #cfcfcf; margin-bottom: 18px; }
.article ul, .article ol { color: #cfcfcf; margin: 0 0 18px 22px; }
.article li { margin-bottom: 10px; }
.article li::marker { color: var(--red); font-weight: 700; }
.article strong { color: #fff; }
.article p a, .article li a {
  color: #fff; font-weight: 600; text-decoration: none; padding: 1px 4px; margin: 0 -4px; border-radius: 3px;
  background-image: linear-gradient(var(--red), var(--red)), linear-gradient(rgba(255,43,43,.3), rgba(255,43,43,.3));
  background-size: 0% 100%, 100% 2px;
  background-position: 0 100%, 0 100%;
  background-repeat: no-repeat;
  box-decoration-break: clone; -webkit-box-decoration-break: clone;
  transition: background-size .4s cubic-bezier(.25,.8,.25,1), color .2s ease;
}
.article p a:hover, .article li a:hover { background-size: 100% 100%, 100% 2px; }
.article blockquote {
  border-left: 3px solid var(--red); padding: 6px 0 6px 22px;
  margin: 28px 0; font-size: 20px; font-weight: 700; color: #fff; line-height: 1.4;
}
.article .shot-inline {
  max-width: 300px; margin: 36px auto;
}
.article .shot-inline img {
  border-radius: 26px;
  box-shadow: 0 24px 60px rgba(0,0,0,.6);
}
.article .shot-inline figcaption {
  text-align: center; font-size: 13.5px; color: var(--muted-2); margin-top: 12px;
}
.how-box {
  background: var(--panel-2); border: 1px solid var(--border);
  border-left: 3px solid var(--red);
  border-radius: 16px; padding: 26px 28px; margin: 32px 0;
}
.how-box h3 { margin-top: 0; }
.article-cta {
  text-align: center; background: var(--panel);
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 44px 32px; margin-top: 56px;
}
.article-cta h2 { margin: 0 0 10px; font-size: 26px; }
.article-cta p { color: var(--muted); margin-bottom: 26px; }
.related { margin-top: 64px; }
.related h2 { font-size: 22px; margin-bottom: 20px; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 760px) { .related-grid { grid-template-columns: 1fr; } }

/* utility */
.center { text-align: center; }
.mt-40 { margin-top: 40px; }
