/* RipIQ drill pages — shared styles, matches main site design */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --green:      #22c55e;
  --green-dim:  #16a34a;
  --bg:         #000000;
  --surface:    #111111;
  --surface2:   #1a1a1a;
  --border:     #2a2a2a;
  --text:       #ffffff;
  --muted:      #888888;
  --radius:     20px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  height: 64px;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.nav-logo { text-decoration: none; }
.nav-logo-text { font-size: 22px; font-weight: 700; letter-spacing: -0.5px; color: #fff; }
.nav-logo-text span { color: var(--green); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  background: var(--green);
  color: #000;
  font-size: 14px;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: 50px;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}
.nav-cta:hover { background: var(--green-dim); transform: scale(1.03); }

main {
  max-width: 760px;
  margin: 0 auto;
  padding: 120px 24px 80px;
}

.breadcrumb {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 28px;
}
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--green); }

.drill-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }

.tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 50px;
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--muted);
}
.tag.mechanic { color: var(--green); border-color: rgba(34,197,94,0.35); }

h1 {
  font-size: clamp(34px, 5vw, 52px);
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1.1;
  margin-bottom: 18px;
}

.lede {
  font-size: 19px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 40px;
}

h2 {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin: 44px 0 16px;
}

p { font-size: 16px; line-height: 1.75; color: #ccc; margin-bottom: 16px; }

.meta-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 8px;
}

.meta-box {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 16px;
}
.meta-box .k { font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.meta-box .v { font-size: 15px; font-weight: 700; }

ol.steps { counter-reset: step; list-style: none; display: flex; flex-direction: column; gap: 14px; margin-bottom: 16px; }

ol.steps li {
  counter-increment: step;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 18px;
  font-size: 15px;
  line-height: 1.65;
  color: #ccc;
}

ol.steps li::before {
  content: counter(step);
  flex-shrink: 0;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--surface);
  border: 1.5px solid var(--green);
  color: var(--green);
  font-weight: 800;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

ul.mistakes { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
ul.mistakes li { display: flex; gap: 12px; font-size: 15px; line-height: 1.6; color: #ccc; }
ul.mistakes li::before { content: '✕'; color: #ef4444; font-weight: 700; flex-shrink: 0; }

.app-cta {
  margin-top: 56px;
  background: linear-gradient(160deg, #0d2b18 0%, #111 60%);
  border: 1.5px solid var(--green);
  border-radius: 24px;
  padding: 36px 32px;
  text-align: center;
}
.app-cta h2 { margin: 0 0 12px; }
.app-cta p { color: var(--muted); max-width: 480px; margin: 0 auto 24px; }
.app-cta .btn {
  display: inline-block;
  background: var(--green);
  color: #000;
  font-weight: 700;
  font-size: 15px;
  padding: 14px 28px;
  border-radius: 14px;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}
.app-cta .btn:hover { background: var(--green-dim); transform: scale(1.02); }
.app-cta .fine { font-size: 12px; color: var(--muted); margin: 12px 0 0; }

.related { margin-top: 48px; }
.related-links { display: flex; flex-direction: column; gap: 10px; }
.related-links a {
  color: #ccc;
  text-decoration: none;
  font-size: 15px;
  padding: 14px 18px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 14px;
  transition: border-color 0.2s;
}
.related-links a:hover { border-color: rgba(34,197,94,0.4); }
.related-links a span { color: var(--green); }

/* index page */
.drill-group { margin-bottom: 48px; }
.drill-group h2 { color: var(--green); font-size: 14px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; margin: 0 0 16px; }
.drill-cards { display: flex; flex-direction: column; gap: 12px; }
.drill-card {
  display: block;
  text-decoration: none;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
  transition: border-color 0.2s, transform 0.2s;
}
.drill-card:hover { border-color: rgba(34,197,94,0.4); transform: translateY(-2px); }
.drill-card .t { font-size: 17px; font-weight: 700; color: #fff; margin-bottom: 6px; }
.drill-card .d { font-size: 14px; color: var(--muted); line-height: 1.55; }
.drill-card .lvl { font-size: 11px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--green); margin-top: 10px; display: inline-block; }

footer {
  border-top: 1px solid var(--border);
  padding: 32px 40px;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}
footer a { color: var(--muted); text-decoration: none; margin: 0 12px; }
footer a:hover { color: #fff; }

@media (max-width: 600px) {
  nav { padding: 0 20px; }
  .meta-row { grid-template-columns: 1fr; }
}
