/* TrackMyRun — bentontechnology.net/trackmyrun */

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

:root {
  --bg: #FAF7F0;
  --surface: #FFFFFF;
  --ink: #0E0E0E;
  --muted: #5C5C5C;
  --soft: #8A8378;
  --accent: #D2391E;
  --brand-my: #f12124;
  --forest: #0F5132;
  --border: #E8E2D4;
  --max: 1100px;
  --radius: 14px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }

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

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 247, 240, 0.92);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.brand {
  display: inline-flex; align-items: center; gap: 12px;
  text-decoration: none; font-weight: 700; font-size: 17px;
  letter-spacing: -0.01em; color: var(--ink);
}
.brand-icon {
  width: 32px; height: 32px; border-radius: 6px;
  flex-shrink: 0; object-fit: contain;
}
.nav-links { display: flex; gap: 28px; font-size: 15px; }
.nav-links a { color: var(--muted); text-decoration: none; transition: color 0.15s; }
.nav-links a:hover { color: var(--ink); }

/* Hero */
.hero { padding: 88px 0 64px; }
.hero .container { max-width: 1600px; }
.hero-grid {
  display: grid; grid-template-columns: 1fr 1.6fr;
  gap: 36px; align-items: center;
}
.hero-eyebrow {
  display: inline-block;
  font-size: 13px; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--accent);
  margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(40px, 6.4vw, 68px);
  line-height: 1.02; letter-spacing: -0.028em;
  font-weight: 700; max-width: 14ch;
}
.hero h1 em { font-style: normal; color: var(--accent); }
.hero p.lede {
  margin-top: 22px; font-size: 19px; max-width: 600px;
  color: #2A2A2A;
}
.hero-cta { display: flex; gap: 14px; margin-top: 36px; flex-wrap: wrap; }
.hero-image {
  display: flex; justify-content: center; align-items: center;
}
.hero-image img {
  width: 100%; height: auto;
}

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px; border-radius: 999px;
  font-weight: 600; text-decoration: none; font-size: 15px;
  transition: transform 0.12s ease, background 0.2s, color 0.2s;
  border: 1px solid transparent; cursor: pointer;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: #2A2520; }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--border); }
.btn-secondary:hover { background: var(--surface); }

/* Sections */
section { padding: 72px 0; }
section h2 {
  font-size: clamp(30px, 4.4vw, 44px);
  line-height: 1.12; letter-spacing: -0.022em;
  font-weight: 700; max-width: 18ch;
}
section h2 em { font-style: normal; color: var(--accent); }
.section-lede {
  margin-top: 14px; font-size: 18px; color: var(--muted);
  max-width: 60ch;
}

/* Feature grid */
.features {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 20px; margin-top: 56px;
}
.feature {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px;
  transition: transform 0.15s, box-shadow 0.2s;
}
.feature:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(20, 17, 14, 0.06);
}
.feature-icon {
  width: 36px; height: 36px; color: var(--accent);
  margin-bottom: 18px;
}
.feature h3 { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.feature p { color: var(--muted); margin-top: 8px; font-size: 15px; }

/* SMS section (dark) */
.sms-section {
  background: #14110E; color: #F5F1E8; padding: 96px 0;
}
.sms-section h2, .sms-section .section-lede { color: #F5F1E8; }
.sms-section .section-lede { color: #C5BFB0; }
.sms-section .hero-eyebrow { color: #FF8A6B; }
/* SMS header */
.sms-header {
  display: grid; grid-template-columns: auto 1fr;
  gap: 48px; align-items: center;
  margin-bottom: 8px;
}
.sms-header-text {
  text-align: right;
}
.sms-header-text h2 {
  max-width: none;
  margin-left: auto;
}
.sms-header-text .section-lede {
  margin-left: auto;
}
.sms-header-image img {
  width: 220px; height: auto;
  border-radius: 22px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.sms-card {
  margin-top: 56px;
  display: grid; grid-template-columns: 320px 1fr;
  gap: 64px; align-items: center;
}
.phone {
  width: 280px; margin: 0 auto;
  border-radius: 36px;
  background: #1F1B17;
  border: 8px solid #0A0807;
  padding: 22px 14px 24px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45);
  position: relative;
}
.phone::before {
  content: ""; position: absolute;
  top: 8px; left: 50%; transform: translateX(-50%);
  width: 86px; height: 22px;
  background: #0A0807; border-radius: 16px;
}
.phone-header {
  text-align: center; padding: 24px 0 16px;
  font-size: 12px; color: #8A8378; letter-spacing: 0.04em;
}
.phone-header strong { display: block; color: #F5F1E8; font-size: 14px; margin-bottom: 2px; }
.bubble {
  background: #2C2622; border-radius: 18px;
  padding: 12px 14px; color: #F5F1E8;
  font-size: 14px; line-height: 1.42; margin-bottom: 8px;
  border-bottom-left-radius: 4px;
  word-wrap: break-word;
}
.bubble-link { color: #FF8A6B; text-decoration: underline; }
.bubble-time { font-size: 11px; color: #6F6960; margin: 8px 0 0 6px; }

.sms-points { list-style: none; padding: 0; }
.sms-points li {
  padding: 18px 0; border-bottom: 1px solid #2A2522;
  display: flex; gap: 16px;
}
.sms-points li:last-child { border-bottom: 0; }
.sms-points strong {
  display: block; color: #F5F1E8;
  font-weight: 600; margin-bottom: 4px; font-size: 16px;
}
.sms-points span { color: #C5BFB0; font-size: 15px; line-height: 1.55; }
.dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent); margin-top: 10px; flex-shrink: 0;
}

.disclosure-box {
  margin-top: 40px;
  background: #1F1B17; border: 1px solid #2A2522;
  border-radius: var(--radius); padding: 24px 28px;
  color: #C5BFB0; font-size: 14px;
}
.disclosure-box strong { color: #F5F1E8; }

/* How-it-works header */
.how-header {
  display: grid; grid-template-columns: 1fr auto;
  gap: 48px; align-items: center;
  margin-bottom: 8px;
}
.how-header-image img {
  width: 220px; height: auto;
  border-radius: 22px;
  box-shadow: 0 16px 40px rgba(20, 17, 14, 0.10);
}

/* Steps */
.steps {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 24px; margin-top: 56px;
  counter-reset: step;
}
.step { padding-left: 18px; border-left: 2px solid var(--accent); }
.step-num {
  font-size: 13px; font-weight: 700; color: var(--accent);
  letter-spacing: 0.06em; text-transform: uppercase;
}
.step h3 { font-size: 18px; margin-top: 6px; letter-spacing: -0.01em; }
.step p { color: var(--muted); margin-top: 8px; font-size: 15px; }

/* FAQ */
.faq { display: grid; gap: 12px; margin-top: 48px; }
details {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 18px 22px;
  transition: border-color 0.15s;
}
details[open] { border-color: #D5CFBE; }
summary {
  font-weight: 600; cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 16px; gap: 16px;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+"; font-weight: 400; font-size: 22px;
  color: var(--soft); flex-shrink: 0;
}
details[open] summary::after { content: "−"; }
details p { margin-top: 12px; color: #2A2A2A; font-size: 15px; }

/* CTA strip */
.cta-strip {
  background: var(--ink); color: #FAF7F0;
  border-radius: 20px; padding: 48px 56px;
  margin-top: 32px;
  display: flex; justify-content: space-between; align-items: center;
  gap: 32px; flex-wrap: wrap;
}
.cta-strip h2 {
  color: #FAF7F0; font-size: 28px; line-height: 1.2; max-width: 24ch;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 56px 0 64px; margin-top: 32px;
  color: var(--muted); font-size: 14px;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px; align-items: start;
}
.footer h4 {
  color: var(--ink); font-size: 13px; font-weight: 600;
  margin-bottom: 14px; letter-spacing: 0.04em;
  text-transform: uppercase;
}
.footer ul { list-style: none; padding: 0; display: grid; gap: 9px; }
.footer a { text-decoration: none; transition: color 0.15s; }
.footer a:hover { color: var(--ink); }
.footer .brand { margin-bottom: 12px; }
.footer-bottom {
  margin-top: 40px; padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: 13px;
}

/* Document pages (privacy / terms / sms / support) */
.doc {
  padding: 56px 0 96px;
  max-width: 760px; margin: 0 auto;
}
.doc .container { padding: 0; }
.doc .back {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 14px; color: var(--muted); text-decoration: none;
  margin-bottom: 24px;
}
.doc .back:hover { color: var(--ink); }
.doc h1 {
  font-size: clamp(34px, 4.4vw, 44px);
  letter-spacing: -0.02em; line-height: 1.08; font-weight: 700;
}
.doc .effective {
  color: var(--muted); margin-top: 10px; font-size: 14px;
}
.doc h2 {
  font-size: 22px; margin-top: 44px; line-height: 1.3;
  letter-spacing: -0.01em;
}
.doc h3 { font-size: 17px; margin-top: 28px; font-weight: 600; }
.doc p, .doc li { font-size: 16px; line-height: 1.72; }
.doc p, .doc ul, .doc ol { margin-top: 14px; }
.doc ul, .doc ol { padding-left: 22px; }
.doc li { margin-top: 6px; }
.doc strong { color: var(--ink); }
.doc a {
  color: var(--accent);
  text-decoration: underline; text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.doc a:hover { text-decoration-thickness: 2px; }
.doc .callout {
  background: var(--surface); border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  padding: 18px 22px; border-radius: 10px;
  margin-top: 24px;
}
.doc .callout strong { display: block; margin-bottom: 4px; }
.doc table {
  width: 100%; border-collapse: collapse; margin-top: 18px;
  font-size: 15px;
}
.doc th, .doc td {
  text-align: left; padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.doc th { font-weight: 600; background: var(--surface); }

/* Screenshots (sms.html opt-in flow) */
.screenshots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 28px 0 12px;
}
.screenshots figure {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
  margin: 0;
}
.screenshots img {
  width: 100%; height: auto;
  border-radius: 8px;
  display: block;
  background: #000;
}
.screenshots figcaption {
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
  margin-top: 12px;
}
.screenshots figcaption strong {
  color: var(--ink);
  font-weight: 600;
}
@media (max-width: 760px) {
  .screenshots { grid-template-columns: 1fr; gap: 18px; }
  .screenshots img { max-width: 360px; margin: 0 auto; }
}

/* Support page form */
.support-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 24px; margin-top: 32px;
}
.support-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px;
}
.support-card h3 {
  font-size: 17px; font-weight: 600; margin-bottom: 8px;
}
.support-card p { color: var(--muted); font-size: 15px; }
.support-card a {
  color: var(--accent); text-decoration: none;
  display: inline-block; margin-top: 12px; font-weight: 500;
}
.support-card a:hover { text-decoration: underline; }

/* Mobile */
@media (max-width: 760px) {
  .hero { padding: 56px 0 40px; }
  section { padding: 56px 0; }
  .nav-inner { flex-wrap: wrap; height: auto; padding: 12px 24px; gap: 8px; }
  .nav-links { gap: 0; font-size: 14px; width: 100%; flex-wrap: wrap; justify-content: center; }
  .nav-links a { text-align: center; white-space: nowrap; padding: 0 12px; border-right: 1px solid var(--border); }
  .nav-links a:last-child { border-right: none; }
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-image { order: -1; }
  .hero-image img { max-width: 360px; }
  .how-header { grid-template-columns: 1fr; gap: 24px; }
  .how-header-image { text-align: center; }
  .how-header-image img { width: 180px; margin: 0 auto; }
  .sms-header { grid-template-columns: 1fr; gap: 24px; }
  .sms-header-image { text-align: center; }
  .sms-header-image img { width: 180px; margin: 0 auto; }
  .features { grid-template-columns: 1fr; gap: 14px; }
  .steps { grid-template-columns: 1fr; gap: 20px; }
  .sms-card { grid-template-columns: 1fr; gap: 32px; }
  .sms-card .phone { margin: 0 auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .cta-strip { padding: 32px 28px; }
  .support-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}
