/* Shared styles for the App Clip tool pages: /bar-path, /plates, /1rm.
   Mirrors the design system used inline on index/support/philosophy so the
   tool pages look native to the site. Kept in one file because the three
   pages are a family and always change together. */

:root {
  --ink: #0a0a0a; --ink-2: #1a1a1a; --ink-muted: #36454f; --ink-soft: #5b666d;
  --brand-bg: #fafaf0; --brand-orange: #e55722; --brand-orange-dark: #c8471a;
  --teal: #2c7f7a; --card: #ffffff; --ring: rgba(0,0,0,.08); --ring-strong: rgba(0,0,0,.18);
  --shadow-sm: 0 2px 8px rgba(0,0,0,.04); --shadow-md: 0 8px 30px rgba(0,0,0,.08); --shadow-lg: 0 20px 60px rgba(0,0,0,.12);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font: 16px/1.7 "Open Sans", system-ui, -apple-system, sans-serif; color: var(--ink); background: var(--brand-bg); overflow-x: hidden; }

/* Nav (shared with the rest of the site) */
.nav { position: sticky; top: 0; z-index: 100; background: rgba(250,250,240,.92); backdrop-filter: saturate(1.3) blur(12px); -webkit-backdrop-filter: saturate(1.3) blur(12px); border-bottom: 1px solid var(--ring); }
.nav-inner { max-width: 1200px; margin: 0 auto; padding: 14px 22px; display: flex; align-items: center; justify-content: space-between; }
.nav-brand { display: flex; align-items: center; gap: 10px; font: 800 18px/1 "Montserrat", system-ui, sans-serif; color: var(--ink); text-decoration: none; }
.nav-brand-icon { width: 32px; height: 32px; border-radius: 8px; background: var(--brand-orange); display: grid; place-items: center; color: white; font-size: 18px; }
.nav-links { display: flex; gap: 4px; align-items: center; }
.nav-links a { font: 600 14px/1 "Montserrat", system-ui, sans-serif; color: var(--ink-muted); text-decoration: none; padding: 8px 12px; border-radius: 8px; transition: all 0.15s ease; }
.nav-links a:hover { color: var(--brand-orange); background: rgba(229,87,34,.08); }
.nav-cta { background: var(--ink); color: white !important; }
.nav-cta:hover { background: var(--brand-orange) !important; }
@media (max-width: 640px) { .nav-links a:not(.nav-cta) { display: none; } }

/* Hero */
.page-hero { padding: 64px 22px 44px; text-align: center; background: var(--brand-bg); border-bottom: 1px solid var(--ring); }
.page-hero-inner { max-width: 820px; margin: 0 auto; }
.page-eyebrow { display: inline-block; font: 700 12px/1 "Montserrat", system-ui, sans-serif; letter-spacing: .22em; text-transform: uppercase; color: var(--brand-orange); margin-bottom: 16px; }
.page-hero h1 { font: 800 clamp(38px, 5.6vw, 60px) / 1.05 "Montserrat", system-ui, sans-serif; letter-spacing: -.01em; margin-bottom: 18px; }
.page-hero h1 .accent { background: linear-gradient(120deg, var(--brand-orange) 0%, #ff7a3d 60%, var(--brand-orange) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.page-hero p { font-size: clamp(16px, 1.6vw, 18px); color: var(--ink-muted); line-height: 1.65; max-width: 660px; margin: 0 auto; }

.block { padding: 56px 22px; }
.block.tight { padding-top: 34px; }
.container { max-width: 1100px; margin: 0 auto; }
.container.narrow { max-width: 820px; }
.eyebrow { display: inline-block; font: 700 12px/1 "Montserrat", system-ui, sans-serif; letter-spacing: .22em; text-transform: uppercase; color: var(--brand-orange); margin-bottom: 12px; }
h2 { font: 800 clamp(24px, 3vw, 32px) / 1.1 "Montserrat", system-ui, sans-serif; margin-bottom: 14px; }
h3 { font: 700 18px/1.2 "Montserrat", system-ui, sans-serif; margin-bottom: 8px; color: var(--ink); }
.lede { color: var(--ink-muted); max-width: 700px; }

/* App Clip banner — the "why did nothing happen?" explainer */
.clip-banner {
  max-width: 1100px; margin: -22px auto 0; position: relative; z-index: 5;
  background: linear-gradient(160deg, var(--ink), #1a0d05);
  color: white; border-radius: 18px; padding: 26px 28px;
  box-shadow: var(--shadow-lg); overflow: hidden;
}
.clip-banner::before { content: ''; position: absolute; top: -60%; right: -15%; width: 60%; height: 220%; background: radial-gradient(circle, rgba(229,87,34,.20) 0%, transparent 55%); pointer-events: none; }
.clip-banner-inner { position: relative; z-index: 1; display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.clip-banner-icon { flex-shrink: 0; width: 46px; height: 46px; border-radius: 12px; background: linear-gradient(135deg, var(--brand-orange), #ff7a3d); display: grid; place-items: center; color: white; box-shadow: 0 6px 16px rgba(229,87,34,.3); }
.clip-banner-text { flex: 1 1 340px; }
.clip-banner h4 { font: 700 11px/1 "Montserrat", system-ui, sans-serif; letter-spacing: .18em; text-transform: uppercase; color: var(--brand-orange); margin-bottom: 8px; }
.clip-banner p { color: rgba(255,255,255,.80); font-size: 15px; line-height: 1.6; }
.clip-banner p + p { margin-top: 8px; }
.clip-banner strong { color: white; font-weight: 700; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px;
  background: var(--brand-orange); color: white; border-radius: 12px;
  font: 700 15px/1 "Montserrat", system-ui, sans-serif; text-decoration: none;
  transition: transform .15s ease, box-shadow .2s ease;
  box-shadow: 0 10px 28px rgba(229,87,34,.35);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 38px rgba(229,87,34,.45); }
.btn.ghost { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.18); box-shadow: none; }
.btn.ghost:hover { background: rgba(255,255,255,.12); box-shadow: none; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }

/* Cards */
.card-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.card-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.card-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.card { background: white; border: 1px solid var(--ring); border-radius: 18px; padding: 26px 24px; box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--ring-strong); }
.card-icon { width: 44px; height: 44px; border-radius: 12px; background: linear-gradient(135deg, var(--brand-orange), #ff7a3d); display: grid; place-items: center; color: white; margin-bottom: 16px; box-shadow: 0 6px 16px rgba(229,87,34,.25); }
.card p { color: var(--ink-muted); line-height: 1.65; }
.card p + p { margin-top: 10px; }
.card ul { list-style: none; padding: 0; margin: 12px 0 0; }
.card li { display: flex; gap: 10px; padding: 7px 0; color: var(--ink-muted); line-height: 1.55; align-items: flex-start; }
.card li::before {
  content: ''; flex-shrink: 0; width: 18px; height: 18px;
  background: linear-gradient(135deg, var(--brand-orange), #ff7a3d);
  mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") no-repeat center / 14px;
  -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") no-repeat center / 14px;
  margin-top: 4px;
}
.card li strong { color: var(--ink); font-weight: 700; }
.card a { color: var(--brand-orange); text-decoration: none; font-weight: 600; border-bottom: 1px solid rgba(229,87,34,.3); }
.card a:hover { border-bottom-color: var(--brand-orange); }
@media (max-width: 980px) { .card-grid.cols-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 880px) { .card-grid, .card-grid.cols-3 { grid-template-columns: 1fr; gap: 16px; } }
@media (max-width: 560px) { .card-grid.cols-4 { grid-template-columns: 1fr; } }

/* Metric readout — mimics the in-app result row */
.metric { background: white; border: 1px solid var(--ring); border-radius: 16px; padding: 22px; box-shadow: var(--shadow-sm); }
.metric-value { font: 800 clamp(26px, 3.4vw, 34px)/1 "Montserrat", system-ui, sans-serif; color: var(--ink); letter-spacing: -.01em; }
.metric-value span { font-size: .5em; color: var(--ink-soft); font-weight: 700; margin-left: 4px; }
.metric-label { font: 700 11px/1 "Montserrat", system-ui, sans-serif; letter-spacing: .16em; text-transform: uppercase; color: var(--brand-orange); margin-top: 12px; }
.metric-note { color: var(--ink-soft); font-size: 14px; line-height: 1.55; margin-top: 8px; }

/* Numbered steps */
.steps { counter-reset: step; display: grid; gap: 18px; margin-top: 30px; }
.step { display: flex; gap: 18px; align-items: flex-start; background: white; border: 1px solid var(--ring); border-radius: 16px; padding: 22px 24px; box-shadow: var(--shadow-sm); }
.step::before {
  counter-increment: step; content: counter(step);
  flex-shrink: 0; width: 34px; height: 34px; border-radius: 10px;
  background: linear-gradient(135deg, var(--brand-orange), #ff7a3d); color: white;
  display: grid; place-items: center;
  font: 800 16px/1 "Montserrat", system-ui, sans-serif;
  box-shadow: 0 6px 16px rgba(229,87,34,.25);
}
.step p { color: var(--ink-muted); line-height: 1.65; }

/* Honest-limits callout */
.note {
  border-left: 3px solid var(--brand-orange);
  background: rgba(229,87,34,.05);
  border-radius: 0 12px 12px 0;
  padding: 20px 22px;
  margin-top: 30px;
}
.note h3 { margin-bottom: 6px; }
.note p { color: var(--ink-muted); line-height: 1.65; }

/* Closing CTA */
.cta-card { background: linear-gradient(160deg, var(--ink), #1a0d05); color: white; border-radius: 20px; padding: 44px; box-shadow: var(--shadow-lg); position: relative; overflow: hidden; text-align: center; }
.cta-card::before { content: ''; position: absolute; top: -50%; left: 50%; transform: translateX(-50%); width: 90%; height: 200%; background: radial-gradient(circle, rgba(229,87,34,.18) 0%, transparent 55%); pointer-events: none; }
.cta-card > * { position: relative; z-index: 1; }
.cta-card h2 { color: white; }
.cta-card p { color: rgba(255,255,255,.78); line-height: 1.65; max-width: 560px; margin: 0 auto; }
.cta-card .btn-row { justify-content: center; }
@media (max-width: 720px) { .cta-card { padding: 30px 24px; } }

/* Footer (shared with the rest of the site) */
footer { background: var(--ink); color: rgba(255,255,255,.6); padding: 50px 22px 30px; }
.footer-inner { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; }
.footer-brand p { margin-top: 14px; font-size: 14px; line-height: 1.6; max-width: 340px; }
.footer-col h4 { font: 700 12px/1 "Montserrat", system-ui, sans-serif; letter-spacing: .18em; text-transform: uppercase; color: rgba(255,255,255,.85); margin-bottom: 14px; }
.footer-col ul { list-style: none; }
.footer-col li { padding: 6px 0; }
.footer-col a { color: rgba(255,255,255,.6); text-decoration: none; font-size: 14px; transition: color .15s ease; }
.footer-col a:hover { color: var(--brand-orange); }
.footer-bottom { max-width: 1100px; margin: 40px auto 0; padding-top: 26px; border-top: 1px solid rgba(255,255,255,.08); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 13px; }
@media (max-width: 720px) { .footer-inner { grid-template-columns: 1fr; gap: 30px; } }

/* Screenshot showcase — the visual payoff, placed high so it lands first */
/* overflow-x: clip contains the halo below. It is a pseudo-element, so it
   widens the page without ever showing up in a bounding-rect audit. `clip`
   rather than `hidden` so the vertical axis stays visible. */
.showcase { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 48px; align-items: center; overflow-x: clip; }
.showcase-shot { justify-self: center; position: relative; }
.showcase-shot img,
.showcase-shot video {
  display: block; width: 100%; max-width: 330px; height: auto;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 28px 70px rgba(0,0,0,.30), 0 6px 18px rgba(0,0,0,.16);
}
/* The looping clip is the single strongest asset on the site, so it gets a
   little more room than a static screenshot. */
.showcase-shot video { max-width: 360px; background: #000; }
/* Warm halo behind the phone so a dark screenshot doesn't float on cream. */
.showcase-shot::before {
  content: ''; position: absolute; inset: -14% -22%;
  background: radial-gradient(ellipse at center, rgba(229,87,34,.16) 0%, transparent 62%);
  pointer-events: none; z-index: -1;
}
.showcase-text h2 { margin-bottom: 14px; }
.showcase-text p { color: var(--ink-muted); line-height: 1.7; }
.showcase-text p + p { margin-top: 14px; }
.showcase-text .readout {
  margin-top: 22px; padding: 18px 20px;
  background: white; border: 1px solid var(--ring); border-radius: 14px;
  box-shadow: var(--shadow-sm);
}
.showcase-text .readout strong { color: var(--ink); }
.showcase-text .readout span { color: var(--ink-soft); }
@media (max-width: 880px) {
  .showcase { grid-template-columns: 1fr; gap: 32px; }
  .showcase-text { order: -1; }
}

/* Email capture band */
.signup { background: white; border: 1px solid var(--ring); border-radius: 20px; padding: 40px; box-shadow: var(--shadow-sm); }
.signup h2 { margin-bottom: 10px; }
.signup > p { color: var(--ink-muted); line-height: 1.65; max-width: 620px; }
.signup form { display: flex; gap: 12px; margin-top: 26px; flex-wrap: wrap; }
.signup input[type="email"] {
  flex: 1 1 280px; min-width: 0;
  padding: 15px 18px;
  font: 400 16px/1.2 "Open Sans", system-ui, sans-serif;
  color: var(--ink);
  background: var(--brand-bg);
  border: 1px solid var(--ring-strong); border-radius: 12px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.signup input[type="email"]::placeholder { color: var(--ink-soft); }
.signup input[type="email"]:focus { outline: none; border-color: var(--brand-orange); box-shadow: 0 0 0 3px rgba(229,87,34,.15); }
.signup button {
  flex: 0 0 auto;
  padding: 15px 26px;
  font: 700 15px/1.2 "Montserrat", system-ui, sans-serif;
  color: white; background: var(--brand-orange);
  border: 0; border-radius: 12px; cursor: pointer;
  box-shadow: 0 10px 28px rgba(229,87,34,.35);
  transition: transform .15s ease, box-shadow .2s ease;
}
.signup button:hover { transform: translateY(-2px); box-shadow: 0 14px 38px rgba(229,87,34,.45); }
.signup .fine { margin-top: 16px; font-size: 13px; color: var(--ink-soft); line-height: 1.55; }
/* Honeypot: off-screen rather than display:none, which some bots skip. */
.signup .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.signup .status { margin-top: 16px; font-size: 14px; line-height: 1.55; font-weight: 600; display: none; }
.signup .status.show { display: block; }
.signup .status.ok { color: var(--teal); }
.signup .status.err { color: var(--brand-orange-dark); }
.signup form.busy button { opacity: .6; pointer-events: none; }
.signup .opt-in { flex-basis: 100%; display: flex; align-items: flex-start; gap: 10px;
  margin-top: -2px; cursor: pointer; }
.signup .opt-in input { width: 18px; height: 18px; margin: 2px 0 0; flex: none;
  accent-color: var(--brand-orange); cursor: pointer; }
.signup .opt-in span { font-size: 15px; line-height: 1.5; color: var(--ink-muted); }
.signup .opt-in strong { color: var(--ink); font-weight: 700; }
@media (max-width: 560px) {
  .signup { padding: 28px 24px; }
  .signup button { width: 100%; }
}

/* Platform-conditional blocks, toggled by the inline script */
.ios-only, .not-ios-only { display: none; }
