/* ============================================================
   Page: Tools — How to Use Startup 101
   ============================================================ */

/* ── Hero / Method section ──────────────────────────────────── */
.av-page-tools .method-section {
  background: var(--dark);
  padding: calc(72px + 56px) 56px 100px; /* 72px nav + 56px visual breathing room */
  position: relative;
  overflow: hidden;
}

/* Inline breadcrumb inside hero */
.av-page-tools .method-breadcrumb {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.av-page-tools .method-breadcrumb a {
  font-size: 0.7rem; font-weight: 500;
  color: rgba(255,255,255,0.38);
  text-decoration: none;
  transition: color 0.2s;
}
.av-page-tools .method-breadcrumb a:hover { color: rgba(255,255,255,0.75); }
.av-page-tools .method-breadcrumb svg {
  width: 10px; height: 10px;
  fill: none; stroke: rgba(255,255,255,0.18);
  stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round;
  flex-shrink: 0;
}
.av-page-tools .method-breadcrumb > span {
  font-size: 0.7rem; font-weight: 500;
  color: rgba(255,255,255,0.65);
}
.av-page-tools .method-section::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 60% at 15% 70%, rgba(37,132,197,0.12) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 88% 15%, rgba(240,120,48,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.av-page-tools .method-inner {
  max-width: 1180px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 72px;
  align-items: center;
}

/* Left text column */
.av-page-tools .method-col-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.av-page-tools .method-title {
  font-size: clamp(1.9rem, 2.8vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.08;
  color: rgba(255,255,255,0.94);
  margin: 0 0 18px;
}
.av-page-tools .method-title span { color: var(--blue); }
.av-page-tools .method-lead {
  font-size: 0.9rem;
  font-weight: 300;
  line-height: 1.75;
  color: rgba(255,255,255,0.5);
  margin: 0 0 32px;
}

/* Hero CTA */
.av-page-tools .method-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}
.av-page-tools .method-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 32px;
  border-radius: 10px;
  background: var(--blue);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  box-shadow: 0 8px 28px rgba(37,132,197,0.35);
}
.av-page-tools .method-cta-btn:hover {
  background: #1e76b5;
  box-shadow: 0 12px 36px rgba(37,132,197,0.48);
  transform: translateY(-2px);
}
.av-page-tools .method-cta-btn svg {
  width: 16px; height: 16px; flex-shrink: 0;
  fill: none; stroke: #fff; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
  transition: transform 0.2s;
}
.av-page-tools .method-cta-btn:hover svg { transform: translateX(3px); }
.av-page-tools .method-cta-note {
  font-size: 0.72rem; font-weight: 300;
  color: rgba(255,255,255,0.3);
  margin: 0;
}

/* Flow tree caption */
.av-page-tools .flow-caption {
  text-align: center;
  font-size: 0.78rem; font-weight: 300;
  color: rgba(255,255,255,0.28);
  margin: 12px auto 0;
  max-width: 560px;
}

/* ── Flow tree figure ───────────────────────────────────────── */
.av-page-tools .flow-figure {
  width: 100%;
  position: relative;
  padding-bottom: 0;
}
.av-page-tools .flow-row-top { display: flex; justify-content: center; margin-bottom: 36px; }
.av-page-tools .flow-row-bot { display: flex; justify-content: center; margin-bottom: 20px; }
.av-page-tools .flow-row-mid { display: flex; justify-content: space-between; margin-bottom: 72px; }

/* Flow step cards — now <a> elements */
.av-page-tools .flow-step {
  display: block;
  position: relative; overflow: hidden;
  background: #f4f6f8;
  border: 1px solid transparent;
  border-radius: 14px;
  padding: 18px 18px 20px;
  width: 260px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.av-page-tools .flow-row-top .flow-step,
.av-page-tools .flow-row-bot .flow-step,
.av-page-tools .flow-row-mid .flow-step { width: 260px; }
.av-page-tools .flow-step:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(37,132,197,0.18);
  border-color: rgba(37,132,197,0.3);
}
.av-page-tools .flow-step-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.av-page-tools .flow-step-tile {
  width: 34px; height: 34px; border-radius: 9px;
  background: var(--blue);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.av-page-tools .flow-step-tile svg {
  width: 17px; height: 17px; fill: none;
  stroke: #fff; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}
.av-page-tools .flow-step-kicker {
  font-size: 0.58rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--orange); margin-bottom: 1px;
}
.av-page-tools .flow-step-title {
  font-size: 1.1rem; font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--blue); margin: 0; line-height: 1;
}
.av-page-tools .flow-step-num {
  position: absolute; top: 4px; right: 12px;
  font-size: 2.6rem; font-weight: 800;
  color: var(--blue); opacity: 0.07; line-height: 1;
  letter-spacing: -0.05em;
}
.av-page-tools .flow-step-body {
  font-size: 0.75rem; color: var(--gray);
  line-height: 1.55; font-weight: 300; margin: 0;
}
.av-page-tools #flow-arrows {
  position: absolute; top: 0; left: 0;
  width: 100%; pointer-events: none; overflow: visible;
}

/* ── Step sections ──────────────────────────────────────────── */
.av-page-tools .step-section {
  padding: 72px 56px;
  border-top: 1px solid rgba(16,20,31,0.07);
}
.av-page-tools .step-section:nth-child(odd)  { background: #fff; }
.av-page-tools .step-section:nth-child(even) { background: #f4f6f8; }
.av-page-tools .step-inner {
  max-width: 1100px;
  margin: 0 auto;
}

/* Step header — two columns */
.av-page-tools .step-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
  margin-bottom: 44px;
}
.av-page-tools .step-num-label {
  font-size: 0.64rem; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--orange); margin-bottom: 10px;
  display: flex; align-items: center; gap: 10px;
}
.av-page-tools .step-num-label::after {
  content: ''; flex: 1; height: 1px;
  background: rgba(240,120,48,0.25);
}
.av-page-tools .step-title {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.06;
  color: var(--dark); margin: 0 0 16px;
}
.av-page-tools .step-title span { color: var(--blue); }
.av-page-tools .step-desc {
  font-size: 0.92rem; font-weight: 300;
  line-height: 1.75; color: var(--gray);
  margin: 0;
}
.av-page-tools .step-success {
  background: rgba(240,120,48,0.06);
  border: 1px solid rgba(240,120,48,0.18);
  border-radius: 14px;
  padding: 24px 26px;
}
.av-page-tools .success-label {
  font-size: 0.62rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--orange); margin-bottom: 14px;
  display: flex; align-items: center; gap: 7px;
}
.av-page-tools .success-label svg { width: 14px; height: 14px; flex-shrink: 0; }
.av-page-tools .success-item {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 0.8rem; font-weight: 400; line-height: 1.55;
  color: var(--dark); margin-bottom: 10px;
}
.av-page-tools .success-item:last-child { margin-bottom: 0; }
.av-page-tools .success-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--orange); flex-shrink: 0; margin-top: 5px;
}

/* ── Questions block ────────────────────────────────────────── */
.av-page-tools .step-questions {
  margin-bottom: 36px;
}
.av-page-tools .sq-label {
  font-size: 0.62rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gray); margin-bottom: 14px;
}
.av-page-tools .sq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 10px;
}
.av-page-tools .q-group { }
.av-page-tools .q-group-btn {
  width: 100%; text-align: left;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 18px;
  background: #fff;
  border: 1px solid rgba(16,20,31,0.08);
  border-radius: 10px;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.82rem; font-weight: 600;
  color: var(--dark);
  transition: all 0.2s;
}
.av-page-tools .step-section:nth-child(even) .q-group-btn { background: #fff; }
.av-page-tools .q-group-btn:hover {
  border-color: rgba(37,132,197,0.3);
  color: var(--blue);
}
.av-page-tools .q-group-btn.open {
  border-color: rgba(37,132,197,0.25);
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  color: var(--blue);
}
.av-page-tools .q-chevron {
  width: 14px; height: 14px; flex-shrink: 0;
  fill: none; stroke: currentColor;
  stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round;
  transition: transform 0.2s;
}
.av-page-tools .q-group-btn.open .q-chevron { transform: rotate(180deg); }
.av-page-tools .q-list {
  display: none;
  background: #fff;
  border: 1px solid rgba(37,132,197,0.2);
  border-top: none;
  border-radius: 0 0 10px 10px;
  padding: 4px 0 8px;
}
.av-page-tools .q-item {
  font-size: 0.78rem; font-weight: 300; line-height: 1.6;
  color: var(--gray); padding: 7px 18px 7px 32px;
  position: relative;
}
.av-page-tools .q-item::before {
  content: '–';
  position: absolute; left: 18px;
  color: rgba(37,132,197,0.4);
}

/* ── Step CTA bar ───────────────────────────────────────────── */
.av-page-tools .step-cta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 28px;
  border-radius: 12px;
  background: rgba(37,132,197,0.06);
  border: 1px solid rgba(37,132,197,0.16);
}
.av-page-tools .step-cta-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.av-page-tools .step-cta-text strong {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--dark);
}
.av-page-tools .step-cta-text span {
  font-size: 0.75rem;
  font-weight: 300;
  color: var(--gray);
}
.av-page-tools .step-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  padding: 11px 22px;
  border-radius: 8px;
  background: var(--blue);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.2s;
  box-shadow: 0 4px 16px rgba(37,132,197,0.22);
}
.av-page-tools .step-cta-btn:hover {
  background: #1e76b5;
  box-shadow: 0 6px 22px rgba(37,132,197,0.36);
  transform: translateY(-1px);
}
.av-page-tools .step-cta-btn svg {
  width: 14px; height: 14px; flex-shrink: 0;
  fill: none; stroke: #fff; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
  transition: transform 0.2s;
}
.av-page-tools .step-cta-btn:hover svg { transform: translateX(3px); }

/* ── CTA / Opt-in ───────────────────────────────────────────── */
.av-page-tools .tools-optin {
  background: var(--blue);
  padding: 72px 56px;
  text-align: center;
  position: relative; overflow: hidden;
}
.av-page-tools .tools-optin::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 80% at 50% 50%, rgba(255,255,255,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.av-page-tools .tools-optin h2 {
  font-size: clamp(1.6rem, 2.8vw, 2.1rem);
  font-weight: 800; letter-spacing: -0.04em;
  color: #fff; margin: 0 0 12px; position: relative;
}
.av-page-tools .tools-optin p {
  font-size: 0.9rem; font-weight: 300; line-height: 1.7;
  color: rgba(255,255,255,0.75); margin: 0 auto 32px;
  max-width: 460px; position: relative;
}
.av-page-tools .optin-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 30px;
  border-radius: 10px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
  font-size: 0.88rem; font-weight: 600;
  text-decoration: none;
  position: relative;
  transition: all 0.2s;
}
.av-page-tools .optin-btn:hover {
  background: rgba(255,255,255,0.24);
  border-color: rgba(255,255,255,0.5);
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1060px) {
  .av-page-tools .method-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .av-page-tools .method-col-text {
    align-items: center;
    text-align: center;
  }
  .av-page-tools .method-cta { align-items: center; }
  .av-page-tools .method-breadcrumb { justify-content: center; }
  .av-page-tools .flow-step {
    width: 280px;
  }
  .av-page-tools .flow-row-top .flow-step,
  .av-page-tools .flow-row-bot .flow-step,
  .av-page-tools .flow-row-mid .flow-step { width: 280px; }
}

@media (max-width: 900px) {
  .av-page-tools .method-section,
  .av-page-tools .step-section,
  .av-page-tools .tools-optin       { padding-left: 24px; padding-right: 24px; }

  .av-page-tools .step-header       { grid-template-columns: 1fr; gap: 28px; }

  .av-page-tools .flow-row-mid {
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-bottom: 64px;
    border: 1.5px solid rgba(240,120,48,0.35);
    border-radius: 18px;
    padding: 16px 16px 20px;
    background: rgba(240,120,48,0.04);
  }
  .av-page-tools .flow-row-top .flow-step,
  .av-page-tools .flow-row-bot .flow-step,
  .av-page-tools .flow-row-mid .flow-step { width: 100%; max-width: 360px; }
  /* arrows stay visible — JS draws stacked version */

  .av-page-tools .sq-grid           { grid-template-columns: 1fr; }

  .av-page-tools .step-cta-bar      { flex-direction: column; align-items: flex-start; gap: 16px; }
  .av-page-tools .step-cta-btn      { width: 100%; justify-content: center; }
}
