/* Spot My Ride help site */

:root {
  color-scheme: light;

  --bg: #f3f6f6;
  --surface: #ffffff;
  --header-bg: #ffffff;
  --text: #1c2b29;
  --muted: #55625f;
  --nav-text: #33433f;
  --rule: #e1e8e6;

  --teal: #00a085;
  --teal-strong: #00806a;
  --teal-hover: #006b59;
  --on-teal: #ffffff;
  --tint: #e7f5f2;
  --tint-border: #cbe8e1;
  --row-hover: #f5fbf9;
  --title: #0a4f45;
  --pill-bg: #ffffff;
  --pill-text: #3d5853;

  --notice-bg: #fff5db;
  --notice-border: #a36b00;
  --notice-text: #3b2a00;

  --footer-bg: #0b4a42;
  --footer-text: #ffffff;
  --footer-muted: #cbe5df;
  --footer-rule: rgba(255, 255, 255, 0.18);

  --focus: #00806a;
  --shadow: 0 1px 2px rgba(16, 42, 38, 0.06), 0 10px 30px rgba(16, 42, 38, 0.07);
  --shadow-lift: 0 2px 4px rgba(16, 42, 38, 0.08), 0 18px 40px rgba(16, 42, 38, 0.13);

  --col: 760px;
  --gutter: 20px;
  --pad: 44px;
}

@media (max-width: 639px) {
  :root {
    --gutter: 12px;
    --pad: 22px;
  }
}

/* Base */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  overflow-wrap: break-word;
}

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

a {
  color: var(--teal-strong);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--teal-hover);
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

main {
  flex: 1 0 auto;
}

main:focus {
  outline: none;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 12px;
  z-index: 10;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--surface);
  color: var(--teal-strong);
  font-weight: 700;
  box-shadow: var(--shadow-lift);
}

.skip-link:focus {
  top: 12px;
}

/* Header */

.site-header {
  background: var(--header-bg);
  border-bottom: 1px solid var(--rule);
}

.bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  max-width: calc(var(--col) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 14px var(--gutter);
}

.brand {
  display: block;
  flex: none;
  border-radius: 6px;
}

.brand img {
  display: block;
  width: 150px;
  height: auto;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.site-nav a {
  padding: 6px 12px;
  border-radius: 999px;
  color: var(--nav-text);
  font-size: 0.94rem;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
}

.site-nav a:hover {
  background: var(--tint);
  color: var(--title);
}

.site-nav a[aria-current="page"] {
  background: var(--tint);
  color: var(--title);
  box-shadow: inset 0 0 0 1px var(--tint-border);
}

@media (max-width: 639px) {
  .bar {
    padding-top: 14px;
    padding-bottom: 10px;
  }

  .site-nav {
    width: 100%;
    justify-content: space-between;
  }

  .site-nav a {
    padding: 6px 10px;
    font-size: 0.9rem;
  }
}

/* Title band */

.band {
  background: var(--tint);
  border-bottom: 1px solid var(--tint-border);
}

.band-inner {
  max-width: calc(var(--col) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 44px calc(var(--gutter) + var(--pad)) 72px;
}

h1 {
  margin: 0;
  color: var(--title);
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.updated {
  display: inline-block;
  margin: 14px 0 0;
  padding: 3px 12px;
  border: 1px solid var(--tint-border);
  border-radius: 999px;
  background: var(--pill-bg);
  color: var(--pill-text);
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.6;
}

@media (max-width: 639px) {
  .band-inner {
    padding-top: 32px;
    padding-bottom: 60px;
  }

  h1 {
    font-size: 1.85rem;
  }
}

/* Content card */

.layout {
  position: relative;
  max-width: calc(var(--col) + 2 * var(--gutter));
  margin: -28px auto 0;
  padding: 0 var(--gutter) 56px;
}

.card {
  padding: var(--pad);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.card > :first-child {
  margin-top: 0;
}

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

.card a {
  overflow-wrap: anywhere;
}

p,
ul,
ol {
  margin: 0 0 1.1em;
}

h2 {
  position: relative;
  margin: 2.2em 0 0.6em;
  padding-left: 16px;
  color: var(--text);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.3;
  scroll-margin-top: 24px;
}

h2::before {
  content: "";
  position: absolute;
  top: 0.12em;
  left: 0;
  width: 4px;
  height: 1.1em;
  border-radius: 4px;
  background: var(--teal);
}

ul,
ol {
  padding-left: 1.3em;
}

li {
  margin-bottom: 0.45em;
  padding-left: 0.2em;
}

li::marker {
  color: var(--teal);
  font-weight: 700;
}

/* On this page */

.toc-inner {
  margin-bottom: 16px;
  padding: 20px var(--pad);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.toc-title {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.toc ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.toc li {
  margin: 0;
  padding: 0;
}

.toc a {
  display: block;
  padding: 5px 0;
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.45;
  text-decoration: none;
}

.toc a:hover {
  color: var(--teal-strong);
  text-decoration: underline;
}

@media (min-width: 1260px) {
  .toc {
    position: absolute;
    top: 0;
    bottom: 56px;
    left: calc(100% - var(--gutter) + 24px);
    width: 200px;
  }

  .toc-inner {
    position: sticky;
    top: 24px;
    max-height: calc(100vh - 48px);
    overflow: auto;
    margin: 0;
    padding: 18px 20px;
  }

  .toc a {
    font-size: 0.9rem;
  }
}

.back-to-top {
  margin-top: 2.2em;
  padding-top: 1.2em;
  border-top: 1px solid var(--rule);
  font-size: 0.95rem;
}

/* Notice */

.notice {
  padding: 14px 18px;
  border-left: 4px solid var(--notice-border);
  border-radius: 10px;
  background: var(--notice-bg);
  color: var(--notice-text);
}

li.notice {
  margin: 0.9em 0 0.9em -1.3em;
  list-style: none;
}

/* Support */

.email-cta {
  margin-bottom: 1.4em;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 22px;
  border-radius: 999px;
  background: var(--teal-strong);
  color: var(--on-teal);
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;
}

.button:hover {
  background: var(--teal-hover);
  color: var(--on-teal);
}

.button svg {
  width: 20px;
  height: 20px;
  flex: none;
}

.card a.button {
  overflow-wrap: normal;
}

.faq {
  margin: 0 0 1.4em;
}

details {
  margin-bottom: 10px;
  border: 1px solid var(--rule);
  border-radius: 12px;
  background: var(--surface);
}

details[open] {
  border-color: var(--tint-border);
}

summary {
  display: block;
  position: relative;
  padding: 14px 52px 14px 18px;
  border-radius: 11px;
  cursor: pointer;
  list-style: none;
}

summary::-webkit-details-marker {
  display: none;
}

summary:hover {
  background: var(--tint);
}

summary::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 22px;
  width: 9px;
  height: 9px;
  border-right: 2.5px solid var(--teal);
  border-bottom: 2.5px solid var(--teal);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.2s ease;
}

details[open] > summary::after {
  transform: translateY(-25%) rotate(-135deg);
}

.answer {
  padding: 4px 18px 16px;
}

.answer p {
  margin: 0;
}

/* Delete account steps */

ol.steps {
  padding: 0;
  list-style: none;
  counter-reset: step;
}

ol.steps li {
  position: relative;
  min-height: 34px;
  margin-bottom: 14px;
  padding: 2px 0 0 50px;
  counter-increment: step;
}

ol.steps li::before {
  content: counter(step);
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--teal-strong);
  color: var(--on-teal);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
}

/* Home page list */

.hub {
  padding: 0;
  overflow: hidden;
}

.hub-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.hub-list li {
  margin: 0;
  padding: 0;
}

.hub-list li + li {
  border-top: 1px solid var(--rule);
}

.hub-link {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 16px;
  align-items: center;
  gap: 20px;
  padding: 24px var(--pad);
  color: var(--text);
  text-decoration: none;
  transition: background-color 0.15s ease;
}

.hub-link:hover,
.hub-link:focus-visible {
  background: var(--row-hover);
  color: var(--text);
}

.hub-link:focus-visible {
  outline-offset: -3px;
}

.hub-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--tint);
  color: var(--teal-strong);
}

.hub-icon svg {
  width: 24px;
  height: 24px;
}

.hub-body h2 {
  margin: 0 0 2px;
  padding: 0;
  font-size: 1.12rem;
  line-height: 1.35;
}

.hub-body h2::before {
  display: none;
}

.hub-body p {
  margin: 0;
  color: var(--muted);
  font-size: 0.97rem;
  line-height: 1.5;
}

.hub-arrow {
  justify-self: center;
  width: 10px;
  height: 10px;
  border-top: 2.5px solid var(--teal);
  border-right: 2.5px solid var(--teal);
  transform: rotate(45deg);
  transition: transform 0.15s ease;
}

.hub-link:hover .hub-arrow {
  transform: translateX(3px) rotate(45deg);
}

@media (max-width: 639px) {
  .hub-link {
    grid-template-columns: 42px minmax(0, 1fr) 12px;
    gap: 14px;
    padding: 18px 20px;
  }

  .hub-icon {
    width: 42px;
    height: 42px;
  }
}

/* Footer */

.site-footer {
  background: var(--footer-bg);
  color: var(--footer-muted);
}

.footer-inner {
  max-width: calc(var(--col) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 36px calc(var(--gutter) + var(--pad)) 40px;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--footer-rule);
}

.footer-brand {
  display: block;
  border-radius: 6px;
}

.footer-brand img {
  display: block;
  width: 140px;
  height: auto;
  filter: brightness(0) invert(1);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
}

.footer-nav a {
  color: var(--footer-text);
  font-size: 0.95rem;
  font-weight: 600;
}

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

.site-footer p {
  margin: 18px 0 0;
  font-size: 0.9rem;
}

.site-footer :focus-visible {
  outline-color: #ffffff;
}

/* Motion */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hub-link,
  .hub-arrow,
  summary::after {
    transition: none;
  }

  .hub-link:hover .hub-arrow {
    transform: rotate(45deg);
  }
}
