/* OptiRuta — sitio web (optiruta.online) */
:root {
  --bg: #F6F8FC;
  --surface: #FFFFFF;
  --surface-2: #EEF3FB;
  --text: #0F172A;
  --muted: #526079;
  --line: #DCE4F0;
  --brand: #2563EB;
  --on-brand: #FFFFFF;
  --brand-dark: #1E3A8A;
  --sky: #38BDF8;
  --sky-soft: #E0F2FE;
  --ok: #059669;
  --no: #94A3B8;
  --accent: #7C3AED;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0B1120;
    --surface: #121B2E;
    --surface-2: #17233B;
    --text: #EEF2F8;
    --muted: #9AA8C0;
    --line: #24324D;
    --brand: #60A5FA;
    --on-brand: #0B1120;
    --brand-dark: #1E3A8A;
    --sky-soft: #0C2A44;
    --ok: #34D399;
    --no: #5B6B86;
    --accent: #A78BFA;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  font-size: 16px;
}
img, svg { max-width: 100%; }
a { color: var(--brand); }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }

/* Header */
.top {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-weight: 800; font-size: 20px; }
.brand img { width: 36px; height: 36px; }
.nav { display: flex; gap: 18px; align-items: center; }
.nav a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 15px; }
.nav a:hover { color: var(--brand); }
.nav a.btn, .nav a.btn:hover { color: var(--on-brand); }
@media (max-width: 760px) { .nav a.opt { display: none; } }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px; border-radius: 999px; font-weight: 700; text-decoration: none;
  background: var(--brand); color: var(--on-brand); border: 0; cursor: pointer; font-size: 15px;
}
.btn.ghost { background: transparent; color: var(--brand); border: 2px solid var(--brand); }
.btn.small { padding: 8px 14px; font-size: 14px; }

/* Hero */
.hero { padding: 56px 0 40px; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; } }
.eyebrow { display: inline-block; background: var(--sky-soft); color: var(--brand); font-weight: 700; font-size: 13px; padding: 6px 12px; border-radius: 999px; }
h1 { font-size: clamp(32px, 5vw, 52px); line-height: 1.1; margin: 14px 0; letter-spacing: -0.02em; }
h1 span { color: var(--brand); }
.lead { font-size: 18px; color: var(--muted); max-width: 560px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.note { font-size: 13px; color: var(--muted); margin-top: 10px; }

/* Sections */
section { padding: 56px 0; }
section.alt { background: var(--surface-2); }
h2 { font-size: clamp(26px, 3.4vw, 36px); margin: 0 0 8px; letter-spacing: -0.01em; }
.sub { color: var(--muted); margin: 0 0 28px; max-width: 680px; }

.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.card h3 { margin: 10px 0 6px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--sky-soft); color: var(--brand); }
.ico svg, .trust svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.trust { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 22px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: 15px; font-weight: 500; }
.trust li { display: flex; align-items: center; gap: 8px; }
.trust svg { width: 18px; height: 18px; color: var(--ok); }
.section-head { max-width: 720px; }
.eyebrow-plain { color: var(--brand); font-weight: 700; font-size: 14px; letter-spacing: .04em; text-transform: uppercase; margin: 0 0 8px; }

.steps { counter-reset: s; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.step { position: relative; padding-left: 56px; }
.step::before {
  counter-increment: s; content: counter(s);
  position: absolute; left: 0; top: 0; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; background: var(--brand); color: var(--on-brand); font-weight: 800;
}
.step h3 { margin: 4px 0 4px; font-size: 17px; }
.step p { margin: 0; color: var(--muted); }

/* Phone mockups */
.phones { display: flex; gap: 22px; justify-content: center; flex-wrap: wrap; }
.phone-wrap { text-align: center; }
.phone-wrap figcaption { margin-top: 10px; font-weight: 700; font-size: 15px; }
.phone-wrap small { display: block; color: var(--muted); font-weight: 500; }
.phone {
  width: 250px; height: 500px; border-radius: 36px; padding: 10px;
  background: #0B1120; box-shadow: var(--shadow); position: relative;
}
.screen { width: 100%; height: 100%; border-radius: 28px; overflow: hidden; background: #F4F6F9; position: relative; font-size: 11px; color: #0F172A; text-align: left; }
.screen .bar { height: 46px; background: #1E3A8A; color: #fff; display: flex; align-items: center; gap: 8px; padding: 0 12px; font-weight: 800; font-size: 13px; }
.screen .bar img { width: 22px; height: 22px; }
.screen .nav5 { position: absolute; bottom: 0; left: 0; right: 0; height: 40px; background: #fff; border-top: 1px solid #E2E8F0; display: flex; justify-content: space-around; align-items: center; font-size: 9px; color: #64748B; }
.screen .nav5 b { color: #2563EB; }
.row { display: flex; align-items: center; gap: 8px; background: #fff; margin: 6px 8px; padding: 8px; border-radius: 10px; border: 1px solid #E2E8F0; }
.num { width: 22px; height: 22px; border-radius: 50%; background: #2563EB; color: #fff; font-weight: 800; display: grid; place-items: center; font-size: 10px; flex: none; }
.num.done { background: #059669; }
.chip { display: inline-block; padding: 2px 7px; border-radius: 999px; font-size: 9px; font-weight: 700; }
.row .t { font-weight: 700; font-size: 11px; }
.row .s { color: #64748B; font-size: 9.5px; }

/* Real screenshots */
.shot {
  width: 270px; max-width: 100%; border-radius: 34px; padding: 9px; background: #0B1120;
  box-shadow: var(--shadow); flex: none;
}
.shot img { display: block; width: 100%; height: auto; border-radius: 26px; }
.hero .shot { width: 300px; margin: 0 auto; }
.tour { display: flex; flex-direction: column; gap: 56px; }
.feature { display: grid; grid-template-columns: auto 1fr; gap: 40px; align-items: center; }
.feature.flip { grid-template-columns: 1fr auto; }
.feature.flip > .shot, .feature.flip > .pair { order: 2; }
.feature h3 { font-size: 24px; margin: 0 0 10px; }
.feature p { color: var(--muted); margin: 0 0 12px; }
.feature ul { margin: 0; padding-left: 0; list-style: none; }
.feature li { padding: 6px 0 6px 28px; position: relative; }
.feature li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 900; }
.feature .pair { display: flex; gap: 14px; }
.feature .pair .shot { width: 200px; }
@media (max-width: 760px) {
  .feature, .feature.flip { grid-template-columns: 1fr; gap: 20px; }
  .feature.flip > .shot, .feature.flip > .pair { order: 0; }
  .feature .shot { margin: 0 auto; }
  .feature .pair { justify-content: center; }
  .feature .pair .shot { width: 46%; }
}
.gift { display: flex; gap: 16px; align-items: center; background: var(--sky-soft); border-radius: var(--radius); padding: 18px 20px; margin-top: 20px; }
.gift .big { font-size: 34px; }

/* Plans */
.plans { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.plan.featured { border: 2px solid var(--accent); }
.plan .tag { align-self: flex-start; background: var(--accent); color: #fff; font-size: 12px; font-weight: 700; border-radius: 999px; padding: 3px 10px; margin-bottom: 8px; }
.plan h3 { margin: 0; font-size: 20px; }
.price { font-size: 34px; font-weight: 800; margin: 8px 0 2px; }
.price small { font-size: 15px; color: var(--muted); font-weight: 600; }
.plan ul { padding-left: 0; list-style: none; margin: 14px 0 0; }
.plan li { padding: 5px 0 5px 26px; position: relative; color: var(--text); font-size: 15px; }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 900; }
.plan li.no { color: var(--muted); }
.plan li.no::before { content: "—"; color: var(--no); }

.table-wrap { overflow-x: auto; margin-top: 28px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
table { width: 100%; border-collapse: collapse; min-width: 720px; font-size: 15px; }
th, td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: center; }
th:first-child, td:first-child { text-align: left; }
thead th { background: var(--surface-2); font-size: 14px; }
td.y { color: var(--ok); font-weight: 800; }
td.n { color: var(--no); }

.trial { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin-top: 24px; }

/* FAQ */
details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; margin-bottom: 10px; }
summary { font-weight: 700; cursor: pointer; }
details p { color: var(--muted); margin: 10px 0 0; }

/* Legal pages */
.legal { max-width: 820px; margin: 0 auto; padding: 40px 16px 60px; }
.legal h1 { font-size: clamp(28px, 4vw, 40px); }
.legal h2 { font-size: 22px; margin-top: 30px; }
.legal p, .legal li { color: var(--text); }
.legal .updated { color: var(--muted); }
.box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin: 18px 0; }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 30px 0; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; }
footer nav { display: flex; flex-wrap: wrap; gap: 16px; }
footer a { color: var(--muted); }

/* Until the app is live on Google Play */
.btn.soon { background: var(--surface-2); color: var(--text); border: 1px solid var(--line); cursor: default; }
.grid.three { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
