:root {
  --purple-900: #4a1a3d;
  --purple-800: #6b2450;
  --purple-700: #882D61;
  --purple-600: #9c3a70;
  --purple-100: #f6ecf1;
  --purple-50: #fbf6f9;

  --green-700: #1f6b24;
  --green-600: #2D882D;
  --green-500: #3aa23f;
  --green-100: #e9f6ea;

  --ink-900: #241c29;
  --ink-600: #5b5563;
  --ink-400: #8b8591;

  --bg-alt: #faf7fa;
  --border: #ece5ea;

  --shadow-sm: 0 1px 3px rgba(36,20,32,.08);
  --shadow-md: 0 10px 28px rgba(36,20,32,.10);

  --font-display: 'Poppins', 'Segoe UI', system-ui, -apple-system, Arial, sans-serif;
  --font-body: 'Segoe UI', system-ui, -apple-system, Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { height: 100%; width: 100%; margin: 0; }
body { font-family: var(--font-body); color: var(--ink-900); background: #fff; }
h1, h2, h3 { font-family: var(--font-display); }
a { color: var(--purple-700); }
a:visited { color: var(--purple-700); }

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header (shared with landing page) ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(120deg, var(--purple-700), var(--purple-800));
  box-shadow: var(--shadow-sm);
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 72px;
  padding-top: 10px;
  padding-bottom: 10px;
}
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand img { height: 38px; width: auto; display: block; }
.site-nav {
  display: flex;
  gap: 28px;
  margin-right: auto;
  margin-left: 12px;
}
.site-nav a {
  color: rgba(255,255,255,.88);
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: .2px;
}
.site-nav a:visited { color: rgba(255,255,255,.88); }
.site-nav a:hover { color: #fff; }
.indexLoginBox {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* ---------- Buttons (shared with landing page) ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  border-radius: 999px;
  padding: 12px 24px;
  border: 2px solid transparent;
  white-space: nowrap;
  transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(120deg, var(--green-600), var(--green-700));
  color: #fff;
  box-shadow: 0 8px 20px rgba(45,136,45,.30);
}
.btn-primary:visited { color: #fff; }
.btn-primary:hover { box-shadow: 0 10px 24px rgba(45,136,45,.40); }
.btn-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.55);
}
.btn-outline:visited { color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,.10); }

/* ---------- Page content ---------- */
main { display: block; }
.sp-content {
  max-width: 820px;
  margin: 0 auto;
  padding: 56px 24px 72px;
  line-height: 1.7;
}
.sp-content h1 {
  font-size: 34px;
  color: var(--ink-900);
  margin: 0 0 28px;
  line-height: 1.2;
}
.sp-content h2 {
  font-size: 22px;
  color: var(--purple-700);
  margin: 40px 0 12px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  line-height: 1.3;
}
.sp-content h1 + h2,
.sp-content img + h2 {
  border-top: none;
  padding-top: 0;
  margin-top: 0;
}
.sp-content h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--ink-900);
  margin: 26px 0 8px;
}
.sp-content p {
  font-size: 15.5px;
  color: var(--ink-600);
  margin: 0 0 16px;
}
.sp-content ul, .sp-content ol {
  font-size: 15.5px;
  color: var(--ink-600);
  padding-left: 22px;
  margin: 0 0 16px;
}
.sp-content li { margin-bottom: 8px; }
.sp-content ol > li > h2,
.sp-content ol > li > h3 { margin-top: 0; }
.sp-content strong, .sp-content b { color: var(--ink-900); }
.sp-content a { color: var(--purple-700); font-weight: 600; }
.sp-content img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  margin: 24px 0;
  display: block;
}

/* ---------- Footer (shared with landing page) ---------- */
.site-footer {
  background: var(--purple-900);
  color: rgba(255,255,255,.75);
  padding: 44px 0 26px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255,255,255,.14);
  margin-bottom: 20px;
}
.footer-brand img { height: 30px; margin-bottom: 12px; }
.footer-brand p {
  font-size: 13.5px;
  line-height: 1.6;
  max-width: 42ch;
  margin: 0;
  color: rgba(255,255,255,.65);
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 10px 24px;
  justify-content: flex-end;
}
.footer-links a {
  color: rgba(255,255,255,.80);
  text-decoration: none;
  font-size: 13.5px;
}
.footer-links a:visited { color: rgba(255,255,255,.80); }
.footer-links a:hover { color: #fff; }
.footer-copy {
  font-size: 12px;
  line-height: 1.7;
  color: rgba(255,255,255,.55);
}

/* ---------- Responsive ---------- */
@media (max-width: 700px) {
  .site-nav { display: none; }
}
@media (max-width: 600px) {
  .nav-inner { min-height: auto; padding: 12px 0; flex-wrap: wrap; }
  .indexLoginBox { width: 100%; justify-content: center; }
  .btn { padding: 10px 18px; font-size: 14px; }
  .sp-content { padding: 36px 20px 56px; }
  .sp-content h1 { font-size: 27px; }
  .sp-content h2 { font-size: 19px; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-links { justify-content: flex-start; }
}

/* ---------- App screenshots ---------- */
.sp-screens {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
  margin: 28px 0;
}
.sp-screens figure { margin: 0; flex: 0 1 240px; text-align: center; }
.sp-content .sp-screens img { width: 100%; margin: 0 0 10px; }
.sp-screens figcaption { font-size: 14px; color: var(--ink-600); line-height: 1.5; }

/* ---------- Mileage rate card ---------- */
.sp-rate-card {
  background: linear-gradient(135deg, var(--purple-700), var(--purple-800));
  color: #fff;
  border-radius: 18px;
  box-shadow: var(--shadow-md);
  padding: 28px 32px;
  margin: 24px 0 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 20px 40px;
}
.sp-rate-card .rate { flex: 1 1 200px; }
.sp-rate-card .rate-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  opacity: .8;
}
.sp-rate-card .rate-value {
  display: block;
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 800;
  line-height: 1.15;
}
.sp-rate-card .rate-value small { font-size: 18px; font-weight: 600; opacity: .85; }
.sp-rate-card .rate-period { display: block; font-size: 14px; opacity: .85; }
.sp-content .sp-rate-card + h2 { border-top: none; padding-top: 0; margin-top: 0; }
