/* ============================================================================
   RideNest shared theme (rn-theme.css) — heritage edition, 2026-07-08
   Keeps the ORIGINAL sub-page design language (Neco serif display, chunky
   navy borders, hard offset shadows, slim sticky nav) and applies the
   homepage palette: navy/teal/orange with the light-blue sky wash.
   Pages link ONLY this sheet; their bespoke inline component styles remain.
   ============================================================================ */

:root {
  --navy: #071943;
  --muted: #4a637a;
  --teal: var(--sky-deep);
  --orange: #F27255;
  --orange-hover: #D95241;
  --orange-deep: #C8443A;
  --orange-text: var(--orange-deep);
  --orange-hover-ink: #001124;
  --sky: #4ebdf7;
  --sky-hover: #45a8dc;
  --sky-deep: #4EBDF7;
  --sky-soft: #bfe9fe;
  --cream: #fff9ee;
  --card: #fffdfa;
  --line: rgba(7, 25, 67, .08);
  --font: "Pally", "Segoe UI", Arial, sans-serif;
  --serif: "Neco", Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; background: var(--cream); }

body {
  font-family: var(--font);
  color: var(--navy);
  line-height: 1.6;
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; }
a { color: var(--orange-text); text-decoration: none; }

h1, h2, h3, .disp {
  font-family: var(--font);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.0;
  color: var(--navy);
}
.n, .num { font-family: var(--font); font-weight: 900; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 28px; }

/* ---------------------------------------------------------------- Nav
   EXACT homepage pill nav, adapted to sticky flow for sub-pages. */
.rnx-navwrap {
  position: sticky;
  top: 0;
  z-index: 60;
  padding: 16px 2.1% 0;
  /* overlap the hero so the pill floats on the sky, exactly like the homepage */
  margin-bottom: calc(-16px - clamp(72px, 6.4vw, 106px));
}
.rnx-nav {
  width: 100%;
  min-height: 76px;
  height: clamp(72px, 6.4vw, 106px);
  display: grid;
  grid-template-columns: 26.5% 1fr auto;
  align-items: center;
  gap: 1.35%;
  padding: 0 1.55% 0 1.8%;
  background: rgba(255, 255, 255, .97);
  border-radius: 34px;
  box-shadow: 0 16px 42px rgba(6, 28, 57, .1);
}
.rnx-brand {
  display: flex;
  align-items: center;
  gap: clamp(8px, .72vw, 14px);
  text-decoration: none;
}
.rnx-brand img { width: auto; height: clamp(42px, 3.4vw, 58px); object-fit: contain; }
.rnx-brand span {
  color: var(--navy);
  font-size: clamp(35px, 3.25vw, 56px);
  font-weight: 900;
  line-height: .92;
  text-shadow: 0 2px 0 #fff;
}
.rnx-brand b { color: var(--orange); font-weight: 900; }
.rnx-nav-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(12px, 1.5vw, 26px);
}
.rnx-nav-links a {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 46px;
  color: var(--navy);
  font-weight: 800;
  font-size: clamp(16px, 1.15vw, 18px); /* match homepage .rn-nav a (Nico nav-consistency 2026-07-23) */
  white-space: nowrap;
}
.rnx-nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 3px;
  height: 3px;
  border-radius: 999px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .28s ease;
}
.rnx-nav-links a:hover::after,
.rnx-nav-links a:focus-visible::after { transform: scaleX(1); }
.rnx-nav-links a.is-active,
.rnx-nav-links a[aria-current="page"] { color: var(--orange-text); }
.rnx-nav-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(16px, 1.75vw, 32px);
}
.rnx-location {
  display: grid;
  place-items: center;
  width: clamp(34px, 2.35vw, 44px);
  height: clamp(34px, 2.35vw, 44px);
}
.rnx-location svg {
  width: 72%;
  height: 72%;
  fill: none;
  stroke: var(--navy);
  stroke-width: 2.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.rnx-location svg circle { fill: var(--navy); stroke: none; }
.rnx-nav-actions > i {
  width: 1px;
  height: 54px;
  background: rgba(7, 25, 67, .25);
}
.rnx-nav-cta {
  width: clamp(224px, 17.55vw, 325px);
  height: clamp(58px, 5.55vw, 84px);
  font-size: clamp(14px, 0.95vw, 17px);
}

/* Gooey blob CTA (ported from homepage rn-s2c-clean.css) */
.rn-goo { position: absolute; width: 0; height: 0; pointer-events: none; }
.rn-blob {
  position: relative;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .52em;
  overflow: hidden;
  border: 0;
  border-radius: 999px;
  color: var(--navy);
  background: var(--orange);
  text-decoration: none;
  font-weight: 800;
  line-height: 1;
  isolation: isolate;
  box-shadow: 0 10px 22px rgba(242, 114, 85, .22);
  transition: color .35s ease, transform .2s ease;
}
.rn-blob::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 2px solid var(--orange-deep);
  border-radius: inherit;
  z-index: 3;
  pointer-events: none;
}
.rn-blob span, .rn-blob b { position: relative; z-index: 4; }
.rn-blob b { font-size: 1.32em; line-height: 0; }
.rn-blob .rn-goo-box {
  position: absolute;
  inset: 0;
  z-index: 1;
  filter: url("#rn-goo-filter");
  pointer-events: none;
}
.rn-blob em {
  position: absolute;
  bottom: -78%;
  width: 31%;
  height: 105%;
  border-radius: 999px;
  background: #fff;
  transform: translateY(120%) scale(1.35);
  transition: transform .46s ease;
  z-index: 1;
}
.rn-blob em:nth-of-type(1) { left: -5%; transition-delay: 0s; }
.rn-blob em:nth-of-type(2) { left: 25%; transition-delay: .07s; }
.rn-blob em:nth-of-type(3) { left: 55%; transition-delay: .14s; }
.rn-blob em:nth-of-type(4) { left: 85%; transition-delay: .21s; }
.rn-blob:hover, .rn-blob:focus-visible { color: var(--orange-text); transform: translateY(-1px); }
.rn-blob:hover em, .rn-blob:focus-visible em { transform: translateY(-24%) scale(2.1); }
.rn-blob:focus-visible { outline: 4px solid rgba(242, 114, 85, .24); outline-offset: 4px; }


/* ---------------------------------------------------------------- Buttons
   Original hard-shadow pill, new palette. */
.btn, .rnx-btn {
  display: inline-block;
  background: var(--orange);
  color: var(--navy);
  font-family: var(--font);
  font-weight: 800;
  padding: 13px 24px;
  border-radius: 40px;
  font-size: 15px;
  border: 2px solid var(--navy);
  box-shadow: 2px 2px 0 var(--navy);
  cursor: pointer;
  line-height: 1.6;
  transition: transform .12s ease, box-shadow .12s ease;
}
.btn:hover, .rnx-btn:hover {
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0 var(--navy);
}
.btn:not(.ghost):not(.white):hover,
.rnx-btn:hover {
  color: var(--orange-hover-ink);
  background: var(--orange-hover);
}
.btn b, .rnx-btn b { font-weight: 800; }
.btn.ghost { background: var(--cream); color: var(--navy); }
.btn.white { background: #fff; color: var(--navy); }
.btn.lg { padding: 16px 32px; font-size: 17px; }

:focus-visible { outline: 4px solid rgba(242, 114, 85, .28); outline-offset: 3px; }

/* ---------------------------------------------------------------- Hero
   Original centered hero with the light-blue sky radial, tuned to homepage sky. */
.hero {
  padding: clamp(150px, 13vw, 205px) 0 54px;
  text-align: center;
  background: linear-gradient(180deg, rgba(78, 189, 247, .48) 0%, rgba(78, 189, 247, .16) 55%, rgba(78, 189, 247, 0) 100%);
}
.eyebrow, .hero .eyebrow, .sec-eye {
  color: var(--teal);
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-size: 13px;
  margin-bottom: 16px;
}
.sec-eye { text-align: center; }
h1 { font-size: clamp(42px, 7vw, 82px); }
.hero h1 { max-width: 980px; margin: 0 auto; }
.hero p { font-size: 20px; color: var(--muted); margin: 22px auto 0; max-width: 760px; }
.hero .btn { margin-top: 30px; }
.quote {
  max-width: 720px;
  margin: 8px auto 0;
  font-family: var(--font);
  font-size: 21px;
  color: var(--navy);
  font-weight: 700;
  line-height: 1.4;
}
.quote span {
  display: block;
  font-family: var(--font);
  font-style: normal;
  font-size: 14px;
  color: var(--teal);
  font-weight: 800;
  margin-top: 12px;
}

/* ---------------------------------------------------------------- Sections */
.sec { padding: 58px 0; }
.sec.alt {
  background: rgba(255, 253, 250, .6);
  border-top: 2px solid rgba(7, 25, 67, .07);
  border-bottom: 2px solid rgba(7, 25, 67, .07);
}
.sec-head { font-size: clamp(30px, 4.6vw, 46px); text-align: center; margin-bottom: 8px; }
.sec-sub { text-align: center; color: var(--muted); margin: 0 auto 38px; font-size: 18px; max-width: 620px; }

/* ---------------------------------------------------------------- Cards
   Original bordered cards with hard offset shadows, new palette. */
.grid { display: grid; gap: 20px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card {
  background: var(--card);
  border: 2px solid var(--navy);
  border-radius: 24px;
  padding: 28px 30px;
  box-shadow: 4px 4px 0 var(--navy);
}
.card h2, .card h3 { font-size: clamp(28px, 4vw, 40px); }
.card p { margin-top: 12px; color: var(--muted); font-size: 17px; }

/* Pricing / plans */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.plan {
  background: var(--card);
  border: 2.5px solid var(--navy);
  border-radius: 24px;
  padding: 34px 30px;
  box-shadow: 5px 5px 0 var(--navy);
  display: flex;
  flex-direction: column;
}
.plan.feat { box-shadow: 7px 7px 0 var(--orange); }
.plan .tag {
  align-self: flex-start;
  background: var(--orange);
  color: var(--navy);
  font-size: 12px;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 30px;
  margin-bottom: 14px;
}
.plan h3 { font-size: 26px; }
.plan .for { color: var(--teal); font-weight: 700; margin: 10px 0 16px; font-size: 15px; }
.plan ul { list-style: none; margin: 0 0 22px; padding: 0; flex: 1; }
.plan li { margin: 9px 0; padding-left: 24px; position: relative; color: var(--muted); font-size: 15px; }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--teal); font-weight: 900; }

/* Layered list rows */
.layer {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 26px;
  align-items: start;
  background: var(--card);
  border: 2.5px solid var(--navy);
  border-radius: 22px;
  padding: 30px 32px;
  box-shadow: 5px 5px 0 var(--navy);
  margin-bottom: 22px;
}
.layer .n { font-size: 40px; color: var(--orange-text); line-height: 1; }
.layer h3 { font-size: 24px; margin-bottom: 12px; }
.layer ul { margin: 0; padding: 0; list-style: none; columns: 2; column-gap: 30px; }
.layer li { margin: 7px 0; padding-left: 22px; position: relative; color: var(--muted); font-size: 15px; }
.layer li::before { content: ""; position: absolute; left: 0; top: 8px; width: 9px; height: 9px; border-radius: 50%; background: var(--teal); }

/* Quote cards */
.qcards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.qc {
  background: var(--card);
  border: 2px solid var(--navy);
  border-radius: 18px;
  padding: 26px;
  box-shadow: 4px 4px 0 var(--navy);
}
.qc p { font-size: 16px; color: var(--navy); line-height: 1.5; }
.qc .who { color: var(--teal); font-weight: 800; margin-top: 14px; font-size: 14px; }

/* CTA / statement panels — navy with light-blue copy */
.cta {
  background: var(--navy);
  border-radius: 30px;
  padding: 60px 40px;
  text-align: center;
  margin: 30px 0 80px;
  color: #fff;
}
.cta h2, .cta h3 { color: #fff; font-size: clamp(30px, 4.5vw, 44px); }
.cta p { color: var(--sky-soft); margin: 14px auto 28px; max-width: 560px; font-size: 18px; }
.statement {
  background: var(--navy);
  color: #fff;
  border-radius: 28px;
  padding: 36px;
  margin-top: 24px;
}
.statement h2, .statement h3 { color: #fff; font-size: 36px; }
.statement p { color: var(--sky-soft); margin-top: 12px; font-size: 18px; }

/* ---------------------------------------------------------------- Footer */
.ft, .rnx-ft {
  border-top: 1px solid rgba(7, 25, 67, .1);
  padding: 40px 0;
  font-size: 14px;
  color: var(--muted);
}
.ft .wrap, .rnx-ft .wrap { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; align-items: flex-start; }
.ft a, .rnx-ft a { color: var(--navy); margin-left: 18px; font-weight: 800; }
.ft a:hover, .rnx-ft a:hover { color: var(--orange-text); }
.ft .legal, .rnx-ft .legal { max-width: 560px; line-height: 1.5; font-size: 12px; color: #6a7d86; }

/* ---------------------------------------------------------------- De-AI utilities
   Layout variation + hand-placed illustrated elements. */
.hero--left { text-align: left; }
.hero--left h1 { margin: 0; max-width: 17ch; }
.hero--left p { margin-left: 0; margin-right: 0; max-width: 58ch; }
.hero--left .eyebrow { text-align: left; }
.hero .wrap, .sec .wrap { position: relative; }

/* hand-placed illustrated element (mascot, doodle) */
.rn-el {
  position: absolute;
  pointer-events: none;
  user-select: none;
  z-index: 1;
}

/* pinned-note tilts for breaking grid symmetry */
.tilt-a { transform: rotate(-1.2deg); }
.tilt-b { transform: rotate(.9deg); }
.tilt-c { transform: rotate(-.6deg); }

/* hand-drawn orange squiggle under one key word in a headline.
   No padding and positioned inside the em-box descender zone, so it can
   NEVER paint into the next line on tight-line-height headlines. */
.uword {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 12' preserveAspectRatio='none'%3E%3Cpath d='M3 8 C 20 3, 38 10, 58 6 S 98 4, 117 7' fill='none' stroke='%23E17A5D' stroke-width='4' stroke-linecap='round'/%3E%3C/svg%3E") 0 91% / 100% .12em no-repeat;
}

/* wide card in a 2-col grid */
.card--wide { grid-column: 1 / -1; }

@media (max-width: 720px) {
  .rn-el { display: none; }   /* decorative elements yield on small screens */
}

/* ---------------------------------------------------------------- Motion
   Subtle rise on entry; removed entirely under reduced motion. */
@media (prefers-reduced-motion: no-preference) {
  .rnx-anim .hero > .wrap > *,
  .rnx-anim .card,
  .rnx-anim .plan,
  .rnx-anim .layer,
  .rnx-anim .qc {
    animation: rnxRise .55s cubic-bezier(.22, .61, .36, 1) both;
  }
  .rnx-anim .card:nth-child(2), .rnx-anim .plan:nth-child(2), .rnx-anim .qc:nth-child(2) { animation-delay: .07s; }
  .rnx-anim .card:nth-child(3), .rnx-anim .plan:nth-child(3), .rnx-anim .qc:nth-child(3) { animation-delay: .14s; }
  .rnx-anim .card:nth-child(4) { animation-delay: .21s; }
}
@keyframes rnxRise {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}

/* ---------------------------------------------------------------- Responsive */
@media (max-width: 900px) {
  .plans, .qcards, .grid { grid-template-columns: 1fr; }
  .layer { grid-template-columns: 1fr; }
  .layer ul { columns: 1; }
}
@media (max-width: 1100px) {
  .rnx-nav-links, .rnx-location, .rnx-nav-actions > i { display: none; }
  .rnx-nav { grid-template-columns: 1fr auto; height: 78px; }
  .rnx-nav-cta { width: 180px; height: 52px; font-size: 16px; }
}
@media (max-width: 820px) {
  .hero { padding-top: 130px; }
  .ft a, .rnx-ft a { margin-left: 12px; }
}
@media (max-width: 720px) {
  .rnx-navwrap { padding: 8px 4% 0; top: 8px; }
  .rnx-nav { border-radius: 26px; }
  .rnx-brand img { height: 36px; }
  .rnx-brand span { font-size: 28px; }
  .rnx-nav-cta { width: 148px; height: 48px; font-size: 13px; }
  .wrap { padding: 0 20px; }
}
