/* Rana Maps public site: home (business), /app (personal), /pricing. Legal pages keep site.css. */
@font-face { font-family: "Plus Jakarta Sans"; font-weight: 400; font-display: swap; src: url("/fonts/plus-jakarta-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-weight: 500; font-display: swap; src: url("/fonts/plus-jakarta-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-weight: 600; font-display: swap; src: url("/fonts/plus-jakarta-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-weight: 700; font-display: swap; src: url("/fonts/plus-jakarta-sans-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-weight: 800; font-display: swap; src: url("/fonts/plus-jakarta-sans-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-weight: 400 800; font-display: swap; src: url("/fonts/plus-jakarta-sans-latin-ext-400-normal.woff2") format("woff2"); unicode-range: U+0100-024F, U+1E00-1EFF, U+0300-036F; }
@font-face { font-family: "JetBrains Mono"; font-weight: 400; font-display: swap; src: url("/fonts/jetbrains-mono-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-weight: 600; font-display: swap; src: url("/fonts/jetbrains-mono-latin-600-normal.woff2") format("woff2"); }

:root {
  --ink: #14120f;
  --ink-2: #2a261f;
  --muted: #5e574c;
  --soft: #8b8275;
  --paper: #faf8f3;
  --paper-2: #f2eee4;
  --card: #ffffff;
  --line: #e6e0d3;
  --line-2: #d6cebd;
  --gold: #eca824;
  --gold-2: #f5b82e;
  --gold-ink: #7d5000;
  --gold-wash: #fbf0d6;
  --blue: #0b5fa5;
  --green: #1d7c3f;
  --red: #c4373f;
  --night: #14120f;
  --night-2: #1d1a16;
  --night-line: #34302a;
  --night-text: #f4efe4;
  --night-muted: #b9b09c;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 1px 2px rgba(20, 18, 15, .06), 0 8px 24px rgba(20, 18, 15, .08);
  --shadow-lg: 0 2px 6px rgba(20, 18, 15, .08), 0 24px 60px rgba(20, 18, 15, .16);
  --max: 1200px;
  --sans: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: var(--paper); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; text-decoration: none; font-weight: 700; }
.skip-link:focus { top: 12px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- type ---------- */
h1, h2, h3, h4 { margin: 0; letter-spacing: -0.025em; line-height: 1.1; font-weight: 800; }
.display { font-size: clamp(40px, 5.6vw, 72px); line-height: 1.02; letter-spacing: -0.04em; }
.h2 { font-size: clamp(30px, 3.6vw, 46px); }
.h3 { font-size: 22px; letter-spacing: -0.015em; line-height: 1.25; }
.lede { font-size: clamp(18px, 1.5vw, 20px); color: var(--muted); line-height: 1.6; max-width: 36em; margin: 20px 0 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 16px; font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-ink); }
.eyebrow::before { content: ""; width: 18px; height: 2px; background: var(--gold); border-radius: 2px; }
.dark .eyebrow { color: var(--gold); }
.muted { color: var(--muted); }
.small { font-size: 14px; }
code, .mono { font-family: var(--mono); font-size: .9em; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: 999px; font: 700 16px/1 var(--sans); text-decoration: none; border: 1.5px solid transparent; cursor: pointer; transition: transform .15s ease, background .15s ease, border-color .15s ease, box-shadow .15s ease; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: #000; box-shadow: var(--shadow); }
.btn-gold { background: var(--gold-2); color: #181510; }
.btn-gold:hover { background: #ffc43b; box-shadow: 0 8px 24px rgba(236, 168, 36, .35); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--ink); }
.dark .btn-ghost { color: var(--night-text); border-color: #4a443a; }
.dark .btn-ghost:hover { border-color: var(--night-text); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 15px; }
.btn-lg { min-height: 56px; padding: 0 28px; font-size: 17px; }
.btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; transform: none; }
.link-arrow { font-weight: 700; text-decoration: none; display: inline-flex; gap: 6px; align-items: center; }
.link-arrow::after { content: "→"; transition: transform .15s ease; }
.link-arrow:hover::after { transform: translateX(3px); }

/* ---------- badges ---------- */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: .02em; border: 1px solid var(--line-2); background: var(--card); color: var(--muted); }
.badge-beta { background: #e8f1fa; border-color: #c6dbef; color: #0b4f8a; }
.badge-alpha { background: #fdf0e3; border-color: #f2d3ae; color: #8a4b00; }
.badge-live { background: #e7f4ec; border-color: #c2e2cd; color: #17643a; }
.badge-live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #1f9d55; box-shadow: 0 0 0 3px rgba(31, 157, 85, .18); }
.badge-soon { background: var(--paper-2); }

/* ---------- top bar + header ---------- */
.topbar { background: var(--night); color: var(--night-muted); font-size: 14px; }
.topbar .wrap { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 40px; text-align: center; flex-wrap: wrap; padding-top: 6px; padding-bottom: 6px; }
.topbar strong { color: var(--gold); font-weight: 700; }
.topbar a { color: var(--night-text); font-weight: 600; }
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(250, 248, 243, .86); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s ease; }
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 19px; letter-spacing: -0.02em; color: var(--ink); min-height: 44px; }
.brand svg { width: 34px; height: 34px; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: 8px; }
.nav a { padding: 8px 12px; border-radius: 10px; text-decoration: none; font-weight: 600; font-size: 15px; color: var(--ink-2); }
.nav a:hover, .nav a[aria-current="page"] { background: var(--paper-2); }
.header-end { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.audience { display: inline-flex; padding: 3px; gap: 2px; background: var(--paper-2); border: 1px solid var(--line); border-radius: 999px; }
.audience a { padding: 6px 12px; border-radius: 999px; text-decoration: none; font-size: 13px; font-weight: 700; color: var(--muted); }
.audience a[aria-current="page"] { background: var(--card); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .1); }
.signin { font-weight: 700; font-size: 15px; text-decoration: none; padding: 8px 10px; }
.menu-btn { display: none; margin-left: auto; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--card); cursor: pointer; }
.menu-btn svg { margin: auto; }
@media (max-width: 1080px) {
  .nav, .header-end .signin, .header-end .audience { display: none; }
  .menu-btn { display: block; }
  .header-end { margin-left: 0; }
  .site-header.is-open .mobile-menu { display: block; }
}
.mobile-menu { display: none; border-top: 1px solid var(--line); background: var(--paper); padding: 12px 24px 24px; }
.mobile-menu a { display: block; padding: 12px 4px; font-weight: 700; text-decoration: none; border-bottom: 1px solid var(--line); }
.mobile-menu .audience { margin: 16px 0 0; }
.mobile-menu .audience a { border: 0; display: inline-block; padding: 8px 14px; }
@media (max-width: 560px) { .header-end .btn { display: none; } }

/* ---------- sections ---------- */
.section { padding: 112px 0; }
.section-sm { padding: 72px 0; }
.section-head { max-width: 760px; }
.section-head.center { margin: 0 auto; text-align: center; }
.section-head.center .lede { margin-left: auto; margin-right: auto; }
.alt { background: var(--paper-2); }
.dark { background: var(--night); color: var(--night-text); }
.dark .lede, .dark .muted { color: var(--night-muted); }
.grid { display: grid; gap: 20px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 980px) { .g3, .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } .section { padding: 80px 0; } }
.mt-48 { margin-top: 48px; } .mt-32 { margin-top: 32px; } .mt-24 { margin-top: 24px; } .mt-16 { margin-top: 16px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* ---------- hero ---------- */
.hero { padding: 64px 0 96px; position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(900px 500px at 85% 10%, rgba(236, 168, 36, .14), transparent 60%), radial-gradient(700px 400px at 0% 100%, rgba(11, 95, 165, .06), transparent 60%); pointer-events: none; }
.hero .wrap { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 56px; align-items: center; }
@media (max-width: 980px) { .hero .wrap { grid-template-columns: 1fr; } }
.chips { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 28px; padding: 0; list-style: none; font-size: 14px; color: var(--muted); font-weight: 600; }
.chips li { display: inline-flex; align-items: center; gap: 8px; }
.chips li::before { content: ""; width: 16px; height: 16px; border-radius: 50%; background: var(--gold-wash) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.9' fill='none' stroke='%237d5000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat; }

/* the map stage: a real render with product cards floating over it */
.stage { position: relative; }
.stage-frame { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid var(--line); background: #efe9dd; aspect-ratio: 3 / 2; }
.stage-frame img, .stage-frame .live-map { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.stage-bar { position: absolute; top: 0; left: 0; right: 0; height: 40px; display: flex; align-items: center; gap: 6px; padding: 0 14px; background: rgba(255, 255, 255, .9); border-bottom: 1px solid var(--line); z-index: 2; font: 500 12px var(--mono); color: var(--soft); }
.stage-bar i { width: 10px; height: 10px; border-radius: 50%; background: #e2dccf; display: inline-block; }
.stage-bar span { margin-left: 10px; }
.float { position: absolute; z-index: 3; background: var(--card); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg); }
.route-card { left: -28px; bottom: 36px; width: 290px; padding: 16px 18px; }
.route-card .r-top { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; color: var(--muted); }
.route-card .r-dots { display: grid; gap: 6px; margin-top: 10px; font-size: 15px; font-weight: 700; }
.route-card .r-dots span { display: flex; align-items: center; gap: 10px; }
.dot { width: 18px; height: 18px; border-radius: 50%; display: inline-grid; place-items: center; font-size: 10px; font-weight: 800; color: #fff; flex: none; box-shadow: 0 0 0 2px #fff, 0 1px 3px rgba(0,0,0,.3); }
.dot-a { background: var(--blue); } .dot-b { background: var(--green); }
.route-card .r-stats { display: flex; gap: 18px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.route-card .r-stats b { display: block; font-size: 22px; letter-spacing: -.02em; }
.route-card .r-stats small { color: var(--muted); font-size: 12px; font-weight: 600; }
.modes { display: flex; gap: 6px; margin-top: 12px; flex-wrap: wrap; }
.mode { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--paper-2); color: var(--muted); }
.mode.on { background: var(--ink); color: #fff; }
.code-card { right: -24px; top: 64px; width: 300px; padding: 14px 16px; background: #15130f; border-color: #2c2821; color: #e9e2d2; font: 12.5px/1.65 var(--mono); }
.code-card .c-head { display: flex; justify-content: space-between; color: #9b917f; font-size: 11.5px; margin-bottom: 6px; }
.code-card .ok { color: #7fd29b; }
.k { color: #f2c46d; } .s { color: #9fd0a6; } .n { color: #8fc1f0; } .c { color: #7d7466; }
@media (max-width: 1240px) { .route-card { left: 12px; } .code-card { right: 12px; } }
@media (max-width: 640px) { .code-card { display: none; } .route-card { position: relative; left: auto; bottom: auto; width: auto; margin: -40px 12px 0; } }
.stage-caption { margin: 14px 4px 0; font-size: 13px; color: var(--soft); }

/* ---------- proof bar ---------- */
.proof { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--card); }
.proof .wrap { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.proof .stat { padding: 28px 20px; border-left: 1px solid var(--line); }
.proof .stat:first-child { border-left: 0; }
.proof b { display: block; font-size: 30px; letter-spacing: -.03em; line-height: 1.1; }
.proof span { display: block; margin-top: 6px; font-size: 14px; color: var(--muted); line-height: 1.4; }
@media (max-width: 980px) { .proof .wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); } .proof .stat { border-left: 0; border-top: 1px solid var(--line); } }

/* ---------- cards ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; position: relative; }
.card p { color: var(--muted); margin: 10px 0 0; font-size: 16px; }
.card-link { text-decoration: none; display: block; transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease; }
.card-link:hover { border-color: var(--line-2); box-shadow: var(--shadow); transform: translateY(-2px); }
.card .top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--gold-wash); color: var(--gold-ink); flex: none; }
.icon svg { width: 22px; height: 22px; }
.card .more { margin-top: 18px; font-size: 15px; color: var(--ink); }
.dark .card { background: var(--night-2); border-color: var(--night-line); }
.dark .card p { color: var(--night-muted); }
.dark .icon { background: #2b261c; color: var(--gold); }

/* feature with illustration */
.feature { display: grid; grid-template-rows: auto 1fr; overflow: hidden; padding: 0; }
.feature .art { aspect-ratio: 16 / 10; background: var(--paper-2); border-bottom: 1px solid var(--line); position: relative; overflow: hidden; }
.feature .art svg, .feature .art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.feature .body { padding: 24px 26px 28px; }
.feature .tag { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-ink); }

/* ---------- developer section ---------- */
.dev .wrap { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 56px; align-items: start; }
@media (max-width: 980px) { .dev .wrap { grid-template-columns: 1fr; } }
.ticks { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.ticks li { display: grid; grid-template-columns: 24px 1fr; gap: 12px; font-size: 16px; color: var(--night-muted); }
.ticks li b { color: var(--night-text); font-weight: 700; }
.ticks li::before { content: ""; width: 22px; height: 22px; margin-top: 2px; border-radius: 7px; background: #2b261c url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.9' fill='none' stroke='%23eca824' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat; }
.alt .ticks li, .ticks.light li { color: var(--muted); }
.alt .ticks li b, .ticks.light li b { color: var(--ink); }
.ticks.light li::before { background-color: var(--gold-wash); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.9' fill='none' stroke='%237d5000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.code { border-radius: var(--radius-lg); background: #0f0e0b; border: 1px solid var(--night-line); overflow: hidden; box-shadow: 0 30px 80px rgba(0, 0, 0, .35); }
.code-tabs { display: flex; gap: 2px; padding: 8px; border-bottom: 1px solid var(--night-line); background: #17150f; overflow-x: auto; }
.code-tabs button { font: 600 13px var(--sans); color: var(--night-muted); background: transparent; border: 0; padding: 8px 14px; border-radius: 9px; cursor: pointer; white-space: nowrap; }
.code-tabs button[aria-selected="true"] { background: #2a261e; color: var(--night-text); }
.code pre { margin: 0; padding: 22px 24px; overflow-x: auto; font: 13.5px/1.75 var(--mono); color: #e9e2d2; }
.code .panel-note { padding: 0 24px 18px; font-size: 13px; color: var(--night-muted); }
.code [role="tabpanel"][hidden] { display: none; }

/* ---------- map showcase ---------- */
.showcase-frame { position: relative; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-lg); aspect-ratio: 16 / 9; background: #e9e3d6; }
.showcase-frame img, .showcase-frame .live-map { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.showcase-frame .live-map { z-index: 1; }
.showcase-tools { position: absolute; z-index: 2; top: 16px; left: 16px; display: flex; gap: 8px; flex-wrap: wrap; }
.seg { display: inline-flex; padding: 4px; gap: 2px; background: rgba(255, 255, 255, .95); border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shadow); }
.seg button { font: 700 13px var(--sans); border: 0; background: transparent; padding: 8px 14px; border-radius: 999px; cursor: pointer; color: var(--muted); }
.seg button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.live-note { position: absolute; z-index: 2; right: 16px; top: 16px; background: rgba(255, 255, 255, .95); border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; font-size: 13px; font-weight: 700; box-shadow: var(--shadow); }
.attrib { font-size: 13px; color: var(--soft); margin: 12px 4px 0; }

/* ---------- phones ---------- */
.phones { display: flex; justify-content: center; gap: 28px; align-items: flex-end; }
.phone { position: relative; width: 260px; aspect-ratio: 9 / 19; border-radius: 42px; padding: 10px; background: #0e0d0b; box-shadow: var(--shadow-lg); flex: none; }
.phone .screen { position: relative; width: 100%; height: 100%; border-radius: 33px; overflow: hidden; background: #ece6da; }
.phone .screen img { width: 100%; height: 100%; object-fit: cover; }
.phone .notch { position: absolute; top: 18px; left: 50%; width: 84px; height: 22px; margin-left: -42px; background: #0e0d0b; border-radius: 999px; z-index: 3; }
.phone.tilt { transform: translateY(-28px); }
.ui-banner { position: absolute; left: 10px; right: 10px; top: 46px; z-index: 2; border-radius: 16px; background: var(--gold-2); color: #181510; padding: 12px 14px; box-shadow: 0 6px 18px rgba(0, 0, 0, .2); }
.ui-banner b { display: block; font-size: 20px; letter-spacing: -.02em; line-height: 1.1; }
.ui-banner span { font-size: 13px; font-weight: 600; }
.ui-sheet { position: absolute; left: 10px; right: 10px; bottom: 12px; z-index: 2; border-radius: 18px; background: #fff; padding: 12px 14px; box-shadow: 0 6px 18px rgba(0, 0, 0, .18); font-size: 13px; color: var(--muted); }
.ui-sheet b { color: var(--ink); font-size: 16px; display: block; }
.night .ui-sheet { background: #26221c; color: #b9b09c; } .night .ui-sheet b { color: #f4efe4; }
@media (max-width: 640px) { .phone { width: 200px; } .phone.tilt { display: none; } }

/* ---------- pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 1080px) { .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .plans { grid-template-columns: 1fr; } }
.plan { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px 24px; }
.plan.featured { border: 2px solid var(--ink); box-shadow: var(--shadow-lg); position: relative; }
.plan.featured::before { content: "Most teams start here"; position: absolute; top: -13px; left: 24px; background: var(--ink); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 999px; }
.plan h3 { font-size: 20px; }
.plan .price { margin-top: 14px; font-size: 30px; white-space: nowrap; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.plan .price small { font-size: 14px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.plan .for { color: var(--muted); font-size: 15px; margin: 10px 0 0; min-height: 3em; }
.plan ul { list-style: none; margin: 20px 0 24px; padding: 20px 0 0; border-top: 1px solid var(--line); display: grid; gap: 10px; font-size: 15px; }
.plan li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; }
.plan li::before { content: "✓"; color: var(--green); font-weight: 800; }
.plan .btn { margin-top: auto; }
.free-band { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; justify-content: space-between; padding: 22px 28px; border-radius: var(--radius-lg); background: var(--gold-wash); border: 1px solid #f0dca8; }
.free-band b { font-size: 20px; letter-spacing: -.01em; }
.free-band p { margin: 4px 0 0; color: #5e4a1c; font-size: 15px; }
table.prices { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; font-size: 16px; }
table.prices th, table.prices td { text-align: left; padding: 16px 20px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.prices thead th { background: var(--paper-2); font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
table.prices td.num, table.prices th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
table.prices tr:last-child td { border-bottom: 0; }
table.prices td small { display: block; color: var(--muted); font-size: 13px; }
.table-scroll { overflow-x: auto; border-radius: var(--radius-lg); }

/* calculator */
.calc { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
@media (max-width: 860px) { .calc { grid-template-columns: 1fr; } }
.calc-in { padding: 28px; display: grid; gap: 22px; }
.calc-row label { display: flex; justify-content: space-between; font-weight: 700; font-size: 15px; }
.calc-row label output { font-family: var(--mono); font-weight: 600; color: var(--gold-ink); }
.calc-row input[type="range"] { width: 100%; margin-top: 10px; accent-color: var(--ink); }
.calc-row small { color: var(--soft); font-size: 13px; }
.calc-out { padding: 28px; background: var(--night); color: var(--night-text); display: flex; flex-direction: column; justify-content: center; }
.calc-out .big { font-size: 46px; font-weight: 800; letter-spacing: -.04em; line-height: 1; margin-top: 8px; font-variant-numeric: tabular-nums; }
.calc-out p { color: var(--night-muted); font-size: 14px; margin: 12px 0 0; }
.calc-out .best { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--night-line); font-size: 15px; }
.calc-out .best b { color: var(--gold); }

/* ---------- status ---------- */
.status { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 860px) { .status { grid-template-columns: 1fr; } }
.status .col { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; }
.status .col h3 { font-size: 17px; display: flex; align-items: center; gap: 10px; }
.status ul { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 10px; font-size: 15px; color: var(--muted); }
.status li b { color: var(--ink); font-weight: 700; }

/* ---------- faq ---------- */
.faq { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 56px; }
@media (max-width: 860px) { .faq { grid-template-columns: 1fr; gap: 24px; } }
.faq details { border-bottom: 1px solid var(--line); padding: 20px 0; }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 700; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 24px; line-height: 1; color: var(--soft); transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); margin: 12px 0 0; max-width: 42em; }

/* ---------- cta ---------- */
.cta { border-radius: 28px; background: var(--night); color: var(--night-text); padding: 72px 56px; position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: 32px; align-items: center; }
.cta::after { content: ""; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(236, 168, 36, .35), transparent 65%); }
.cta > * { position: relative; z-index: 1; }
.cta .lede { color: var(--night-muted); }
@media (max-width: 860px) { .cta { grid-template-columns: 1fr; padding: 48px 28px; } }

/* ---------- steps ---------- */
.steps { counter-reset: step; }
.steps .card::before { counter-increment: step; content: counter(step, decimal-leading-zero); display: block; font: 600 13px var(--mono); color: var(--gold-ink); margin-bottom: 14px; }
.dark .steps .card::before { color: var(--gold); }

/* ---------- footer ---------- */
.site-footer { background: var(--night); color: var(--night-muted); padding: 72px 0 40px; font-size: 15px; }
.site-footer .cols { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 32px; }
@media (max-width: 860px) { .site-footer .cols { grid-template-columns: repeat(2, 1fr); } }
.site-footer h2 { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--night-text); margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer a { text-decoration: none; color: var(--night-muted); }
.site-footer a:hover { color: var(--night-text); }
.site-footer .brand { color: var(--night-text); }
.site-footer .base { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--night-line); display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; font-size: 14px; }

/* ---------- reveal on scroll (only when JS is on) ---------- */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }

@media (max-width: 640px) { .topbar .wrap > span { display: none; } }

/* ---------- Rana Kit icons (drawn for Rana: 24 grid, 2px stroke, gold sunrise accent) ---------- */
.icon svg .a { stroke: var(--gold); }
.icon-kit { background: var(--paper); border: 1px solid var(--line); color: var(--ink); }
.icon-kit svg .a { stroke: #d99410; }
.icon-scene { width: 52px; height: 52px; border-radius: 15px; background: #211e18; color: #faf6f0; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .04); }
.icon-scene svg { width: 26px; height: 26px; }
.icon-scene svg .a { stroke: var(--gold); }
.dark .icon-kit { background: #2b261c; border-color: var(--night-line); color: var(--night-text); }

/* ---------- Rana Studio section ---------- */
.studio-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.studio-shot { padding: 0; overflow: hidden; }
@media (max-width: 900px) { .studio-grid { grid-template-columns: 1fr; gap: 36px; } }
@media (max-width: 480px) { .studio-shot .grid.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px !important; } .studio-shot .grid.g3 > div { padding: 10px !important; } .studio-shot .grid.g3 b { font-size: 16px !important; } }

/* ---------- Can my business use Rana today? ---------- */
.biz-head { max-width: 46em; padding-top: 40px; border-top: 1px solid var(--line); }
.biz-head .h3 { font-size: clamp(22px, 2.4vw, 28px); }
.biz-head p { color: var(--muted); margin: 10px 0 0; line-height: 1.9; }
.biz-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 980px) { .biz-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .biz-grid { grid-template-columns: 1fr; } }
.biz { display: grid; grid-template-columns: 52px 1fr; gap: 16px; padding: 22px; align-items: start; }
.biz h4 { margin: 2px 0 0; font-size: 17px; font-weight: 700; color: var(--ink); }
.biz p { font-size: 15px; margin: 6px 0 0; }
.biz p.biz-note { font-size: 13px; color: var(--soft); margin-top: 6px; }
.biz .ready { margin-top: 12px; }
.ready { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; vertical-align: middle; }
.ready::before { content: ""; width: 7px; height: 7px; border-radius: 50%; }
.ready-now { background: #e7f4ec; color: #17643a; }
.ready-now::before { background: #1f9d55; }
.ready-early { background: var(--gold-wash); color: var(--gold-ink); }
.ready-early::before { background: var(--gold); }
.biz-foot { margin: 20px 0 0; color: var(--muted); font-size: 15px; }
.biz-foot a { color: var(--ink); font-weight: 600; }

/* ---------- white button on dark panels ---------- */
.btn-white { background: #fff; color: var(--ink); border-color: #fff; }
.btn-white:hover { background: var(--paper); border-color: var(--paper); }
.cta-actions { margin-top: 0; justify-content: flex-end; }
@media (max-width: 860px) { .cta-actions { justify-content: flex-start; } }

/* =====================================================================
   Landing page kit (lp-*): visual blocks for search landing pages.
   Short text, icons, tables and illustrations. Reference: web/LANDING-KIT.md
   ===================================================================== */
.lp-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--card); overflow: hidden; }
.lp-stats > div { padding: 22px 24px; border-left: 1px solid var(--line); }
.lp-stats > div:first-child { border-left: 0; }
.lp-stats b { display: block; font-size: clamp(24px, 2.6vw, 34px); font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.lp-stats span { display: block; margin-top: 6px; font-size: 14px; color: var(--muted); }
@media (max-width: 860px) { .lp-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .lp-stats > div:nth-child(3) { border-left: 0; } .lp-stats > div:nth-child(n+3) { border-top: 1px solid var(--line); } }

.lp-features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.lp-features.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.lp-features.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 980px) { .lp-features, .lp-features.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .lp-features, .lp-features.cols-2, .lp-features.cols-4 { grid-template-columns: 1fr; } }
.lp-feature { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px; }
.lp-feature h3 { margin: 16px 0 0; font-size: 18px; font-weight: 700; letter-spacing: -.01em; }
.lp-feature p { margin: 6px 0 0; font-size: 15px; color: var(--muted); }
.alt .lp-feature, .alt .lp-table-wrap, .alt .lp-stats { background: var(--card); }

.lp-table-wrap { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--card); overflow-x: auto; }
.lp-table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 560px; }
.lp-table th { text-align: left; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--soft); padding: 14px 18px; background: var(--paper); border-bottom: 1px solid var(--line); }
.lp-table td { padding: 14px 18px; border-bottom: 1px solid var(--line); color: var(--muted); vertical-align: middle; }
.lp-table tr:last-child td { border-bottom: 0; }
.lp-table td:first-child { color: var(--ink); font-weight: 700; }
.lp-table .with-icon { display: flex; align-items: center; gap: 12px; }
.lp-table .with-icon svg { width: 22px; height: 22px; flex: none; color: var(--ink); }
.lp-table .with-icon svg .a { stroke: #d99410; }
.yes, .no, .part { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 13px; white-space: nowrap; }
.yes { color: #17643a; } .no { color: var(--soft); } .part { color: var(--gold-ink); }
.yes::before { content: ""; width: 16px; height: 16px; border-radius: 50%; background: #1f9d55 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2 7 10.6l4.5-5' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat; }
.no::before { content: ""; width: 16px; height: 16px; border-radius: 50%; background: var(--paper-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M5.5 5.5l5 5M10.5 5.5l-5 5' fill='none' stroke='%238b8275' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center/16px no-repeat; }
.part::before { content: ""; width: 16px; height: 16px; border-radius: 50%; background: var(--gold-wash) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8h7' fill='none' stroke='%237d5000' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center/16px no-repeat; }

.lp-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; counter-reset: step; }
.lp-steps.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 860px) { .lp-steps, .lp-steps.cols-4 { grid-template-columns: 1fr; } }
.lp-step { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px 22px 22px 74px; min-height: 88px; }
.lp-step::before { counter-increment: step; content: counter(step); position: absolute; left: 22px; top: 22px; width: 36px; height: 36px; border-radius: 11px; background: #211e18; color: var(--gold); display: grid; place-items: center; font-weight: 800; font-size: 16px; }
.lp-step h3 { margin: 0; font-size: 17px; font-weight: 700; }
.lp-step p { margin: 4px 0 0; font-size: 15px; color: var(--muted); }

.lp-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 56px; align-items: center; }
.lp-split.flip > :first-child { order: 2; }
@media (max-width: 900px) { .lp-split { grid-template-columns: 1fr; gap: 32px; } .lp-split.flip > :first-child { order: 0; } }
.lp-art { border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--card); overflow: hidden; box-shadow: var(--shadow); }
.lp-art img { display: block; width: 100%; height: auto; }
.lp-art figcaption { padding: 12px 18px; font-size: 13px; color: var(--soft); border-top: 1px solid var(--line); }
.lp-points { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; }
.lp-points li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; font-size: 16px; color: var(--muted); }
.lp-points li b { color: var(--ink); }
.lp-points .icon { width: 40px; height: 40px; border-radius: 12px; }
.lp-points .icon svg { width: 20px; height: 20px; }

.lp-modes { display: flex; flex-wrap: wrap; gap: 10px; }
.lp-mode { display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px 10px 10px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-weight: 700; font-size: 15px; }
.lp-mode .dot { width: 34px; height: 34px; border-radius: 50%; background: #211e18; color: #faf6f0; display: grid; place-items: center; }
.lp-mode .dot svg { width: 18px; height: 18px; }
.lp-mode .dot svg .a { stroke: var(--gold); }

.lp-now { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 760px) { .lp-now { grid-template-columns: 1fr; } }
.lp-now > div { border-radius: var(--radius-lg); padding: 24px; border: 1px solid var(--line); background: var(--card); }
.lp-now > div.next { background: var(--paper-2); }
.lp-now h3 { margin: 0 0 14px; font-size: 15px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--soft); }
.lp-now ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.lp-now li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: var(--muted); }
.lp-now li b { color: var(--ink); }
.lp-now li::before { content: ""; flex: none; margin-top: 3px; width: 16px; height: 16px; border-radius: 50%; }
.lp-now > div:not(.next) li::before { background: #1f9d55 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2 7 10.6l4.5-5' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat; }
.lp-now > div.next li::before { background: var(--card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='3' fill='%23eca824'/%3E%3C/svg%3E") center/16px no-repeat; border: 1px solid var(--line-2); }

.lp-prices { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.lp-price { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px; }
.lp-price small { display: block; font-size: 13px; font-weight: 700; color: var(--soft); text-transform: uppercase; letter-spacing: .06em; }
.lp-price b { display: block; margin-top: 10px; font-size: 28px; font-weight: 800; letter-spacing: -.02em; }
.lp-price span { display: block; margin-top: 2px; font-size: 14px; color: var(--muted); }
.lp-price .free { display: inline-block; margin-top: 14px; padding: 3px 10px; border-radius: 999px; background: #e7f4ec; color: #17643a; font-size: 12px; font-weight: 700; }

.lp-code { background: #15130f; color: #e9e2d2; border-radius: var(--radius-lg); padding: 20px 22px; font: 13px/1.7 var(--mono); overflow-x: auto; border: 1px solid #2c2821; }
.lp-code .c { color: #9b917f; } .lp-code .k { color: #f5b82e; } .lp-code .s { color: #9fd3a8; } .lp-code .n { color: #8fc1ec; }
.lp-code pre { margin: 0; }
