/* RitvaOne public site — mobile first, corporate */
:root {
  --ink: #14111f;
  --muted: #5c5670;
  --line: #e4dfd6;
  --paper: #f6f1e8;
  --white: #fffcf7;
  --brand: #312e81;
  --brand-2: #4338ca;
  --accent: #b45309;
  --ok: #166534;
  --shadow: 0 14px 40px rgba(49, 46, 129, 0.12);
  --radius: 14px;
  --max: 1120px;
  --font: "DM Sans", "Segoe UI", system-ui, sans-serif;
  --display: "Fraunces", Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  padding-bottom: 4.2rem;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); }
code { font-size: 0.88em; }
.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--brand);
  color: #fff;
  padding: 0.5rem 1rem;
}
.skip:focus { left: 0.5rem; top: 0.5rem; z-index: 80; }

.wrap { width: min(100% - 2rem, var(--max)); margin-inline: auto; }

.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(246, 241, 232, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}
.nav__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.1rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.brand__mark {
  width: 1.85rem;
  height: 1.85rem;
  display: grid;
  place-items: center;
  background: var(--brand);
  color: #fff;
  border-radius: 8px;
  font-size: 0.95rem;
}
.nav__toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 8px;
  padding: 0.4rem 0.75rem;
  font: inherit;
  cursor: pointer;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 0.35rem 1.15rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.nav__links a:not(.btn) {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
}
.nav__links a:not(.btn):hover { color: var(--ink); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  border-radius: 999px;
  padding: 0.55rem 1rem;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn--solid { background: var(--brand); color: #fff; }
.btn--solid:hover { background: var(--brand-2); color: #fff; }
.btn--ghost { background: var(--white); color: var(--ink); border-color: var(--line); }
.btn--lg { padding: 0.8rem 1.25rem; font-size: 1rem; }
.btn[aria-disabled="true"] { opacity: 0.5; pointer-events: none; }

.hero { padding: 2.5rem 0 1.4rem; }
.hero__grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent);
  margin: 0 0 0.6rem;
}
h1, h2, h3 { font-family: var(--display); letter-spacing: -0.03em; line-height: 1.15; }
h1 { font-size: clamp(2rem, 5vw, 3.15rem); margin: 0 0 0.85rem; font-weight: 600; }
h2 { font-size: clamp(1.55rem, 3vw, 2.15rem); margin: 0 0 0.6rem; font-weight: 600; }
h3 { font-size: 1.15rem; margin: 0 0 0.4rem; }
.lead { font-size: 1.08rem; color: var(--muted); margin: 0 0 1.25rem; max-width: 38rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-bottom: 1.1rem; }
.hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1.1rem;
  padding: 0;
  margin: 0;
  list-style: none;
  color: var(--muted);
  font-size: 0.9rem;
}
.hero__facts li::before { content: "• "; color: var(--ok); }
.hero__art {
  margin: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.device {
  background: #1c1930;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  color: #e8e4f0;
  font-size: 0.78rem;
}
.device__chrome {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.55rem 0.75rem;
  background: #12101f;
}
.device__chrome span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #6b6580;
}
.device__chrome span:nth-child(1) { background: #f43f5e; }
.device__chrome span:nth-child(2) { background: #f59e0b; }
.device__chrome span:nth-child(3) { background: #22c55e; }
.device__chrome em {
  margin-left: 0.6rem;
  font-style: normal;
  color: #a8a3b8;
  font-size: 0.72rem;
}
.device__body { display: grid; grid-template-columns: 7.2rem 1fr; min-height: 220px; }
.device aside {
  background: #252040;
  padding: 0.75rem 0.7rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.device aside b { color: #fff; font-size: 0.78rem; margin-bottom: 0.3rem; }
.device aside i {
  font-style: normal;
  color: #c4bfd6;
  padding: 0.28rem 0.4rem;
  border-radius: 6px;
}
.device aside i:first-of-type { background: #4338ca; color: #fff; }
.device__main { padding: 0.75rem; background: #f7f3ec; color: #1a1625; }
.device__k { margin: 0 0 0.5rem; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #b45309; }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.4rem; }
.kpis--2 { grid-template-columns: 1fr 1fr; }
.kpis div {
  background: #fff;
  border: 1px solid #e8e2d6;
  border-radius: 8px;
  padding: 0.4rem;
}
.kpis small { display: block; color: #6b6580; }
.kpis strong { font-family: var(--display); font-size: 0.95rem; }
.device table { width: 100%; border-collapse: collapse; margin-top: 0.55rem; font-size: 0.72rem; }
.device th, .device td { text-align: left; padding: 0.28rem 0; border-bottom: 1px solid #e8e2d6; }
.device--sm { font-size: 0.72rem; }
.device--sm .device__body { min-height: 180px; }
.device--pos .device__pos { padding: 0.9rem; background: #f7f3ec; color: #1a1625; min-height: 200px; display: flex; flex-direction: column; justify-content: space-between; }
.pos-line { display: flex; justify-content: space-between; margin: 0.35rem 0; }
.pos-total { display: flex; justify-content: space-between; font-size: 1.05rem; border-top: 1px dashed #d8d1c4; padding-top: 0.5rem; }
.pos-pay { background: #312e81; color: #fff; border-radius: 10px; padding: 0.55rem; text-align: center; font-weight: 600; }

.quick { padding: 0 0 1.4rem; }
.quick__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
}
.quick-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.85rem 0.95rem;
  text-decoration: none;
  color: inherit;
  min-height: 6.2rem;
}
.quick-card span { display: block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.quick-card strong { display: block; margin: 0.2rem 0 0.35rem; }
.quick-card code { color: var(--muted); }
.quick-card:hover { border-color: #c7d2fe; box-shadow: var(--shadow); }

.strip { border-block: 1px solid var(--line); background: var(--white); }
.strip__row {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  padding: 0.85rem 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.strip__row span { white-space: nowrap; }

.section { padding: 3.2rem 0; }
.section--tint { background: var(--white); border-block: 1px solid var(--line); }
.section__lede { color: var(--muted); max-width: 42rem; margin: 0 0 1.6rem; }
.subhead { margin: 2rem 0 0.9rem; font-size: 1.25rem; }

.cards { display: grid; gap: 1rem; }
.cards--4, .cards--3 { grid-template-columns: 1fr; }
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem 1.2rem 1.25rem;
}
.section--tint .card { background: var(--paper); }
.card p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.card__kicker { margin: 0 0 0.35rem; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ok); }
.card--accent { border-color: #c7d2fe; background: #eef2ff; }
.card.is-popular { border-color: var(--brand); box-shadow: var(--shadow); }
.card .plan-price { font-family: var(--display); font-size: 1.4rem; color: var(--ink); margin: 0.2rem 0 0.5rem; }

.go-live {
  margin: 1.6rem 0 0;
  padding: 1rem 1.2rem 1rem 2.1rem;
  background: var(--white);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--muted);
}
.go-live li { margin: 0.35rem 0; }

.apps { display: grid; gap: 1.1rem; }
.app-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.app-card img {
  width: 100%;
  max-height: 160px;
  object-fit: cover;
  border-radius: 12px;
  background: #eef2ff;
}
.app-card__icon {
  width: 3rem;
  height: 3rem;
  border-radius: 12px;
  background: var(--brand);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-family: var(--display);
}
.app-card .btn { margin-top: 0.4rem; align-self: flex-start; }
.url-label { margin: 0.4rem 0 0; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.url-row { display: flex; gap: 0.4rem; align-items: stretch; }
.url {
  display: block;
  flex: 1;
  font-size: 0.82rem;
  background: var(--white);
  border: 1px dashed var(--line);
  padding: 0.45rem 0.6rem;
  border-radius: 8px;
  overflow-wrap: anywhere;
}
.copy {
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 8px;
  padding: 0 0.7rem;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
}
.hint { margin: 0.35rem 0 0; font-size: 0.82rem; color: var(--muted); }

.shots { display: grid; gap: 1.2rem; }
.shot { margin: 0; }
.shot img { border-radius: 16px; border: 1px solid var(--line); box-shadow: var(--shadow); }
.shot.has-photo .device { display: none; }
.shot figcaption { margin-top: 0.55rem; color: var(--muted); font-size: 0.9rem; }

.price-tabs {
  display: flex;
  gap: 0.4rem;
  overflow-x: auto;
  margin-bottom: 1rem;
}
.price-tabs button {
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.price-tabs button.is-on { background: var(--brand); color: #fff; border-color: var(--brand); }
.price-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
}
.price-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem;
}
.price-card.is-best { border-color: var(--brand); background: #eef2ff; }
.price-card strong { display: block; font-size: 1.65rem; font-family: var(--display); }
.price-card span { color: var(--muted); font-size: 0.9rem; }
.price-card em {
  display: inline-block;
  margin-top: 0.45rem;
  font-style: normal;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ok);
}

.download { display: grid; gap: 2rem; align-items: center; }
.steps { padding-left: 1.15rem; color: var(--muted); }
.muted { color: var(--muted); font-size: 0.92rem; }

.faq { margin-top: 1.8rem; display: grid; gap: 0.55rem; }
.faq details {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.75rem 1rem;
}
.faq summary { cursor: pointer; font-weight: 600; }
.faq p { margin: 0.5rem 0 0; color: var(--muted); }

.foot {
  background: var(--ink);
  color: #d6d3e0;
  padding: 2.4rem 0 1.4rem;
}
.foot a { color: #c7d2fe; text-decoration: none; display: block; margin: 0.25rem 0; }
.foot__grid { display: grid; gap: 1.4rem; }
.foot__brand { color: #fff; }
.foot__h { font-weight: 700; color: #fff; margin: 0 0 0.4rem; }
.foot__copy { margin: 1.6rem auto 0; padding-top: 1rem; border-top: 1px solid #2e2a3d; }
.foot .muted { color: #a8a3b8; }

.mob-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: #1c1930;
  padding: 0.55rem 0.4rem calc(0.55rem + env(safe-area-inset-bottom));
}
.mob-cta a {
  color: #fff;
  text-align: center;
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 600;
}

@media (max-width: 799px) {
  .nav__toggle { display: inline-flex; }
  .nav__links {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 4.1rem;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 0.75rem 1rem 1rem;
    flex-direction: column;
    align-items: stretch;
  }
  .nav.is-open .nav__links { display: flex; }
  .nav__links .btn { width: 100%; }
  .device__body { grid-template-columns: 1fr; }
  .device aside { flex-direction: row; flex-wrap: wrap; }
}

@media (min-width: 800px) {
  body { padding-bottom: 0; }
  .mob-cta { display: none; }
  .hero__grid, .download { grid-template-columns: 1.05fr 0.95fr; }
  .cards--4 { grid-template-columns: repeat(4, 1fr); }
  .cards--3 { grid-template-columns: repeat(3, 1fr); }
  .apps, .shots { grid-template-columns: repeat(2, 1fr); }
  .apps { grid-template-columns: repeat(3, 1fr); }
  .price-grid { grid-template-columns: repeat(4, 1fr); }
  .quick__grid { grid-template-columns: repeat(4, 1fr); }
  .foot__grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .hero { padding: 3.5rem 0 2rem; }
}
