/* RideToGo inner pages: built on the tokens and components of rtg-home.css. */
[hidden] { display: none !important; }

/* Page hero */
.phero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 56px; align-items: center; padding-block: 48px 64px; }
.phero h1 { font-size: clamp(36px, 5.2vw, 58px); line-height: 1.04; font-weight: 800; margin-bottom: 18px; }
.phero .lead { font-size: 18px; color: var(--muted); max-width: 50ch; margin: 0 0 28px; }
.phero .row, .split .row, .cta-band .row { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.phero-art { border-radius: 16px; overflow: hidden; aspect-ratio: 4 / 3.2; max-width: 100%; background: var(--mist); }
.phero-art img { width: 100%; height: 100%; object-fit: cover; }
.eyebrow { font: 600 13px var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--brand); margin: 0 0 12px; }
@media (max-width: 900px) { .phero .wrap { grid-template-columns: minmax(0, 1fr); gap: 28px; padding-block: 28px 44px; } .phero-art { order: -1; aspect-ratio: 16 / 10; } }

/* Simple title band for text pages */
.ptitle { background: var(--mist); }
.ptitle .wrap { padding-block: 48px 40px; }
.ptitle h1 { font-size: clamp(32px, 4.6vw, 48px); font-weight: 800; margin-bottom: 10px; }
.ptitle p { margin: 0; color: var(--muted); font-size: 18px; max-width: 60ch; }

.sec-lead { margin: 8px 0 0; color: var(--muted); max-width: 62ch; }
.sec-head > div { min-width: 0; }

/* Feature cards */
.feats { display: grid; gap: 16px; }
.feats.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.feats.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.feats.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.feat { background: var(--mist); border-radius: var(--r); padding: 22px; }
.feat h3 { font-size: 18px; margin-bottom: 6px; }
.feat p { margin: 0; color: var(--muted); font-size: 15px; }
@media (max-width: 1000px) { .feats.cols-3, .feats.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .feats.cols-2, .feats.cols-3, .feats.cols-4 { grid-template-columns: minmax(0, 1fr); } }

/* Numbered steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; counter-reset: st; }
.steps li { counter-increment: st; border: 1px solid var(--line); border-radius: var(--r); padding: 22px; position: relative; }
.steps li::before { content: counter(st); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--brand); color: var(--paper); font: 700 15px var(--font-display); margin-bottom: 14px; }
.steps h3 { font-size: 18px; margin-bottom: 6px; }
.steps p { margin: 0; color: var(--muted); font-size: 15px; }

/* Photo cards (services) */
.pcards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.pcard { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; text-decoration: none; background: var(--paper); transition: box-shadow .15s; }
.pcard:hover { box-shadow: 0 10px 28px rgba(52,68,97,.14); }
.pcard .pic { aspect-ratio: 16 / 10; max-width: 100%; overflow: hidden; background: var(--mist); }
.pcard .pic img { width: 100%; height: 100%; object-fit: cover; }
.pcard .body { padding: 18px 20px 22px; }
.pcard h3 { font-size: 20px; margin-bottom: 6px; }
.pcard p { margin: 0 0 12px; color: var(--muted); font-size: 15px; }
.pcard .more { font-weight: 600; color: var(--brand); }
@media (max-width: 900px) { .pcards { grid-template-columns: minmax(0, 1fr); } }

/* Navy call-to-action band */
.cta-band .wrap { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { font-size: clamp(26px, 3.6vw, 36px); font-weight: 800; margin-bottom: 8px; }
.cta-band p { margin: 0; max-width: 56ch; }
.cta-band .link-u { color: var(--paper); }

/* Tick list */
.ticks { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; }
.ticks li::before { content: ""; flex: none; width: 20px; height: 20px; margin-top: 2px; border-radius: 50%; background: var(--ice) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%23344461' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat; }
.band .ticks li::before { background-color: rgba(255,255,255,.14); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%23EBF7FD' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }

/* Audience tabs (how it works) */
.who-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 22px; }
.who-tabs button { border: 1px solid var(--line); background: var(--paper); padding: 10px 18px; border-radius: 999px; font: 600 15px var(--font-body); color: var(--ink); cursor: pointer; }
.who-tabs button[aria-selected="true"] { background: var(--brand); border-color: var(--brand); color: var(--paper); }

/* FAQ */
.faq-tools { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-bottom: 22px; }
.faq-search { flex: 1 1 280px; display: flex; align-items: center; gap: 10px; background: var(--mist); border: 2px solid transparent; border-radius: 10px; padding: 0 14px; min-height: 52px; }
.faq-search:focus-within { border-color: var(--brand); background: var(--paper); }
.faq-search input { flex: 1; min-width: 0; border: 0; background: transparent; font: 500 16px var(--font-body); color: var(--ink); outline: none; height: 48px; }
.faq-cats { display: flex; gap: 6px; flex-wrap: wrap; }
.faq-cats button { border: 1px solid var(--line); background: var(--paper); padding: 8px 14px; border-radius: 999px; font: 600 14px var(--font-body); color: var(--ink); cursor: pointer; }
.faq-cats button[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: var(--paper); }
.faq-group { margin-bottom: 28px; }
.faq-group h2 { font-size: 22px; margin-bottom: 10px; }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 18px 4px; font: 600 17px var(--font-body); }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; font: 400 26px/1 var(--font-body); color: var(--brand); flex: none; }
.faq-list details[open] summary::after { content: "–"; }
.faq-list .ans { padding: 0 4px 20px; color: var(--muted); max-width: 75ch; }
.faq-list .ans p { margin: 0 0 10px; }
.faq-empty { color: var(--muted); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 40px; align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: minmax(0, 1fr); } }
.form { display: grid; gap: 14px; }
.form .two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 600px) { .form .two { grid-template-columns: minmax(0, 1fr); } }
.form label { display: grid; gap: 6px; font: 600 14px var(--font-body); }
.form input, .form select, .form textarea { font: 500 16px var(--font-body); color: var(--ink); background: var(--mist); border: 2px solid transparent; border-radius: 10px; padding: 12px 14px; min-height: 50px; width: 100%; box-sizing: border-box; }
.form textarea { min-height: 140px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--brand); background: var(--paper); }
.form .hint { font: 400 13px var(--font-body); color: var(--muted); }
.notice { border-radius: 10px; padding: 12px 16px; font-weight: 600; }
.notice.ok { background: #E6F6EC; color: #17633A; }
.notice.err { background: #FDECEC; color: #9B1C1C; }
.ccards { display: grid; gap: 12px; }
.ccard { background: var(--mist); border-radius: var(--r); padding: 18px 20px; }
.ccard h3 { font-size: 15px; font-weight: 600; color: var(--muted); font-family: var(--font-body); margin-bottom: 4px; letter-spacing: 0; }
.ccard p, .ccard a { margin: 0; font: 700 18px var(--font-display); color: var(--ink); text-decoration: none; }
.ccard a:hover { text-decoration: underline; }

/* Long text (legal, about) */
.prose { max-width: 72ch; }
.prose h2 { font-size: 26px; margin: 32px 0 10px; }
.prose p, .prose li { color: #2E394B; }

/* Stats row (facts that are true for the service) */
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.fact { border-left: 3px solid var(--brand); padding: 4px 0 4px 16px; }
.fact b { display: block; font: 800 24px var(--font-display); }
.fact span { color: var(--muted); font-size: 15px; }
@media (max-width: 700px) { .facts { grid-template-columns: minmax(0, 1fr); } }

.split .ticks { margin-top: -6px; }
.split .media.wide { aspect-ratio: 4 / 3; }

/* Linked feature cards */
a.feat.lk { text-decoration: none; display: block; transition: background .15s; }
a.feat.lk:hover { background: var(--line); }
.feat .more { display: inline-block; margin-top: 10px; font-weight: 600; color: var(--brand); }

/* Legal pages */
.legal-grid { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 48px; align-items: start; }
.legal-nav { position: sticky; top: 84px; display: grid; gap: 4px; }
.legal-nav a { text-decoration: none; padding: 10px 14px; border-radius: 10px; font-weight: 600; color: var(--ink); }
.legal-nav a:hover { background: var(--mist); }
.legal-nav a[aria-current="page"] { background: var(--brand); color: var(--paper); }
.prose.legal { max-width: 75ch; overflow-wrap: anywhere; }
.prose h1, .prose h2, .prose h3, .prose h4 { font-family: var(--font-display); letter-spacing: -0.01em; }
.prose h1 { font-size: 28px; margin: 28px 0 10px; }
.prose h3 { font-size: 20px; margin: 24px 0 8px; }
.prose h4 { font-size: 17px; margin: 20px 0 6px; }
.prose a { color: var(--brand); }
.prose table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; }
.prose td, .prose th { border: 1px solid var(--line); padding: 8px; }
.prose img { max-width: 100%; height: auto; }
@media (max-width: 900px) { .legal-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; } .legal-nav { position: static; display: flex; flex-wrap: wrap; } }
