/* public/stylesheets/information/info-pages.css
 *
 * The three public "Platform" pages in the footer: How to Use, Help Center,
 * Contact Us.
 *
 * One stylesheet for all three because they are one set — a visitor moving
 * between them should not feel like they changed sites. Violet, on the light
 * Bootstrap surface the rest of the app uses; the automotive hub is the page
 * that gets its own dark identity, and these are not it.
 *
 * Prefixed `ip-` so nothing here leaks into the Bootstrap pages that share
 * this layout. It supersedes the per-page information.css / contacts.css,
 * which styled the old screenshot walkthrough and the founder cards.
 */

.ip {
  --ip-brand: #7c3aed;
  --ip-brand2: #a78bfa;
  --ip-brand-soft: #f5f3ff;
  --ip-brand-line: #e9e5f6;

  --ip-ink: #14122b;
  --ip-ink2: #4b4a63;
  --ip-muted: #8a86a3;

  --ip-card: #fff;
  --ip-line: #e6e4ef;
  --ip-radius: 14px;
  --ip-shadow: 0 1px 2px rgba(20, 18, 43, .04), 0 12px 28px -18px rgba(20, 18, 43, .20);

  color: var(--ip-ink);
  max-width: 940px;
  margin: 0 auto;
  padding-bottom: 60px;
}

.ip a { color: var(--ip-brand); }

/* ── page head ───────────────────────────────────────────────────────────── */

.ip-head { padding: 34px 0 30px; border-bottom: 1px solid var(--ip-line); margin-bottom: 34px; }
.ip-eyebrow {
  font-size: 11.5px; font-weight: 800; letter-spacing: .11em; text-transform: uppercase;
  color: var(--ip-brand); margin-bottom: 11px;
}
.ip-title {
  font-size: clamp(28px, 4vw, 40px); font-weight: 800; letter-spacing: -.028em;
  line-height: 1.1; margin: 0;
}
.ip-lede {
  margin: 15px 0 0; font-size: 17px; line-height: 1.62; color: var(--ip-ink2); max-width: 62ch;
}

/* ── sections ────────────────────────────────────────────────────────────── */

.ip-sec { margin-bottom: 42px; }
.ip-sec h2 {
  font-size: 21px; font-weight: 800; letter-spacing: -.018em; margin: 0 0 6px;
}
.ip-sec-note { font-size: 14.5px; color: var(--ip-muted); margin: 0 0 20px; line-height: 1.55; }

/* ── numbered steps ──────────────────────────────────────────────────────── */

.ip-steps { list-style: none; margin: 0; padding: 0; counter-reset: ip-step; }
.ip-step {
  position: relative; padding: 0 0 26px 52px; counter-increment: ip-step;
}
.ip-step::before {
  content: counter(ip-step);
  position: absolute; left: 0; top: 0;
  width: 32px; height: 32px; border-radius: 9px;
  background: linear-gradient(135deg, var(--ip-brand2), var(--ip-brand));
  color: #fff; font-weight: 800; font-size: 14px;
  display: grid; place-items: center;
}
/* The rail joining the markers. Stops before the last one so the list does not
   trail off into a line pointing at nothing. */
.ip-step:not(:last-child)::after {
  content: ""; position: absolute; left: 15.5px; top: 38px; bottom: 6px;
  width: 1px; background: var(--ip-brand-line);
}
.ip-step h3 { font-size: 16.5px; font-weight: 700; margin: 5px 0 6px; letter-spacing: -.01em; }
.ip-step p { margin: 0; font-size: 15px; line-height: 1.62; color: var(--ip-ink2); }
.ip-step p + p { margin-top: 9px; }

/* ── cards ───────────────────────────────────────────────────────────────── */

.ip-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.ip-card {
  background: var(--ip-card); border: 1px solid var(--ip-line);
  border-radius: var(--ip-radius); padding: 22px 22px;
}
.ip-card h3 { font-size: 16px; font-weight: 700; margin: 0 0 7px; letter-spacing: -.01em; }
.ip-card p { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--ip-ink2); }
.ip-card-icon {
  width: 34px; height: 34px; border-radius: 9px; margin-bottom: 13px;
  background: var(--ip-brand-soft); color: var(--ip-brand);
  display: grid; place-items: center; font-size: 17px;
}

/* The two contact cards carry more weight than the feature grid. */
.ip-contact { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.ip-contact-card {
  background: var(--ip-card); border: 1px solid var(--ip-line);
  border-radius: var(--ip-radius); padding: 28px 26px; box-shadow: var(--ip-shadow);
  display: flex; flex-direction: column;
}
.ip-contact-card.is-lead {
  border-color: rgba(124, 58, 237, .30);
  background: linear-gradient(170deg, var(--ip-brand-soft), var(--ip-card) 58%);
}
.ip-contact-card h2 { font-size: 20px; font-weight: 800; margin: 0 0 5px; letter-spacing: -.02em; }
.ip-contact-kind {
  font-size: 11.5px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase;
  color: var(--ip-brand); margin-bottom: 13px;
}
.ip-contact-card > p { font-size: 14.5px; line-height: 1.6; color: var(--ip-ink2); margin: 0 0 18px; }

.ip-rows { list-style: none; margin: 0 0 18px; padding: 0; }
.ip-rows li {
  display: flex; gap: 11px; align-items: flex-start;
  padding: 9px 0; border-bottom: 1px solid var(--ip-line); font-size: 14.5px;
}
.ip-rows li:last-child { border-bottom: 0; }
.ip-rows i { color: var(--ip-brand); font-size: 15px; line-height: 1.5; flex: none; width: 17px; }
.ip-rows .ip-row-lab { color: var(--ip-muted); }

.ip-cta { margin-top: auto; display: flex; flex-wrap: wrap; gap: 10px; }
.ip-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 19px; border-radius: 10px; font-size: 14.5px; font-weight: 700;
  border: 1px solid transparent; text-decoration: none; transition: filter .14s ease, background .14s ease;
}
/* The `.ip ` prefix on the colour rules is load-bearing. Every button here is
   an <a>, and `.ip a { color: var(--ip-brand) }` scores 0-1-1 — which beats a
   bare `.ip-btn-primary` at 0-1-0. Without it the primary CTA renders violet
   text on a violet gradient and effectively disappears. */
.ip .ip-btn-primary { background: linear-gradient(135deg, var(--ip-brand2), var(--ip-brand)); color: #fff; }
.ip .ip-btn-primary:hover { filter: brightness(1.07); color: #fff; text-decoration: none; }
.ip .ip-btn-ghost { background: #fff; border-color: var(--ip-line); color: var(--ip-ink); }
.ip .ip-btn-ghost:hover { background: var(--ip-brand-soft); color: var(--ip-ink); text-decoration: none; }

/* ── hours table ─────────────────────────────────────────────────────────── */

.ip-hours { list-style: none; margin: 0; padding: 0; }
.ip-hours li {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 7px 0; border-bottom: 1px solid var(--ip-line); font-size: 14px; color: var(--ip-ink2);
}
.ip-hours li:last-child { border-bottom: 0; }
.ip-hours .is-closed { color: var(--ip-muted); }

/* ── FAQ accordion ───────────────────────────────────────────────────────── */

.ip-faq { display: grid; gap: 10px; }
.ip-faq details {
  background: var(--ip-card); border: 1px solid var(--ip-line);
  border-radius: 12px; padding: 0 20px;
}
.ip-faq details[open] { border-color: rgba(124, 58, 237, .34); background: linear-gradient(180deg, var(--ip-brand-soft), #fff 42%); }
.ip-faq summary {
  cursor: pointer; list-style: none; padding: 16px 0;
  font-weight: 700; font-size: 15.5px; display: flex; align-items: flex-start; gap: 13px;
}
.ip-faq summary::-webkit-details-marker { display: none; }
.ip-faq summary::after {
  content: "+"; margin-left: auto; color: var(--ip-brand);
  font-size: 20px; font-weight: 400; line-height: 1; flex: none; transition: transform .18s ease;
}
.ip-faq details[open] summary::after { transform: rotate(45deg); }
.ip-faq-a { padding: 0 0 18px; font-size: 14.5px; line-height: 1.65; color: var(--ip-ink2); max-width: 74ch; }
.ip-faq-a p + p { margin-top: 10px; }
.ip-faq-a ul { margin: 10px 0 0; padding-left: 20px; }
.ip-faq-a li { margin-bottom: 5px; }

/* ── callout ─────────────────────────────────────────────────────────────── */

.ip-note {
  background: var(--ip-brand-soft); border: 1px solid var(--ip-brand-line);
  border-radius: 12px; padding: 17px 20px; font-size: 14.5px; line-height: 1.6; color: var(--ip-ink2);
}
.ip-note strong { color: var(--ip-ink); }

@media (max-width: 575px) {
  .ip-head { padding: 22px 0 22px; margin-bottom: 26px; }
  .ip-step { padding-left: 44px; }
  .ip-contact-card { padding: 22px 19px; }
}
