/* Body Measurement Tracker — shared styles */
:root {
  --pink: #f4668f;
  --orange: #f7a355;
  --peach: #fbd0a7;
  --ink: #1d1a17;
  --ink-soft: #4c4640;
  --bg: #fffaf5;
  --card: #ffffff;
  --line: #f0e2d4;
  --grad: linear-gradient(100deg, #f4668f 0%, #f7a355 100%);
  --grad-soft: linear-gradient(160deg, #ffe3ec 0%, #ffedd9 55%, #fff7ea 100%);
  --radius: 20px;
  --shadow: 0 10px 30px rgba(180, 110, 60, 0.12);
  --maxw: 1080px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--pink); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

h1, h2, h3 { line-height: 1.2; letter-spacing: -0.02em; font-weight: 800; }
h1 { font-size: clamp(2rem, 5.5vw, 3.3rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); margin-bottom: 0.6em; }
h3 { font-size: 1.15rem; }
.accent {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.kicker {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--pink);
  margin-bottom: 0.8em;
}
section { padding: 72px 0; }
.section-sub { color: var(--ink-soft); max-width: 640px; margin-bottom: 2.2em; font-size: 1.06rem; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 250, 245, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 10px 20px;
  display: flex; align-items: center; gap: 14px;
}
.nav-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--ink); font-size: 1rem; }
.nav-brand img { width: 36px; height: 36px; border-radius: 9px; }
.nav-links { margin-left: auto; display: flex; align-items: center; gap: 22px; }
.nav-links a { color: var(--ink-soft); font-weight: 600; font-size: 0.95rem; white-space: nowrap; }
.nav-links a:hover { color: var(--pink); text-decoration: none; }
.nav-cta {
  background: var(--grad); color: #fff !important; font-weight: 700;
  padding: 9px 18px; border-radius: 999px; font-size: 0.92rem;
}
.nav-cta:hover { opacity: 0.92; text-decoration: none; }
@media (max-width: 720px) { .nav-links a:not(.nav-cta) { display: none; } }

/* Hero */
.hero { background: var(--grad-soft); padding: 84px 0 0; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 40px; align-items: center; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } }
.hero p.lead { font-size: 1.18rem; color: var(--ink-soft); margin: 1.1em 0 1.6em; max-width: 540px; }
.store-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.store-badges img { height: 52px; width: auto; }
@media (max-width: 480px) { .store-badges img { height: 44px; } }
.hero-proof { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 26px; color: var(--ink-soft); font-size: 0.95rem; font-weight: 600; }
.hero-proof .stars { color: #f5a623; letter-spacing: 2px; }
.hero-phones { display: flex; flex-wrap: nowrap; gap: 4.5%; justify-content: center; align-items: flex-end; }
.hero-phone { width: min(236px, 47%); min-width: 0; height: auto; filter: drop-shadow(0 24px 40px rgba(180, 90, 60, 0.25)); }
.hero-phones .hero-phone:first-child { margin-bottom: 34px; }
@media (max-width: 480px) { .hero-phones .hero-phone:last-child { display: none; } .hero-phones .hero-phone:first-child { margin-bottom: 0; width: min(260px, 80%); } }

/* Screenshots rail */
.shots-rail {
  display: flex; gap: 20px; overflow-x: auto; padding: 10px 4px 26px;
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
}
.shots-rail figure { flex: 0 0 240px; scroll-snap-align: start; }
.shots-rail img { border-radius: 24px; box-shadow: var(--shadow); }
.shots-rail figcaption { text-align: center; font-size: 0.88rem; color: var(--ink-soft); margin-top: 10px; font-weight: 600; }

/* Cards / grids */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
@media (max-width: 860px) { .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: 0 4px 14px rgba(180, 110, 60, 0.06);
}
.card .emoji { font-size: 1.7rem; display: block; margin-bottom: 12px; }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--ink-soft); font-size: 0.97rem; }

/* Steps */
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--grad); color: #fff; font-weight: 800; font-size: 1.1rem;
  margin-bottom: 14px;
}

/* Guides */
.guide-card { display: block; color: inherit; transition: transform 0.15s ease, box-shadow 0.15s ease; }
.guide-card:hover { text-decoration: none; transform: translateY(-3px); box-shadow: var(--shadow); }
.guide-card h3 { color: var(--ink); }
.guide-card .more { color: var(--pink); font-weight: 700; font-size: 0.92rem; }

/* Reviews */
.review-card { display: flex; flex-direction: column; text-align: center; }
.review-card .stars { color: #f5a623; letter-spacing: 3px; font-size: 1.15rem; margin-bottom: 12px; }
.review-card blockquote { color: var(--ink-soft); font-style: italic; font-size: 0.97rem; flex: 1; }
.review-card cite { display: block; margin-top: 14px; color: var(--ink); font-style: normal; font-weight: 700; font-size: 0.9rem; }
.invitation {
  margin-top: 48px; text-align: center; background: var(--card);
  border: 1px solid var(--line); border-radius: 28px; padding: 44px 32px;
  box-shadow: 0 4px 14px rgba(180, 110, 60, 0.06); max-width: 820px; margin-left: auto; margin-right: auto;
}
.invitation .emoji { font-size: 2.2rem; display: block; margin-bottom: 10px; }
.invitation p { color: var(--ink-soft); max-width: 660px; margin: 0.8em auto 0; font-size: 1.04rem; }

/* FAQ */
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  cursor: pointer; font-weight: 700; font-size: 1.05rem; padding: 20px 30px 20px 0;
  list-style: none; position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  font-size: 1.5rem; font-weight: 400; color: var(--pink); transition: transform 0.2s;
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item .faq-body { padding: 0 0 20px; color: var(--ink-soft); max-width: 760px; }
.faq-item .faq-body a { font-weight: 700; }

/* CTA band */
.cta-band {
  background: var(--grad); border-radius: 28px; padding: 56px 32px; text-align: center; color: #fff;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255, 255, 255, 0.92); max-width: 560px; margin: 0.6em auto 1.6em; }
.cta-band .store-badges { justify-content: center; }

/* Footer */
footer { background: #241f1b; color: #cfc6bd; padding: 56px 0 40px; margin-top: 72px; font-size: 0.95rem; }
footer h4 { color: #fff; font-size: 0.95rem; margin-bottom: 14px; text-transform: uppercase; letter-spacing: 0.06em; }
footer a { color: #cfc6bd; }
footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
footer ul { list-style: none; }
footer li { margin-bottom: 9px; }
.footer-bottom { border-top: 1px solid #3a332d; margin-top: 40px; padding-top: 22px; font-size: 0.85rem; color: #9c9188; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; color: #fff; margin-bottom: 12px; }
.footer-brand img { width: 34px; height: 34px; border-radius: 8px; }

/* Guide article pages */
.article-hero { background: var(--grad-soft); padding: 64px 0 48px; }
.article-hero .crumbs { font-size: 0.88rem; color: var(--ink-soft); margin-bottom: 18px; }
.article-hero h1 { max-width: 800px; }
.article-hero p.lead { font-size: 1.12rem; color: var(--ink-soft); margin-top: 0.9em; max-width: 680px; }
article.guide { max-width: 760px; margin: 0 auto; padding: 48px 20px 0; }
article.guide h2 { margin-top: 1.8em; }
article.guide h3 { margin-top: 1.4em; margin-bottom: 0.4em; }
article.guide p, article.guide li { color: var(--ink-soft); font-size: 1.04rem; margin-bottom: 1em; }
article.guide ul, article.guide ol { padding-left: 1.3em; margin-bottom: 1.2em; }
article.guide li { margin-bottom: 0.5em; }
article.guide .tip {
  background: var(--grad-soft); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 24px; margin: 1.4em 0;
}
article.guide .tip strong { color: var(--ink); }
article.guide figure { margin: 2em auto; max-width: 300px; }
article.guide figure img { border-radius: 24px; box-shadow: var(--shadow); }
article.guide figcaption { text-align: center; font-size: 0.85rem; color: var(--ink-soft); margin-top: 10px; }
.app-bridge {
  background: var(--card); border: 2px solid transparent;
  background-image: linear-gradient(var(--card), var(--card)), var(--grad);
  background-origin: border-box; background-clip: padding-box, border-box;
  border-radius: var(--radius); padding: 28px; margin: 2.2em 0;
}
.app-bridge h3 { margin-top: 0 !important; }
.related { margin: 3em 0 0; padding: 32px 0 0; border-top: 1px solid var(--line); }
.related ul { list-style: none; padding-left: 0 !important; }
.related li { margin-bottom: 10px; }
