/* ==========================================================================
   GoBikeFit — shared styles
   ========================================================================== */

:root {
  --bg: #05080d;
  --surface: #0d1117;
  --border: #1d2530;
  --text: #e6edf3;
  --text-secondary: #aeaeb2;
  --accent: #f55b15;
  --accent-soft: rgba(245, 91, 21, 0.12);
  --accent-2: #f55b15;
  --accent-2-soft: rgba(245, 91, 21, 0.12);
  --accent-blue: #208aef;
  --accent-blue-soft: rgba(32, 138, 239, 0.12);
  --appstore: #0a84ff;
  --appstore-hover: #3b9af1;
  --radius: 14px;
  --radius-sm: 12px;
  --font-display: "Sour Gummy", system-ui, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 0.75rem;
  letter-spacing: 0.01em;
}

h1 {
  font-size: clamp(2.25rem, 6vw, 3.5rem);
}

h2 {
  font-size: clamp(1.6rem, 4vw, 2.25rem);
}

h3 {
  font-size: 1.2rem;
}

p {
  margin: 0 0 1rem;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img,
svg {
  max-width: 100%;
  height: auto;
}

.container {
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.muted {
  color: var(--text-secondary);
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 9500;
  -webkit-backdrop-filter: blur(0px);
  backdrop-filter: blur(0px);
}

/* Blur ramp below the header. The bands compound — ::after paints later, so
   ::before's output is already in its backdrop. Keep ::before the taller one. */
.site-header::before,
.site-header::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent);
  mask-image: linear-gradient(to bottom, #000, transparent);
}

/* Wide, gentle tail. The gradient seats the lip against pale backdrops. */
.site-header::before {
  height: 24px;
  -webkit-backdrop-filter: blur(13px);
  backdrop-filter: blur(13px);
  background: linear-gradient(to bottom, rgba(5, 8, 13, 0.35), transparent);
}

/* Tight band, plus the lip. An element's own border composites on top of its
   backdrop-filter, so this hairline stays crisp however hard the band warps. */
.site-header::after {
  height: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

/* Refraction. Chromium only — backdrop-filter: url() is unsupported in Safari
   (WebKit 245510) and Firefox, which keep the blur above. No -webkit- twin on
   purpose: it leaves Safari on the prefixed blur. Filter is inlined per page. */
@supports (backdrop-filter: url("#edge-warp")) {
  .site-header::after {
    height: 28px;
    backdrop-filter: url("#edge-warp") blur(1px);
  }
}

.svg-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 4rem;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.logo:hover {
  text-decoration: none;
}

.logo .logo-go {
  color: var(--accent-2);
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.header-nav .nav-link {
  color: var(--text-secondary);
  font-weight: 500;
}

.header-nav .nav-link:hover {
  color: var(--text);
  text-decoration: none;
}

.btn-store-small {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--appstore);
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  white-space: nowrap;
}

.btn-store-small:hover {
  text-decoration: none;
  background: var(--appstore-hover);
}

/* --------------------------------------------------------------------------
   App Store badge (custom, replace with official artwork if desired)
   -------------------------------------------------------------------------- */

.appstore-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  background: #000;
  border: 1px solid #3a3a3c;
  border-radius: var(--radius-sm);
  padding: 0.65rem 1.25rem;
  color: #fff;
  line-height: 1.15;
}

.appstore-badge:hover {
  text-decoration: none;
  border-color: #6e6e73;
}

.appstore-badge svg {
  width: 1.75rem;
  height: 1.75rem;
  flex-shrink: 0;
}

.appstore-badge .badge-text {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.appstore-badge .badge-top {
  font-size: 0.7rem;
  color: #d5d5d7;
}

.appstore-badge .badge-bottom {
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  /* Swapped by the min-width: 700px query below — keep the breakpoint in sync
     with the preload links in index.html. */
  --hero-img: url("/assets/hero/dusk-riding-zoom-960.webp");
  padding: 5rem 0 4.5rem;
  text-align: center;
  background: linear-gradient(to bottom, rgba(5, 8, 13, 0.55), #05080d 95%),
    var(--hero-img) center / cover no-repeat;
}

@media (min-width: 700px) {
  .hero {
    --hero-img: url("/assets/hero/dusk-riding-zoom.webp");
  }
}

.hero .app-name {
  display: inline-block;
  font-family: var(--font-display);
  color: var(--accent-2);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 1rem;
}
.hero .app-name2 {
  display: inline-block;
  font-family: var(--font-display);
  color: var(--text);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 1rem;
}

.hero h1 {
  max-width: 44rem;
  margin-left: auto;
  margin-right: auto;
}

.hero .subhead {
  max-width: 38rem;
  margin: 1.25rem auto 2.25rem;
  color: var(--text-secondary);
  font-size: 1.15rem;
}

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */

.section {
  padding: 4.5rem 0;
}

.section-header {
  text-align: center;
  max-width: 40rem;
  margin: 0 auto 3rem;
}

.section-header p {
  color: var(--text-secondary);
}

/* --------------------------------------------------------------------------
   Cards & grids
   -------------------------------------------------------------------------- */

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
}

.steps-grid,
.features-grid,
.pricing-grid {
  display: grid;
  gap: 1.25rem;
}

.steps-grid {
  grid-template-columns: 1fr;
}

.features-grid {
  grid-template-columns: 1fr;
}

.pricing-grid {
  grid-template-columns: 1fr;
  align-items: stretch;
}

@media (min-width: 640px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 860px) {
  .steps-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .features-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .pricing-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.step-number {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--accent-2);
  margin-bottom: 0.75rem;
}

.icon-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  background: var(--accent-blue-soft);
  color: var(--accent-blue);
  margin-bottom: 1.1rem;
}

.icon-circle.orange {
  background: var(--accent-2-soft);
  color: var(--accent-2);
}

.icon-circle svg {
  width: 1.5rem;
  height: 1.5rem;
}

.card h3 {
  margin-bottom: 0.5rem;
}

.card p:last-child {
  margin-bottom: 0;
}

.card .card-body {
  color: var(--text-secondary);
  font-size: 0.98rem;
}

/* --------------------------------------------------------------------------
   Privacy callout
   -------------------------------------------------------------------------- */


.section--privacy {
  --privacy-img: url("/assets/private/dawn-empty-road-960.webp");
  background: linear-gradient(
      to bottom,
      #05080d 0%,
      rgba(5, 8, 13, 0.6) 30%,
      rgba(5, 8, 13, 0.6) 70%,
      #05080d 100%
    ),
    var(--privacy-img) center 0% / cover no-repeat;
}

@media (min-width: 700px) {
  .section--privacy {
    --privacy-img: url("/assets/private/dawn-empty-road.webp");
  }
}

.privacy-callout {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 3rem 1.75rem;
  text-align: center;
  max-width: 46rem;
  margin: 0 auto;
}

.privacy-callout .icon-circle {
  width: 3.5rem;
  height: 3.5rem;
}

.privacy-callout p {
  color: var(--text-secondary);
  max-width: 34rem;
  margin: 0 auto;
  font-size: 1.1rem;
}

/* --------------------------------------------------------------------------
   Pricing
   -------------------------------------------------------------------------- */

.pricing-card {
  display: flex;
  flex-direction: column;
  position: relative;
  text-align: center;
  padding: 2.25rem 1.75rem;
}

.pricing-card.featured {
  border-color: limegreen;
}

.pricing-badge {
  position: absolute;
  top: -0.8rem;
  left: 50%;
  transform: translateX(-50%);
  background: limegreen;
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.25rem 0.9rem;
  border-radius: 999px;
  white-space: nowrap;
}

.pricing-card .plan-name {
  font-family: var(--font-display);
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

.pricing-card .plan-desc {
  color: var(--text-secondary);
  font-size: 0.98rem;
  flex-grow: 1;
}

.pricing-card .plan-cta {
  display: inline-block;
  margin-top: 1.5rem;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  padding: 0.7rem 1.5rem;
  border-radius: 999px;
}

.pricing-card .plan-cta.secondary {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}

.pricing-card .plan-cta:hover {
  text-decoration: none;
  background: #ff7333;
}

/* Monthly and Lifetime fill with brand orange on hover. Wins over the rule
   above on specificity, so they land on --accent while the featured Annual
   button — already --accent at rest — lightens to #ff7333 instead. */
.pricing-card .plan-cta.secondary:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.pricing-note {
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-top: 2rem;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 3rem 0;
  margin-top: 3rem;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
  text-align: center;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1.75rem;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: var(--text);
}

.footer-copy {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin: 0;
}

/* --------------------------------------------------------------------------
   Page hero (subpages)
   -------------------------------------------------------------------------- */

.page-hero {
  padding: 4rem 0 1rem;
}

.page-hero p {
  color: var(--text-secondary);
  max-width: 38rem;
}

/* --------------------------------------------------------------------------
   FAQ (native <details>)
   -------------------------------------------------------------------------- */

.faq-list {
  max-width: 46rem;
  display: grid;
  gap: 1rem;
  margin: 2.5rem 0;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0;
  overflow: hidden;
}

.faq-item summary {
  cursor: pointer;
  padding: 1.1rem 1.4rem;
  font-weight: 600;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-family: var(--font-display);
  color: var(--accent);
  font-size: 1.3rem;
  line-height: 1;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item .faq-answer {
  padding: 0 1.4rem 1.25rem;
  color: var(--text-secondary);
}

.faq-item .faq-answer p:last-child {
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   Contact block
   -------------------------------------------------------------------------- */

.contact-block {
  max-width: 46rem;
  margin-bottom: 2rem;
}

/* --------------------------------------------------------------------------
   Legal / prose pages
   -------------------------------------------------------------------------- */

.prose {
  max-width: 42rem;
  padding: 1rem 0 3rem;
}

.prose h2 {
  font-size: 1.35rem;
  margin-top: 2.5rem;
}

.prose p,
.prose ul {
  color: var(--text-secondary);
}

.prose ul {
  margin: 0 0 1rem;
  padding-left: 1.4rem;
}

.prose li {
  margin-bottom: 0.35rem;
  overflow-wrap: break-word;
}

.prose .legal-updated {
  font-size: 0.9rem;
  margin-bottom: 2rem;
}
