/* ============================================
   iRunning site — main.css
   Web adaptation of the "Trail calm" design system (DESIGN_SYSTEM.md).
   Daylight first, paper not glass, green means go.
   Weights 400 / 500 / 600 only. No gradients. Tabular numerics for stats.
   ============================================ */

/* ---- Tokens ---- */
:root {
  /* Primitives — Trail calm palette */
  --green-50:  #E1F5EE;
  --green-100: #9FE1CB;
  --green-200: #5DCAA5;
  --green-400: #1D9E75;
  --green-600: #0F6E56;
  --green-800: #085041;
  --green-900: #04342C;
  --paper-50:  #FFFFFF;
  --paper-100: #F8F6EF;
  --paper-200: #F1EFE8;
  --paper-400: #D3D1C7;
  --paper-600: #888780;
  --paper-800: #444441;
  --paper-900: #2C2C2A;
  --amber-400: #BA7517;
  --amber-600: #854F0B;
  --coral-400: #D85A30;
  --coral-600: #A83E1D;
  --mut: #6E7B74; /* muted grey-green, from the design file */

  /* Semantic */
  --bg: var(--paper-200);
  --surface: var(--paper-50);
  --surface-hover: var(--paper-100);
  --text-primary: var(--green-900);
  --text-body: var(--paper-900);
  --text-secondary: var(--paper-600);
  --accent: var(--green-400);
  --accent-pressed: var(--green-600);
  --border: var(--paper-400);

  /* Radii — radius.sm/md/lg/xl/full */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 999px;

  --font: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', Roboto, sans-serif;
  --max-width: 1100px;
  --prose-width: 720px;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: var(--font);
  color: var(--text-body);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

h1, h2, h3, h4 { color: var(--text-primary); font-weight: 600; }

.tnum { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---- Container ---- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 48px;
}

/* ---- Header ---- */
.site-header {
  /* Solid paper, no blur — "paper, not glass" per the design system */
  position: sticky;
  top: 0;
  background: var(--paper-200);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--text-primary);
}
.logo-icon-img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: block;
  flex-shrink: 0;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}
.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--paper-800);
  transition: color 0.2s;
}
.nav-link:hover { color: var(--accent-pressed); }

/* ---- Buttons ---- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #fff;
  font-weight: 500;
  font-size: 1rem;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  transition: background 0.2s, transform 80ms ease-out;
  cursor: pointer;
}
.btn-primary:hover { background: var(--accent-pressed); }
.btn-primary:active { transform: scale(0.97); }
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  color: var(--text-primary);
  border: 1px solid var(--border);
  font-weight: 500;
  font-size: 1rem;
  padding: 13px 27px;
  border-radius: var(--radius-md);
  transition: background 0.2s, transform 80ms ease-out;
}
.btn-secondary:hover { background: var(--surface-hover); }
.btn-secondary:active { transform: scale(0.97); }
.btn-nav {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-weight: 500;
  font-size: 0.85rem;
  padding: 9px 18px;
  border-radius: var(--radius-md);
  transition: background 0.2s;
}
.btn-nav:hover { background: var(--accent-pressed); }
.btn-white {
  display: inline-block;
  background: #fff;
  color: var(--green-900);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  transition: background 0.2s, transform 80ms ease-out;
}
.btn-white:hover { background: var(--paper-100); }
.btn-white:active { transform: scale(0.97); }

/* ---- Hero ---- */
.hero { padding: 72px 0 64px; }
.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  max-width: 100%;
  white-space: nowrap;
  color: var(--mut);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.hero-badge::before,
.hero-badge::after {
  content: "";
  width: 44px;
  height: 1px;
  background: currentColor;
  opacity: 0.45;
}
.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin-bottom: 24px;
  color: var(--text-primary);
}
.hero-sub {
  font-size: 1.2rem;
  color: var(--mut);
  max-width: 30em;
  margin-bottom: 32px;
  line-height: 1.6;
}
.hero-cta { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.hero-note {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  margin-top: 18px;
}
.hero-rating {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--green-800);
  font-size: 1rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.hero-rating .stars { letter-spacing: 2px; font-size: 0.95rem; }
.hero-rating-src { color: var(--mut); font-weight: 400; font-size: 0.95rem; }
.hero-note-text { font-size: 0.95rem; color: var(--mut); }

/* ---- Device frames (real app screenshots) ---- */
.hero-visual { display: flex; justify-content: center; align-items: center; }
.phone {
  background: var(--green-900);
  border-radius: 48px;
  padding: 9px;
  /* soft diffuse shadow + tight contact shadow */
  box-shadow: 0 30px 70px -18px rgba(4, 52, 44, 0.34), 0 2px 6px rgba(4, 52, 44, 0.10);
  width: 320px;
  flex-shrink: 0;
}
.phone-screen-shot {
  border-radius: 40px;
  overflow: hidden;
  background: var(--paper-200);
}
.phone-screen-shot img { width: 100%; display: block; }

/* ---- "Your session" strip (proportional bars) ---- */
.timeline { padding: 24px 0 72px; }
.mono-num {
  font-family: "SF Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-variant-numeric: tabular-nums;
}
.session-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px 32px;
}
.session-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 22px;
}
.session-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
}
.session-total { font-size: 0.75rem; color: var(--text-secondary); }
.session-grid {
  display: grid;
  grid-template-columns: 100px 1fr 60px;
  gap: 12px 18px;
  align-items: center;
  font-size: 0.95rem;
}
.session-name { font-weight: 500; color: var(--text-body); white-space: nowrap; }
.session-name-run { font-weight: 600; color: var(--green-600); }
.session-reps { font-style: normal; font-size: 0.75rem; color: var(--green-400); }
.session-reps-mut { color: var(--text-secondary); }
.session-bar { height: 12px; border-radius: 8px; }
.bar-warmup { background: var(--green-100); width: 100%; }
.bar-run { background: var(--green-400); width: 15%; }
.bar-walk { background: var(--green-100); width: 10%; opacity: 0.7; }
.bar-cooldown { background: #DCDDD6; width: 100%; }
.session-time { text-align: right; font-size: 0.95rem; color: var(--text-secondary); }
.session-time-run { color: var(--text-primary); font-weight: 600; }
.session-caption {
  margin-top: 24px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* ---- Sections ---- */
.section { padding: 72px 0; }
.section-title {
  text-align: center;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  color: var(--text-primary);
}
.section-subtitle {
  text-align: center;
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 48px;
}

/* ---- Features grid ---- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.feature-card:hover { background: var(--surface-hover); border-color: var(--green-200); transform: translateY(-2px); }
.feature-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--green-50);
  border-radius: var(--radius-md);
  margin-bottom: 18px;
  color: var(--green-600);
}
.feature-card h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: 8px; }
.feature-card p { font-size: 0.9rem; color: var(--paper-800); line-height: 1.6; }

/* ---- Watch section (surface from design variant A) ---- */
.watch-section { padding: 72px 0; }
.watch-card {
  background: var(--surface);
  border: 1px solid rgba(4, 52, 44, 0.10);
  border-radius: var(--radius-xl);
  padding: 64px 72px;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 56px;
  align-items: center;
}
.watch-copy h2 {
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.watch-copy p { font-size: 1rem; color: var(--paper-800); margin-bottom: 20px; max-width: 460px; }
.watch-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.watch-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--text-body);
}
.watch-list li::before {
  content: "";
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green-400);
  margin-top: 7px;
}
.watch-visual { display: flex; justify-content: center; align-items: center; }

/* Apple Watch Ultra render — titanium case + green sport band (design variant A).
   Gradients depict hardware, not UI surfaces. */
.aw { position: relative; width: 240px; display: flex; flex-direction: column; align-items: center; }
.aw-band {
  width: 126px;
  background: linear-gradient(100deg, #33503C, #1F3527);
  position: relative;
  z-index: 0;
  box-shadow: inset -12px 0 18px -8px rgba(0, 0, 0, 0.45), inset 12px 0 14px -8px rgba(255, 255, 255, 0.10);
}
.aw-band-top { height: 86px; border-radius: 18px 18px 7px 7px; margin-bottom: -21px; }
.aw-band-bot { height: 117px; border-radius: 7px 7px 53px 53px / 7px 7px 30px 30px; margin-top: -21px; }
.aw-case {
  position: relative;
  z-index: 1;
  padding: 10px;
  background: linear-gradient(145deg, #4A4A4D, #16171A 42%, #2E2F33);
  border-radius: 20% / 17%;
  box-shadow: 0 24px 50px -14px rgba(4, 52, 44, 0.5), 0 1px 2px rgba(0, 0, 0, 0.45), inset 0 1px 1px rgba(255, 255, 255, 0.22);
}
.aw-case img {
  display: block;
  width: 200px;
  height: auto;
  border-radius: 15% / 12%;
  background: #000;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.6);
}
.aw-guard { position: absolute; right: -8px; top: 26%; width: 11px; height: 46%; border-radius: 5px; background: linear-gradient(90deg, #3D3E42, #1A1B1E); }
.aw-crown {
  position: absolute;
  right: -10px;
  top: 30%;
  width: 14px;
  height: 29px;
  border-radius: 5px;
  background: linear-gradient(90deg, #46474B, #1D1E21);
  display: flex;
  align-items: center;
  justify-content: center;
}
.aw-crown::after { content: ""; width: 10px; height: 10px; border-radius: 999px; background: radial-gradient(circle at 35% 35%, #F2A03C, #C0620F); }
.aw-sidebtn { position: absolute; right: -9px; top: 62%; width: 10px; height: 30px; border-radius: 4px; background: linear-gradient(90deg, #3A3B3F, #17181B); }
.aw-action { position: absolute; left: -9px; top: 37%; width: 10px; height: 34px; border-radius: 4px; background: linear-gradient(90deg, #A85511, #EE9436); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.4); }

/* ---- Screens gallery ---- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.shot-card { text-align: center; }
.shot-frame {
  /* corner roundness proportional to the hero phone (48px @ 320px wide) */
  background: var(--green-900);
  border-radius: 34px;
  padding: 7px;
  box-shadow: 0 12px 32px rgba(4, 52, 44, 0.12);
}
.shot-frame img { border-radius: 28px; display: block; width: 100%; }
.shot-card h3 { margin: 16px 0 4px; font-size: 1rem; font-weight: 600; }
.shot-card p { font-size: 0.85rem; color: var(--paper-800); line-height: 1.5; }

/* ---- Split cards (import / share) ---- */
.split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.split-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
}
.split-card h3 { font-size: 1.15rem; font-weight: 600; margin-bottom: 10px; }
.split-card p { font-size: 0.95rem; color: var(--paper-800); line-height: 1.65; }
.split-kicker {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green-600);
  background: var(--green-50);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  margin-bottom: 14px;
}

/* ---- Reviews ---- */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.review-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.review-stars { color: var(--amber-400); font-size: 0.9rem; margin-bottom: 10px; letter-spacing: 2px; }
.review-card p { font-size: 0.92rem; color: var(--text-body); line-height: 1.65; margin-bottom: 12px; }
.review-author { font-size: 0.8rem; font-weight: 600; color: var(--text-secondary); }

/* ---- Bottom CTA ---- */
.bottom-cta { padding: 24px 0 72px; }
.bottom-cta-panel {
  background: var(--green-400);
  border-radius: var(--radius-xl);
  padding: 64px 48px;
  text-align: center;
}
.bottom-cta-panel h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 600;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
  color: #fff;
}
.bottom-cta-panel p { font-size: 1rem; color: var(--green-50); margin-bottom: 28px; }

/* ---- Blog preview & post cards ---- */
.blog-preview { padding: 0 0 80px; }
.blog-preview-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 32px; }
.blog-preview-header h2 { font-size: 1.5rem; font-weight: 600; }
.link-more { color: var(--green-600); font-weight: 500; font-size: 0.9rem; }
.link-more:hover { color: var(--green-800); }

.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}
.post-card {
  display: block;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  background: var(--surface);
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.post-card:hover { background: var(--surface-hover); border-color: var(--green-200); transform: translateY(-2px); }
.post-card-meta { display: flex; gap: 10px; align-items: center; margin-bottom: 12px; flex-wrap: wrap; }
.post-card-meta time { font-size: 0.8rem; color: var(--text-secondary); }
.post-card h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: 8px; line-height: 1.4; }
.post-card p { font-size: 0.88rem; color: var(--paper-800); line-height: 1.6; }

/* ---- Category tags (colored like the app's interval states) ---- */
.tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  background: var(--paper-100);
  color: var(--paper-800);
  border: 1px solid var(--border);
}
.tag-features { background: var(--green-50); color: var(--green-800); border-color: var(--green-100); }
.tag-events { background: rgba(186, 117, 23, 0.1); color: var(--amber-600); border-color: rgba(186, 117, 23, 0.25); }
.tag-releases { background: rgba(216, 90, 48, 0.1); color: var(--coral-600); border-color: rgba(216, 90, 48, 0.25); }
.tag-news { background: var(--paper-100); color: var(--paper-800); border-color: var(--border); }
.tag-guides { background: rgba(110, 123, 116, 0.12); color: #4A5651; border-color: rgba(110, 123, 116, 0.32); }
.tag-training { background: rgba(42, 140, 138, 0.12); color: #1E6B69; border-color: rgba(42, 140, 138, 0.32); }

/* ---- Blog listing page ---- */
.blog-page-header { padding: 64px 0 40px; }
.blog-page-header h1 {
  font-size: 2.2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.blog-page-header p { color: var(--text-secondary); }
.blog-listing { padding-bottom: 80px; }

/* ---- Post page ---- */
.post { padding-top: 60px; padding-bottom: 80px; }
.post-header { max-width: var(--prose-width); margin: 0 auto 40px; }
.post-meta { display: flex; gap: 12px; align-items: center; margin-bottom: 16px; flex-wrap: wrap; }
.post-meta time { font-size: 0.85rem; color: var(--text-secondary); }
.reading-time { font-size: 0.8rem; color: var(--text-secondary); }
.post-title {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 16px;
}
.post-description { font-size: 1.1rem; color: var(--paper-800); line-height: 1.65; }

/* Post content typography */
.post-content {
  max-width: var(--prose-width);
  margin: 0 auto 56px;
  font-size: 1.02rem;
  line-height: 1.75;
}
.post-content h2 { font-size: 1.5rem; font-weight: 600; margin: 40px 0 16px; letter-spacing: -0.01em; }
.post-content h3 { font-size: 1.2rem; font-weight: 600; margin: 28px 0 12px; }
.post-content p { margin-bottom: 20px; }
.post-content ul, .post-content ol { margin: 0 0 20px 24px; }
.post-content li { margin-bottom: 8px; }
.post-content strong { font-weight: 600; }
.post-content a { color: var(--green-600); text-decoration: underline; text-underline-offset: 2px; }
.post-content a:hover { color: var(--green-800); }
.post-content blockquote {
  border-left: 3px solid var(--green-400);
  padding: 12px 20px;
  background: var(--green-50);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 24px 0;
  color: var(--green-800);
}
.post-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 0.9rem;
  background: var(--surface);
  font-variant-numeric: tabular-nums;
}
.post-content th {
  text-align: left;
  padding: 10px 12px;
  background: var(--paper-100);
  border: 1px solid var(--border);
  font-weight: 600;
  color: var(--text-primary);
}
.post-content td { padding: 10px 12px; border: 1px solid var(--border); }
.post-figure { margin: 32px 0; }
.post-figure img {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--paper-100);
}
.post-figure.photo img { border: 0; }
.post-figure video {
  display: block;
  width: 100%;
  max-width: 320px;
  height: auto; /* the width/height attributes only reserve the 9:16 box */
  aspect-ratio: 9 / 16;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  background: var(--paper-200);
}

.video-figure { margin: 40px 0; }
.post-figure figcaption {
  margin-top: 10px;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--text-secondary);
  text-align: center;
}

/* Post CTA box */
.post-cta {
  max-width: var(--prose-width);
  margin: 0 auto;
  background: var(--green-400);
  border-radius: var(--radius-lg);
  padding: 40px;
  text-align: center;
}
.post-cta h2 { font-size: 1.5rem; font-weight: 600; margin-bottom: 8px; letter-spacing: -0.01em; color: #fff; }
.post-cta p { color: var(--green-50); margin-bottom: 24px; font-size: 0.95rem; }

/* ---- Footer ---- */
.site-footer {
  background: var(--green-900);
  padding: 48px 0 32px;
  margin-top: 8px;
}
.footer-inner { display: flex; flex-direction: column; gap: 24px; align-items: center; text-align: center; }
.footer-brand .logo-text { font-size: 1.1rem; font-weight: 600; color: var(--paper-200); }
.footer-brand p { font-size: 0.85rem; color: var(--paper-400); margin-top: 4px; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; justify-content: center; }
.footer-links a { font-size: 0.85rem; color: var(--green-100); transition: color 0.2s; }
.footer-links a:hover { color: #fff; }
.footer-copy { font-size: 0.8rem; color: var(--paper-600); }

/* ---- Generic page (privacy, terms) ---- */
.page-content {
  max-width: var(--prose-width);
  margin: 60px auto;
  line-height: 1.75;
}
.page-content h1 { font-size: 2rem; font-weight: 600; margin-bottom: 40px; }
.page-content h2 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-top: 40px;
  margin-bottom: 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
}
.page-content p { margin-bottom: 16px; }
.page-content ul, .page-content ol { margin: 0 0 20px 0; padding-left: 24px; }
.page-content li { margin-bottom: 8px; padding-left: 4px; }
.page-content a { color: var(--green-600); text-decoration: underline; }
.page-content a:hover { color: var(--green-800); }

/* ---- Scroll animations ---- */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .animate-on-scroll { opacity: 1; transform: none; transition: none; }
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .watch-card { grid-template-columns: 1fr 300px; gap: 40px; padding: 48px 48px; }
}
@media (max-width: 860px) {
  .watch-card { grid-template-columns: 1fr; padding: 40px 32px; }
  .watch-visual { order: -1; }
}
@media (max-width: 768px) {
  .container { padding: 0 24px; }
  .hero { padding: 48px 0 48px; }
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-sub { max-width: 100%; }
  .hero-cta { justify-content: center; }
  .hero-note { align-items: center; }
  .hero-visual { margin-top: 40px; }
  .features-grid { grid-template-columns: 1fr; }
  .split-grid { grid-template-columns: 1fr; }
  .reviews-grid { grid-template-columns: 1fr; }
  .posts-grid { grid-template-columns: 1fr; }
  .blog-preview-header { flex-direction: column; gap: 12px; align-items: flex-start; }
  .post { padding-top: 40px; padding-bottom: 56px; }
  .post-header { margin-bottom: 32px; }
  .post-content { margin-bottom: 40px; }
  .post-cta { padding: 28px 20px; }
  .bottom-cta-panel { padding: 48px 24px; }
  .section { padding: 48px 0; }
  .timeline { padding: 8px 0 48px; }
  .session-card { padding: 22px 20px; }
  .session-grid { grid-template-columns: 88px 1fr 52px; gap: 10px 12px; font-size: 0.875rem; }
}
@media (max-width: 480px) {
  /* Wide post tables scroll inside themselves instead of widening the page */
  .post-content table { display: block; overflow-x: auto; font-size: 0.84rem; }
  .post-content th, .post-content td { padding: 8px 9px; }
  .phone { width: 280px; }
  .hero-badge { font-size: 0.68rem; letter-spacing: 0.12em; gap: 10px; }
  .gallery-grid { grid-template-columns: 1fr; gap: 32px; }
  .shot-frame { max-width: 280px; margin: 0 auto; }
  .aw { width: 184px; }
  .aw-case { padding: 8px; }
  .aw-case img { width: 152px; }
  .aw-band { width: 98px; }
  .aw-band-top { height: 67px; margin-bottom: -19px; }
  .aw-band-bot { height: 90px; margin-top: -19px; }
  .aw-guard { right: -7px; width: 10px; }
  .aw-crown { right: -9px; width: 13px; height: 26px; }
  .aw-crown::after { width: 9px; height: 9px; }
  .aw-sidebtn { right: -8px; width: 9px; height: 27px; }
  .aw-action { left: -8px; width: 9px; height: 30px; }
}
