/* ============ RubyNav app landing pages (app.rubynav.app / partner.rubynav.app) ============
   App-first marketing layout. Self-hosted: system fonts only, no third-party assets.
   Brand tokens live on body.lp-user (RubyNav) and body.lp-partner (RubyNav Partner). */
:root {
  --ink: #1B0B1E;
  --ink-2: #2A0F2A;
  --primary: #E0115F;
  --primary-ink: #B00D4C;
  --tint: #FCE4EC;
  --accent: #FF5E7E;
  --hi: #FFB454;            /* highlight — used sparingly */
  --paper: #FBF7F4;
  --cream: #F4ECE6;
  --white: #FFFFFF;
  --text: #1B0B1E;
  --muted: #6B5A6E;
  --line: rgba(27, 11, 30, 0.10);
  --band: linear-gradient(135deg, #1B0B1E 0%, #3A0C2A 55%, #6E0A36 100%);
  --panel-a: #FDE7EE;
  --panel-b: #FFF1DD;
  --panel-c: #EEE6F7;
  --shadow: 0 30px 80px rgba(27, 11, 30, 0.18);
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
body.lp-partner {
  --ink: #071A1C;
  --ink-2: #0B2A2B;
  --primary: #0B8F7E;
  --primary-ink: #076B5F;
  --tint: #DDF6F1;
  --accent: #E0115F;
  --hi: #2FE6C8;
  --paper: #F6FAF8;
  --cream: #EAF2EE;
  --text: #071A1C;
  --muted: #4E6466;
  --line: rgba(7, 26, 28, 0.10);
  --band: linear-gradient(135deg, #071A1C 0%, #0A3532 55%, #0E5A50 100%);
  --panel-a: #DDF6F1;
  --panel-b: #FFF1DD;
  --panel-c: #FDE7EE;
  --shadow: 0 30px 80px rgba(7, 26, 28, 0.18);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { font-family: var(--sans); background: var(--paper); color: var(--text); line-height: 1.6; font-size: 17px; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
ul { list-style: none; }
h1, h2, h3 { line-height: 1.04; letter-spacing: -0.03em; font-weight: 850; }
h2 { font-size: clamp(34px, 4.6vw, 56px); }
h3 { font-size: clamp(24px, 2.6vw, 32px); letter-spacing: -0.02em; line-height: 1.12; }
em.acc { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--primary); letter-spacing: -0.01em; }
.dark em.acc { color: var(--hi); }
.wrap { width: min(1180px, 100% - 32px); margin: 0 auto; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 12.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--primary); margin-bottom: 16px; }
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }
.dark .eyebrow { color: var(--hi); }
.lead { font-size: clamp(17px, 1.5vw, 19.5px); color: var(--muted); max-width: 60ch; }
.dark .lead { color: rgba(255,255,255,.78); }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 999px; z-index: 100; }
.skip:focus { left: 12px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 8px; }

/* ---------- brand switcher (top strip) ---------- */
.switcher { background: var(--ink); color: rgba(255,255,255,.75); font-size: 13px; }
.switcher .wrap { display: flex; gap: 6px; align-items: center; justify-content: center; min-height: 36px; flex-wrap: wrap; padding: 4px 0; }
.switcher a { text-decoration: none; padding: 3px 12px; border-radius: 999px; font-weight: 600; }
.switcher a:hover { color: #fff; }
.switcher a.sw-user { color: #FF8FA8; }
.switcher a.sw-partner { color: #6FF0DA; }
.switcher a[aria-current="page"] { background: rgba(255,255,255,.12); color: #fff; }

/* ---------- header ---------- */
.lp-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--paper) 86%, transparent); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.lp-header.scrolled { border-bottom-color: var(--line); }
.lp-header .wrap { display: flex; align-items: center; gap: 24px; min-height: 70px; }
.lp-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 19px; letter-spacing: -0.02em; }
.lp-brand img { width: 38px; height: 38px; border-radius: 10px; box-shadow: 0 6px 16px rgba(0,0,0,.18); }
.lp-brand small { display: block; font-size: 11.5px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.lp-nav { margin-left: auto; display: flex; gap: 4px; }
.lp-nav a { text-decoration: none; font-weight: 600; font-size: 15px; padding: 8px 12px; border-radius: 999px; color: var(--muted); }
.lp-nav a:hover { color: var(--text); background: var(--cream); }
.pill { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 700; font-size: 15px; padding: 11px 20px; border-radius: 999px; border: 0; cursor: pointer; font-family: inherit; }
.pill-dark { background: var(--ink); color: #fff; }
.pill-dark:hover { background: var(--primary-ink); }
.pill-brand { background: var(--primary); color: #fff; }
.pill-brand:hover { background: var(--primary-ink); }
.pill-line { border: 1.5px solid var(--line); color: var(--text); background: var(--white); }
.lp-menu { display: none; margin-left: auto; width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--line); background: var(--white); cursor: pointer; }
.lp-menu span { display: block; width: 18px; height: 2px; background: var(--text); margin: 4px auto; border-radius: 2px; }

/* ---------- store buttons (custom — no official badge art) ---------- */
.stores { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.store { display: inline-flex; align-items: center; gap: 12px; min-width: 182px; padding: 10px 20px 10px 16px; border-radius: 999px; background: var(--ink); color: #fff; text-decoration: none; transition: transform .15s, background .15s; }
.store:hover { transform: translateY(-2px); background: var(--primary-ink); }
.store svg { width: 24px; height: 24px; flex: none; }
.store span { display: flex; flex-direction: column; line-height: 1.15; }
.store small { font-size: 11px; opacity: .78; font-weight: 500; }
.store strong { font-size: 16.5px; font-weight: 700; letter-spacing: -0.01em; }
.store.soon { background: transparent; color: var(--text); border: 1.5px solid var(--line); }
.store.soon:hover { background: var(--white); }
.dark .store { background: #fff; color: var(--ink); }
.dark .store:hover { background: var(--tint); }
.dark .store.soon { background: transparent; color: #fff; border-color: rgba(255,255,255,.45); }
.dark .store.soon:hover { background: rgba(255,255,255,.08); }
.note { margin-top: 14px; font-size: 13.5px; color: var(--muted); }
.dark .note { color: rgba(255,255,255,.62); }

/* ---------- phone frame ---------- */
.phone { position: relative; width: 270px; aspect-ratio: 9 / 18.6; background: #0d0a10; border-radius: 46px; padding: 11px; box-shadow: var(--shadow), inset 0 0 0 2px #2b2530; flex: none; }
.phone::before { content: ""; position: absolute; top: 20px; left: 50%; transform: translateX(-50%); width: 84px; height: 24px; background: #0d0a10; border-radius: 999px; z-index: 2; }
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 36px; background: #0B0612; padding-top: 40px; box-sizing: border-box; }

/* ---------- hero ---------- */
.hero { padding: 56px 0 72px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.08fr 1fr; gap: 40px; align-items: center; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); font-size: 13.5px; font-weight: 650; }
.chip i { width: 7px; height: 7px; border-radius: 50%; background: var(--primary); }
.hero h1 { font-size: clamp(44px, 5.6vw, 76px); line-height: .98; margin-bottom: 22px; }
.hero h1 .l1 { display: block; color: var(--primary); }
.hero-visual { position: relative; height: 600px; }
.hero-visual .phone { position: absolute; }
.hero-visual .ph-1 { left: 6%; top: 10px; z-index: 2; }
.hero-visual .ph-2 { right: 4%; top: 58px; transform: rotate(5deg); width: 250px; }
.callout { position: absolute; z-index: 3; background: var(--white); border-radius: 20px; padding: 12px 16px; box-shadow: 0 18px 44px rgba(0,0,0,.14); display: flex; gap: 10px; align-items: center; font-size: 14px; max-width: 240px; }
.callout b { display: block; font-size: 14.5px; }
.callout small { color: var(--muted); font-size: 12.5px; line-height: 1.35; display: block; }
.callout .dot { width: 34px; height: 34px; border-radius: 12px; background: var(--tint); color: var(--primary); display: grid; place-items: center; flex: none; }
.callout .dot svg { width: 18px; height: 18px; }
.callout.c1 { left: -2%; bottom: 96px; }
.callout.c2 { right: 0; top: 0; }

/* ---------- marquee strip ---------- */
.strip { background: var(--band); color: #fff; padding: 18px 0; overflow: hidden; }
.strip-track { display: flex; gap: 12px; width: max-content; animation: marquee 38s linear infinite; }
.strip-chip { white-space: nowrap; padding: 8px 18px; border-radius: 999px; border: 1px solid rgba(255,255,255,.22); font-weight: 600; font-size: 15px; }
.strip-chip:nth-child(4n+2) { color: var(--hi); border-color: color-mix(in srgb, var(--hi) 40%, transparent); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
.sec { padding: 104px 0; }
.sec.white { background: var(--white); }
.sec.cream { background: var(--cream); }
.sec-head { margin-bottom: 48px; }
.sec-head h2 { margin-bottom: 16px; }

/* gallery */
.gallery { display: flex; gap: 28px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 12px 16px 36px; margin: 0 -16px; scrollbar-width: thin; }
.gallery figure { scroll-snap-align: start; flex: none; width: 250px; }
.gallery .phone { width: 250px; box-shadow: 0 24px 56px rgba(0,0,0,.16), inset 0 0 0 2px #2b2530; }
.gallery figcaption { margin-top: 20px; }
.gallery figcaption b { display: block; font-size: 17px; letter-spacing: -0.01em; }
.gallery figcaption span { color: var(--muted); font-size: 14.5px; line-height: 1.45; display: block; margin-top: 4px; }

/* why cards */
.cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: 32px; padding: 32px; }
.sec.white .card { background: var(--paper); }
.card .tile { width: 52px; height: 52px; border-radius: 16px; background: var(--tint); color: var(--primary); display: grid; place-items: center; margin-bottom: 22px; }
.card .tile svg { width: 26px; height: 26px; }
.card h3 { font-size: 22px; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 16px; }

/* dark spotlight */
.dark { color: #fff; }
.spot { background: var(--band); border-radius: 40px; padding: 72px 64px; display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: center; overflow: hidden; }
.tag-new { display: inline-block; background: var(--hi); color: var(--ink); font-weight: 800; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; margin-bottom: 18px; }
.spot h2 { margin-bottom: 18px; }
.spot .phone { justify-self: center; transform: rotate(-3deg); }
.ticks { margin-top: 24px; display: grid; gap: 12px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; font-weight: 550; }
.ticks li::before { content: ""; flex: none; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%; background: var(--tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 13px no-repeat; }
.dark .ticks li::before { background-color: var(--hi); }
.ticks.cols2 { grid-template-columns: 1fr 1fr; gap: 12px 24px; }

/* feature rows */
.frow { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; margin-bottom: 96px; }
.frow:last-child { margin-bottom: 0; }
.frow.flip .fpanel { order: 2; }
.fpanel { border-radius: 40px; padding: 56px 0; display: grid; place-items: center; background: var(--panel-a); }
.frow:nth-child(2) .fpanel { background: var(--panel-b); }
.frow:nth-child(3) .fpanel { background: var(--panel-c); }
.fcopy h3 { font-size: clamp(30px, 3.4vw, 42px); margin-bottom: 16px; }

/* steps */
.steps3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: s; }
.step { background: var(--white); border: 1px solid var(--line); border-radius: 32px; padding: 32px; }
.step .num { font-family: var(--serif); font-style: italic; font-size: 44px; color: var(--primary); line-height: 1; display: block; margin-bottom: 18px; }
.step h3 { font-size: 21px; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 16px; }

/* numbers band */
.numbers { background: var(--band); color: #fff; padding: 80px 0; }
.numbers .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.numbers .n { font-family: var(--serif); font-size: clamp(46px, 5.6vw, 72px); color: var(--hi); line-height: 1; display: block; margin-bottom: 10px; }
.numbers p { color: rgba(255,255,255,.78); font-size: 15.5px; max-width: 22ch; }

/* pricing */
.price-wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; max-width: 980px; margin: 0 auto; }
.price { background: var(--white); border: 1px solid var(--line); border-radius: 36px; padding: 40px; box-shadow: 0 20px 60px rgba(0,0,0,.06); }
.price.main { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; }
.price .plan { font-weight: 800; font-size: 14px; text-transform: uppercase; letter-spacing: .12em; color: var(--primary); }
.price .amt { font-size: 56px; font-weight: 850; letter-spacing: -0.04em; line-height: 1; margin: 12px 0 6px; }
.price .amt small { font-size: 18px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.price .alt { color: var(--muted); font-size: 15px; }
.price .alt b { color: var(--text); }
.fine { margin-top: 20px; font-size: 12.5px; color: var(--muted); line-height: 1.55; }
.fine a { color: var(--primary); }

/* offers list (partner "everything you get") */
.offer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.offer { background: var(--white); border: 1px solid var(--line); border-radius: 28px; padding: 24px 26px; }
.offer h4 { font-size: 17px; letter-spacing: -0.01em; margin-bottom: 6px; display: flex; gap: 10px; align-items: center; }
.offer h4 i { width: 9px; height: 9px; border-radius: 50%; background: var(--primary); flex: none; }
.offer p { color: var(--muted); font-size: 15px; line-height: 1.5; }
.offer-group { font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 40px 0 16px; }
.offer-group:first-child { margin-top: 0; }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: 24px; margin-bottom: 12px; }
.faq summary { cursor: pointer; list-style: none; padding: 22px 26px; font-weight: 700; font-size: 18px; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 26px; line-height: 1; color: var(--primary); font-weight: 400; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .ans { padding: 0 26px 24px; color: var(--muted); }
.faq .ans a { color: var(--primary); }
.faq-more { text-align: center; margin-top: 28px; color: var(--muted); }
.faq-more a { color: var(--primary); font-weight: 700; }

/* sign-up form (partner) */
.signup { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: start; }
.form { background: var(--white); border: 1px solid var(--line); border-radius: 36px; padding: 36px; box-shadow: 0 20px 60px rgba(0,0,0,.06); }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label, .field legend { font-weight: 650; font-size: 14.5px; }
.field input[type=text], .field input[type=email], .field input[type=tel], .field select { font: inherit; font-size: 16px; padding: 13px 16px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--paper); color: var(--text); width: 100%; }
.field input:focus, .field select:focus { border-color: var(--primary); outline: none; box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 18%, transparent); }
fieldset.field { border: 0; }
.opts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.opt { position: relative; }
.opt input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.opt span { display: inline-block; padding: 9px 15px; border-radius: 999px; border: 1.5px solid var(--line); font-size: 14.5px; font-weight: 600; background: var(--paper); }
.opt input:checked + span { background: var(--primary); border-color: var(--primary); color: #fff; }
.opt input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); margin: 6px 0 20px; }
.consent input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--primary); flex: none; }
.consent a { color: var(--primary); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { margin-top: 14px; font-size: 15px; font-weight: 600; min-height: 1.2em; }
.form-msg.err { color: #C0213F; }
.form-done { text-align: center; padding: 20px 0; }
.form-done h3 { margin: 12px 0 10px; }
.form-done .stores { justify-content: center; }
.req { color: var(--primary); }

/* final CTA */
.final { background: var(--band); border-radius: 40px; padding: 72px 64px 0; display: grid; grid-template-columns: 1.2fr .8fr; gap: 32px; overflow: hidden; }
.final .copy { padding-bottom: 72px; }
.final h2 { margin-bottom: 16px; }
.final .phone { align-self: end; justify-self: center; margin-bottom: -150px; }

/* footer */
.lp-footer { padding: 72px 0 40px; background: var(--paper); border-top: 1px solid var(--line); }
.lp-footer .top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.lp-footer h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); margin-bottom: 14px; }
.lp-footer li { margin-bottom: 8px; }
.lp-footer li a { text-decoration: none; font-weight: 550; font-size: 15px; }
.lp-footer li a:hover { color: var(--primary); }
.lp-footer .about { color: var(--muted); font-size: 14.5px; margin-top: 14px; max-width: 36ch; }
.care { margin-top: 40px; padding: 18px 22px; border-radius: 20px; background: var(--cream); color: var(--muted); font-size: 13.5px; }
.legal { margin-top: 24px; color: var(--muted); font-size: 13px; }

/* reveal */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .strip-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
  .store { transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  .lp-nav { display: none; }
  .lp-header .pill-dark { margin-left: auto; }
  .lp-menu { display: block; margin-left: 0; }
  body.menu-open .lp-nav { display: flex; flex-direction: column; position: absolute; top: 70px; left: 0; right: 0; background: var(--paper); padding: 12px 16px 20px; border-bottom: 1px solid var(--line); box-shadow: 0 20px 40px rgba(0,0,0,.08); }
  body.menu-open .lp-nav a { padding: 14px 12px; font-size: 17px; }
  .hero .wrap, .spot, .frow, .final, .signup, .price.main { grid-template-columns: 1fr; }
  .frow.flip .fpanel { order: 0; }
  .hero-visual { height: 560px; max-width: 520px; margin: 0 auto; width: 100%; }
  .cards3, .steps3, .offer-grid { grid-template-columns: 1fr 1fr; }
  .numbers .wrap { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .lp-footer .top { grid-template-columns: 1fr 1fr; }
  .spot, .final { padding: 48px 32px 0; }
  .spot { padding-bottom: 48px; }
  .final .phone { margin-bottom: -120px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .sec { padding: 72px 0; }
  .hero { padding: 32px 0 48px; }
  .hero-visual { height: 470px; }
  .hero-visual .phone { width: 210px; }
  .hero-visual .ph-1 { left: 0; }
  .hero-visual .ph-2 { width: 196px; right: 0; top: 46px; }
  .callout { max-width: 200px; padding: 10px 12px; }
  .callout.c1 { left: 0; bottom: 30px; }
  .callout.c2 { right: 0; top: -6px; }
  .cards3, .steps3, .offer-grid, .ticks.cols2 { grid-template-columns: 1fr; }
  .form .row { grid-template-columns: 1fr; }
  .form { padding: 24px; border-radius: 28px; }
  .spot, .final { border-radius: 28px; padding: 40px 22px 0; }
  .spot { padding-bottom: 40px; }
  .spot .phone, .final .phone { width: 220px; }
  .price { padding: 28px; }
  .lp-footer .top { grid-template-columns: 1fr; }
  .store { min-width: 0; flex: 1 1 160px; }
  .lp-header .pill-dark { padding: 10px 14px; font-size: 14px; }
  .lp-brand small { display: none; }
  .frow { gap: 32px; margin-bottom: 72px; }
  .fpanel { padding: 40px 0; border-radius: 28px; }
  .fpanel .phone { width: 220px; }
}
