/* RMPD24 public landing page — self-contained, reuses the app's brand tokens. */
:root {
  --rmpd-navy: #081b34;
  --rmpd-navy-soft: #102b4d;
  --rmpd-blue: #087af2;
  --rmpd-blue-dark: #0565cc;
  --rmpd-cyan: #19bde5;
  --rmpd-bg: #f4f7fb;
  --rmpd-surface: #ffffff;
  --rmpd-border: #dfe7f1;
  --rmpd-text: #10223d;
  --rmpd-muted: #6b7d94;
  --rmpd-success: #168252;
  --rmpd-warning: #b66a09;
  --rmpd-danger: #c63c45;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --shadow-card: 0 5px 18px rgb(15 43 78 / 5%);
  --shadow-lift: 0 14px 34px rgb(15 43 78 / 10%);
  --landing-max: 1180px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
.landing section[id] { scroll-margin-top: 84px; }
body.landing { margin: 0; background: var(--rmpd-surface); color: var(--rmpd-text); font-family: Inter, ui-sans-serif, system-ui, sans-serif; font-size: 15px; line-height: 1.5; -webkit-text-size-adjust: 100%; }
.landing img { max-width: 100%; display: block; }
.landing a { color: inherit; }
.landing .container { width: 100%; max-width: var(--landing-max); margin: 0 auto; padding: 0 20px; }
.landing section { padding: 64px 0; }
.landing .section-bg { background: var(--rmpd-bg); }
.landing .eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border: 1px solid var(--rmpd-border); border-radius: 999px; background: #eaf4ff; color: var(--rmpd-blue-dark); font-size: 13px; font-weight: 650; }
.landing .section-head { max-width: 680px; margin: 0 0 36px; }
.landing .section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.landing h1, .landing h2, .landing h3 { margin: 0; font-weight: 750; letter-spacing: -0.01em; }
.landing h2 { font-size: clamp(24px, 3vw, 32px); }
.landing .section-sub { margin: 12px 0 0; color: var(--rmpd-muted); font-size: 16px; }
.landing p { margin: 0; }

/* buttons */
.landing .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 22px; border: 1px solid transparent; border-radius: var(--radius-sm); font-size: 15px; font-weight: 650; text-decoration: none; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease; }
.landing .btn:active { transform: translateY(1px); }
.landing .btn-primary { border-color: var(--rmpd-blue); background: var(--rmpd-blue); color: #fff; box-shadow: 0 10px 24px rgb(8 122 242 / 22%); }
.landing .btn-primary:hover { background: var(--rmpd-blue-dark); }
.landing .btn-outline { border-color: var(--rmpd-border); background: #fff; color: var(--rmpd-text); }
.landing .btn-outline:hover { border-color: var(--rmpd-blue); color: var(--rmpd-blue-dark); }
.landing .btn-ghost { border-color: rgb(255 255 255 / 25%); background: transparent; color: #fff; }
.landing .btn-ghost:hover { background: rgb(255 255 255 / 10%); }
.landing .btn-block { width: 100%; }
.landing .btn-lg { min-height: 54px; padding: 14px 28px; font-size: 16px; }

/* header */
.landing-header { position: sticky; top: 0; z-index: 100; border-bottom: 1px solid transparent; background: rgb(255 255 255 / 88%); backdrop-filter: blur(10px); transition: border-color .2s ease, box-shadow .2s ease; }
.landing-header.is-scrolled { border-bottom-color: var(--rmpd-border); box-shadow: 0 2px 14px rgb(15 43 78 / 5%); }
.landing-header .container { display: flex; align-items: center; gap: 20px; min-height: 72px; }
.landing-header .brand { display: flex; align-items: center; gap: 8px; margin-right: auto; font-weight: 750; text-decoration: none; }
.landing-header .brand img { width: 132px; height: auto; }
.landing-nav { display: none; }
.landing-header .header-cta { display: none; align-items: center; gap: 10px; }
.landing-burger { display: grid; width: 42px; height: 42px; place-items: center; border: 1px solid var(--rmpd-border); border-radius: var(--radius-sm); background: #fff; cursor: pointer; }
.landing-burger span, .landing-burger::before, .landing-burger::after { display: block; width: 20px; height: 2px; background: var(--rmpd-text); }
.landing-burger { position: relative; }
.landing-burger span { position: relative; background: var(--rmpd-text); transition: opacity .15s ease; }
.landing-burger::before, .landing-burger::after { position: absolute; content: ''; transition: transform .2s ease; }
.landing-burger::before { transform: translateY(-6px); }
.landing-burger::after { transform: translateY(6px); }
.landing-burger[aria-expanded="true"] span { opacity: 0; }
.landing-burger[aria-expanded="true"]::before { transform: rotate(45deg); }
.landing-burger[aria-expanded="true"]::after { transform: rotate(-45deg); }

.landing-mobile-menu { position: fixed; top: 72px; right: 0; bottom: 0; left: 0; z-index: 90; display: none; flex-direction: column; gap: 4px; padding: 18px 20px calc(24px + env(safe-area-inset-bottom)); overflow-y: auto; background: #fff; }
.landing-mobile-menu.is-open { display: flex; }
.landing-mobile-menu a.nav-link { padding: 14px 4px; border-bottom: 1px solid var(--rmpd-border); color: var(--rmpd-text); font-weight: 600; text-decoration: none; }
.landing-mobile-menu .mobile-cta { display: grid; gap: 10px; margin-top: 18px; }

/* hero */
.landing-hero { position: relative; overflow: hidden; padding: 44px 0 64px; background: linear-gradient(180deg, #f7fafd 0%, #fff 60%); }
.landing-hero .container { display: grid; grid-template-columns: 1fr; gap: 36px; align-items: center; }
.landing-hero h1 { margin: 16px 0 0; font-size: clamp(32px, 5.4vw, 52px); line-height: 1.08; }
.landing-hero .lede { margin: 18px 0 0; max-width: 560px; color: var(--rmpd-muted); font-size: 17px; }
.landing-hero .hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.landing-hero .hero-checks { display: grid; gap: 10px; margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--rmpd-border); font-size: 14px; color: var(--rmpd-muted); }
.landing-hero .hero-checks li { display: flex; align-items: center; gap: 8px; list-style: none; }
.landing-hero .hero-checks ul { display: grid; gap: 10px; margin: 0; padding: 0; }
.landing-hero .check-dot { color: var(--rmpd-success); font-weight: 750; }
.landing-hero .hero-visual { min-width: 0; }

.product-shot { position: relative; padding: 10px; border: 1px solid var(--rmpd-border); border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow-lift); }
.product-shot .shot-frame { overflow: hidden; border-radius: calc(var(--radius-lg) - 6px); background: var(--rmpd-bg); }
.product-shot img { width: 100%; height: auto; display: block; }
.shot-placeholder { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; aspect-ratio: var(--shot-ratio, 16 / 10); padding: 24px; border: 1.5px dashed #b9cbe3; border-radius: calc(var(--radius-lg) - 6px); background: repeating-linear-gradient(135deg, #eef4fb, #eef4fb 10px, #f5f9fd 10px, #f5f9fd 20px); color: var(--rmpd-muted); text-align: center; }
.shot-placeholder .shot-icon { font-size: 30px; }
.shot-placeholder strong { color: var(--rmpd-text); font-size: 14px; }
.shot-placeholder small { max-width: 320px; font-size: 12px; }

/* trust strip */
.trust-strip { padding: 34px 0; background: var(--rmpd-navy); color: #fff; }
.trust-strip .container { display: flex; flex-direction: column; gap: 18px; align-items: center; text-align: center; }
.trust-strip h3 { font-size: 16px; font-weight: 650; color: rgb(255 255 255 / 82%); }
.trust-strip .trust-items { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; width: 100%; }
.trust-strip .trust-item { padding: 12px 10px; border: 1px solid rgb(255 255 255 / 12%); border-radius: var(--radius-sm); background: rgb(255 255 255 / 5%); font-weight: 650; font-size: 14px; }

/* comparison */
.compare-grid { display: grid; gap: 18px; margin-top: 30px; }
.compare-card { padding: 22px; border: 1px solid var(--rmpd-border); border-radius: var(--radius-md); background: #fff; box-shadow: var(--shadow-card); }
.compare-card h3 { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; font-size: 16px; }
.compare-card ul { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.compare-card li { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; }
.compare-card.old li::before { content: '✕'; color: var(--rmpd-danger); font-weight: 750; }
.compare-card.new { border-color: rgb(8 122 242 / 30%); background: linear-gradient(180deg, #f4f9ff 0%, #fff 100%); }
.compare-card.new li::before { content: '✓'; color: var(--rmpd-success); font-weight: 750; }
.compare-note { margin-top: 22px; padding: 16px 18px; border-radius: var(--radius-sm); background: #eaf4ff; color: var(--rmpd-blue-dark); font-weight: 650; text-align: center; }

/* steps */
.steps-grid { display: grid; gap: 20px; margin-top: 30px; }
.step-card { position: relative; padding: 26px 22px; border: 1px solid var(--rmpd-border); border-radius: var(--radius-md); background: #fff; box-shadow: var(--shadow-card); }
.step-card .step-num { display: inline-block; margin-bottom: 14px; color: var(--rmpd-blue); font-size: 28px; font-weight: 800; opacity: .55; }
.step-card h3 { margin-bottom: 8px; font-size: 17px; }
.step-card p { color: var(--rmpd-muted); font-size: 14px; }

/* gps feature block */
.feature-split { display: grid; gap: 34px; align-items: center; }
.feature-split .feature-copy .eyebrow { margin-bottom: 14px; }
.feature-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 16px; margin: 22px 0 0; padding: 0; list-style: none; }
.feature-list li { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; }
.feature-list li::before { content: '✓'; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: rgb(22 130 82 / 12%); color: var(--rmpd-success); font-size: 11px; flex: 0 0 18px; }
.feature-callout { display: flex; gap: 14px; margin-top: 24px; padding: 18px; border: 1px solid var(--rmpd-border); border-radius: var(--radius-md); background: var(--rmpd-bg); }
.feature-callout .callout-icon { display: grid; place-items: center; width: 40px; height: 40px; flex: 0 0 40px; border-radius: 10px; background: #eaf4ff; font-size: 18px; }
.feature-callout h4 { margin: 0 0 4px; font-size: 15px; }
.feature-callout p { color: var(--rmpd-muted); font-size: 13px; }

/* timeline demo */
.timeline-demo { display: grid; gap: 26px; align-items: center; }
.timeline-demo-copy h2 { margin-bottom: 12px; }
.timeline-demo-copy p { color: var(--rmpd-muted); font-size: 15px; }
.route-tl-demo { padding: 20px; border: 1px solid var(--rmpd-border); border-radius: var(--radius-md); background: #fff; box-shadow: var(--shadow-card); }
.route-tl-demo .route-tl-item { position: relative; display: flex; align-items: flex-start; gap: 12px; padding: 12px 4px; }
.route-tl-demo .route-tl-item:not(:last-child)::after { position: absolute; top: 30px; bottom: -6px; left: 9px; width: 2px; background: var(--rmpd-border); content: ''; }
.route-tl-demo .tl-dot { position: relative; z-index: 1; display: block; width: 20px; height: 20px; flex: 0 0 20px; margin-top: 2px; border-radius: 50%; background: #fff; }
.route-tl-demo .tl-dot::before { position: absolute; inset: 5px; border-radius: 50%; background: var(--dot, var(--rmpd-blue)); content: ''; }
.route-tl-demo .tl-item--start .tl-dot, .route-tl-demo .tl-item--last .tl-dot { --dot: var(--rmpd-blue); }
.route-tl-demo .tl-item--move .tl-dot { --dot: #94a3b8; }
.route-tl-demo .tl-item--stop .tl-dot { --dot: #e58b21; }
.route-tl-demo .tl-body strong { display: block; font-size: 14px; }
.route-tl-demo .tl-body small { display: block; margin-top: 2px; color: var(--rmpd-muted); font-size: 13px; }

/* saved data cards */
.data-cards { display: grid; gap: 16px; margin-top: 30px; }
.data-card { padding: 24px; border: 1px solid var(--rmpd-border); border-radius: var(--radius-md); background: #fff; box-shadow: var(--shadow-card); }
.data-card .data-emoji { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 14px; border-radius: 12px; background: var(--rmpd-bg); font-size: 22px; }
.data-card h3 { margin-bottom: 6px; font-size: 16px; }
.data-card p { color: var(--rmpd-muted); font-size: 14px; }
.data-note { margin-top: 22px; color: var(--rmpd-muted); font-size: 14px; text-align: center; }

/* features grid */
.features-grid { display: grid; gap: 16px; margin-top: 30px; }
.feature-card { padding: 22px; border: 1px solid var(--rmpd-border); border-radius: var(--radius-md); background: #fff; box-shadow: var(--shadow-card); transition: box-shadow .2s ease, transform .2s ease; }
.feature-card:hover { box-shadow: var(--shadow-lift); transform: translateY(-2px); }
.feature-card h3 { margin-bottom: 6px; font-size: 15px; }
.feature-card p { color: var(--rmpd-muted); font-size: 13px; }

/* mobile section */
.mobile-feature { display: grid; gap: 30px; align-items: center; }
.mobile-feature .phone-mock { justify-self: center; width: min(280px, 100%); }
.mobile-feature .phone-frame { position: relative; padding: 14px 10px; border-radius: 40px; background: var(--rmpd-navy); box-shadow: var(--shadow-lift); }
.mobile-feature .phone-screen { overflow: hidden; border-radius: 26px; background: #fff; aspect-ratio: 1290 / 2241; }
.mobile-feature .phone-screen img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.mobile-feature .phone-notch { position: absolute; top: 14px; left: 50%; z-index: 1; width: 90px; height: 18px; border-radius: 10px; background: var(--rmpd-navy); transform: translateX(-50%); }
.mobile-points { display: grid; gap: 10px; margin: 22px 0 0; padding: 0; list-style: none; }
.mobile-points li { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; }
.mobile-points li::before { content: '✓'; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: rgb(22 130 82 / 12%); color: var(--rmpd-success); font-size: 11px; flex: 0 0 18px; }

/* pricing */
.pricing-grid { display: grid; gap: 18px; margin-top: 36px; }
.price-card { display: flex; flex-direction: column; padding: 26px 22px; border: 1px solid var(--rmpd-border); border-radius: var(--radius-md); background: #fff; box-shadow: var(--shadow-card); }
.price-card .price-name { color: var(--rmpd-muted); font-size: 13px; font-weight: 700; letter-spacing: .04em; }
.price-card .price-amount { display: flex; align-items: baseline; gap: 6px; margin: 10px 0 4px; }
.price-card .price-amount b { font-size: 34px; }
.price-card .price-amount span { color: var(--rmpd-muted); font-size: 13px; }
.price-card .price-limit { margin-bottom: 8px; color: var(--rmpd-muted); font-size: 14px; }
.price-card .price-description { margin-bottom: 20px; color: var(--rmpd-muted); font-size: 13px; line-height: 1.5; }
.price-card .btn { margin-top: auto; }
.price-card.featured { position: relative; border-color: var(--rmpd-blue); background: linear-gradient(180deg, #f4f9ff 0%, #fff 100%); box-shadow: var(--shadow-lift); transform: translateY(-6px); }
.price-card .price-badge { position: absolute; top: -13px; left: 22px; padding: 5px 12px; border-radius: 999px; background: var(--rmpd-blue); color: #fff; font-size: 12px; font-weight: 700; }
.pricing-enterprise { margin-top: 28px; padding: 22px; border: 1px dashed var(--rmpd-border); border-radius: var(--radius-md); text-align: center; }
.pricing-enterprise strong { display: block; margin-bottom: 4px; font-size: 16px; }
.pricing-enterprise p { margin-bottom: 14px; color: var(--rmpd-muted); font-size: 14px; }

/* included checklist */
.included-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 18px; margin-top: 26px; padding: 0; list-style: none; }
.included-grid li { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.included-grid li::before { content: '✓'; color: var(--rmpd-success); font-weight: 750; }

/* trial CTA */
.trial-cta { padding: 48px 0; border-radius: var(--radius-lg); background: var(--rmpd-navy); color: #fff; text-align: center; }
.trial-cta h2 { color: #fff; }
.trial-cta p { margin-top: 12px; color: rgb(255 255 255 / 75%); }
.trial-cta .btn-primary { margin-top: 24px; }
.trial-cta .trial-note { margin-top: 12px; color: rgb(255 255 255 / 55%); font-size: 13px; }

/* faq */
.faq-list { display: grid; gap: 10px; margin-top: 30px; }
.faq-item { border: 1px solid var(--rmpd-border); border-radius: var(--radius-sm); background: #fff; overflow: hidden; }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; cursor: pointer; font-weight: 650; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .faq-plus { display: grid; place-items: center; width: 24px; height: 24px; flex: 0 0 24px; border-radius: 50%; background: var(--rmpd-bg); color: var(--rmpd-blue); font-size: 16px; transition: transform .2s ease; }
.faq-item[open] summary .faq-plus { transform: rotate(45deg); }
.faq-item .faq-answer { padding: 0 18px 18px; color: var(--rmpd-muted); font-size: 14px; }

/* final cta */
.final-cta { padding: 60px 0; text-align: center; }
.final-cta h2 { max-width: 720px; margin: 0 auto; }
.final-cta p { margin-top: 12px; color: var(--rmpd-muted); }
.final-cta .final-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 26px; }

/* footer */
.landing-footer { padding: 48px 0 calc(28px + env(safe-area-inset-bottom)); background: var(--rmpd-navy); color: rgb(255 255 255 / 72%); }
.landing-footer .footer-top { display: grid; gap: 32px; }
.landing-footer .footer-brand img { width: 150px; margin-bottom: 12px; }
.landing-footer .footer-brand p { max-width: 320px; font-size: 13px; color: rgb(255 255 255 / 55%); }
.landing-footer h4 { margin-bottom: 12px; color: #fff; font-size: 13px; font-weight: 700; letter-spacing: .03em; }
.landing-footer .footer-col ul { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; }
.landing-footer .footer-col a { font-size: 13px; text-decoration: none; color: rgb(255 255 255 / 72%); }
.landing-footer .footer-col a:hover { color: #fff; }
.landing-footer .footer-contacts { display: grid; gap: 9px; font-size: 13px; }
.landing-footer .footer-bottom { display: flex; flex-direction: column; gap: 10px; margin-top: 40px; padding-top: 20px; border-top: 1px solid rgb(255 255 255 / 12%); font-size: 12px; color: rgb(255 255 255 / 45%); }

/* reveal animation */
.landing [data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .5s ease; }
.landing [data-reveal].is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .landing [data-reveal] { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ≥768px */
@media (min-width: 768px) {
  .landing .container { padding: 0 32px; }
  .landing section { padding: 84px 0; }
  .trust-strip .trust-items { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .compare-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
  .data-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .features-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pricing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .landing-footer .footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ≥1024px */
@media (min-width: 1024px) {
  .landing-nav { display: flex; align-items: center; gap: 28px; }
  .landing-nav a { padding: 8px 2px; color: var(--rmpd-text); font-size: 14px; font-weight: 600; text-decoration: none; }
  .landing-nav a:hover { color: var(--rmpd-blue-dark); }
  .landing-header .header-cta { display: flex; }
  .landing-burger, .landing-mobile-menu { display: none !important; }

  .landing-hero .container { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 56px; }
  .landing-hero .hero-checks ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .feature-split { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature-split.reverse .feature-copy { order: 2; }
  .timeline-demo { grid-template-columns: minmax(0, 5fr) minmax(0, 5fr); }
  .steps-grid { position: relative; }
  .steps-grid::before { position: absolute; top: 44px; right: 16%; left: 16%; height: 2px; background: repeating-linear-gradient(90deg, var(--rmpd-border) 0 10px, transparent 10px 18px); content: ''; }

  .mobile-feature { grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); }
  .features-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .pricing-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .landing-footer .footer-top { grid-template-columns: 1.6fr repeat(4, minmax(0, 1fr)); gap: 24px; }
}

@media (min-width: 1280px) {
  .landing .container { padding: 0 40px; }
}
