/* RuiMeter landing page. Shared by / and /es/. Colours come from tokens.css. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; overflow-x: clip; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--color-bg); color: var(--color-text);
  font: 400 17px/1.6 var(--font-sans);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img { max-width: 100%; }
a { color: var(--color-accent); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.mono { font-family: var(--font-numeric); font-variant-numeric: tabular-nums; }
.muted { color: var(--color-text-muted); }
p { margin: 0 0 12px; }
h1, h2, h3 { margin: 0; letter-spacing: -0.02em; text-wrap: balance; }
h1 { font-size: clamp(38px, 6.4vw, 66px); line-height: 1.02; font-weight: 800; }
h2 { font-size: clamp(28px, 3.8vw, 42px); line-height: 1.1; font-weight: 800; margin-bottom: 16px; }
h3 { font-size: 18px; line-height: 1.3; font-weight: 700; margin-bottom: 6px; }
section { padding: 80px 0; }
.rule { display: none; }

/* Small label above titles */
.kicker {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 18px;
  font-family: var(--font-numeric); font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--color-accent); background: var(--color-accent-soft);
  padding: 6px 12px; border-radius: var(--radius-pill);
}
.kicker::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--color-danger);
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--color-danger) 60%, transparent); animation: rec 1.8s infinite; }
@keyframes rec { 70% { box-shadow: 0 0 0 7px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
@media (prefers-reduced-motion: reduce) { .kicker::before { animation: none; } }

/* Header */
header.top {
  position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0; margin: 0 -16px; padding-inline: 16px;
  background: color-mix(in srgb, var(--color-bg) 82%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid color-mix(in srgb, var(--color-border) 70%, transparent);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; letter-spacing: -0.02em; text-decoration: none; color: var(--color-text); }
.brand img { border-radius: 8px; }
.topnav { display: flex; align-items: center; gap: 8px; }
.topnav a { color: var(--color-text-muted); font-weight: 600; font-size: 15px; text-decoration: none; min-height: 44px; padding: 0 12px;
  display: inline-flex; align-items: center; border-radius: var(--radius-pill); transition: background var(--motion-fast), color var(--motion-fast); }
.topnav a:hover { background: var(--color-surface-2); color: var(--color-text); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 0 26px;
  border-radius: var(--radius-pill); background: var(--color-accent); color: var(--color-on-accent);
  font-weight: 700; font-size: 16px; text-decoration: none;
  box-shadow: 0 10px 24px -10px color-mix(in srgb, var(--color-accent) 80%, transparent);
  transition: transform var(--motion-base) var(--ease), box-shadow var(--motion-base) var(--ease);
}
.btn::before { content: ""; width: 18px; height: 18px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 2.5v19l10.2-9.5zM15.6 13.2 5.9 22l11.4-6.6zM15.6 10.8 17.3 8.6 5.9 2zM18.7 9.4l-2 2.6 2 2.6 2.6-1.5c.9-.6.9-1.6 0-2.2z'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 2.5v19l10.2-9.5zM15.6 13.2 5.9 22l11.4-6.6zM15.6 10.8 17.3 8.6 5.9 2zM18.7 9.4l-2 2.6 2 2.6 2.6-1.5c.9-.6.9-1.6 0-2.2z'/%3E%3C/svg%3E") center/contain no-repeat; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 28px -10px color-mix(in srgb, var(--color-accent) 85%, transparent); }
.btn.line { background: var(--color-surface); color: var(--color-text); border: 1.5px solid var(--color-border); box-shadow: none; }
.btn.line::before { display: none; }
.btn.line:hover { border-color: var(--color-text); }
@media (prefers-reduced-motion: reduce) { .btn, .btn:hover { transition: none; transform: none; } }

/* Hero */
.hero {
  position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center;
  padding: 72px 0 64px; isolation: isolate;
}
.hero::before {
  content: ""; position: absolute; inset: -88px -50vw 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(600px 380px at 78% 38%, color-mix(in srgb, var(--color-accent) 22%, transparent), transparent 70%),
    radial-gradient(420px 300px at 8% 90%, color-mix(in srgb, var(--color-danger) 10%, transparent), transparent 70%),
    linear-gradient(color-mix(in srgb, var(--color-border) 45%, transparent) 1px, transparent 1px) 0 0 / 100% 40px;
  -webkit-mask: linear-gradient(to bottom, #000 40%, transparent);
          mask: linear-gradient(to bottom, #000 40%, transparent);
  opacity: .9;
}
.hero h1 { background: linear-gradient(180deg, var(--color-text) 55%, color-mix(in srgb, var(--color-text) 70%, var(--color-accent)));
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lede { font-size: 20px; line-height: 1.5; color: var(--color-text-muted); margin: 22px 0 30px; max-width: 38ch; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.note { font-size: 14px; color: var(--color-text-muted); margin-top: 16px; }
.hero .note::before { content: "✓  "; color: var(--color-success); font-weight: 700; }

.hero-fig { position: relative; padding-bottom: 72px; }
.sheet {
  position: relative; background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius-xl); padding: 22px 22px 16px;
  box-shadow: 0 30px 60px -30px rgba(16,16,24,.35), 0 2px 6px rgba(16,16,24,.06);
}
.sheet .kicker { background: none; padding: 0; color: var(--color-text-muted); margin-bottom: 10px; }
.sheet .kicker::before { display: none; }
.sheet svg { width: 100%; height: auto; display: block; }
.sheet .cap { font-size: 12px; color: var(--color-text-muted); margin: 8px 0 0; max-width: 58%; }
.hero-fig .phone { position: absolute; right: -8px; bottom: 0; width: 36%; transform: rotate(3deg); }
.phone {
  aspect-ratio: 9 / 20; border-radius: 28px; overflow: hidden; background: #0e0d12;
  border: 6px solid #0e0d12; outline: 1px solid color-mix(in srgb, var(--color-text) 25%, transparent);
  box-shadow: 0 30px 50px -20px rgba(16,16,24,.55);
}
.phone img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 22px; }

/* How it works */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 32px; }
.step {
  position: relative; background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius-lg); padding: 28px 24px 22px;
}
.step .n {
  display: inline-grid; place-items: center; width: 44px; height: 44px; margin-bottom: 18px; border-radius: 14px;
  background: var(--color-accent); color: var(--color-on-accent); font-family: var(--font-numeric); font-weight: 700; font-size: 15px;
}
.step p { margin: 0; }
.step:not(:last-child)::after {
  content: ""; position: absolute; top: 50px; right: -20px; width: 20px; border-top: 2px dashed var(--color-accent); opacity: .5;
}

/* Features */
.ledger { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 32px 0 0; padding: 0; list-style: none; }
.ledger li {
  position: relative; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg);
  padding: 24px; transition: transform var(--motion-base) var(--ease), border-color var(--motion-base);
}
.ledger li:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--color-accent) 45%, var(--color-border)); }
.ledger li::before {
  content: ""; display: block; width: 44px; height: 44px; margin-bottom: 16px; border-radius: 14px;
  background: var(--color-accent-soft) var(--ico) center / 22px no-repeat;
}
.ledger p { margin: 0; color: var(--color-text-muted); font-size: 16px; }
@media (prefers-reduced-motion: reduce) { .ledger li, .ledger li:hover { transition: none; transform: none; } }
/* icons: shield, pin, camera, gauge, folder, sliders */
.ledger li:nth-child(1) { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235b3cc4' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3 4 6v6c0 4.5 3.4 8.3 8 9 4.6-.7 8-4.5 8-9V6z'/%3E%3Cpath d='m9 12 2 2 4-4'/%3E%3C/svg%3E"); }
.ledger li:nth-child(2) { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235b3cc4' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 4h6l-1 5 3 3H7l3-3z'/%3E%3Cpath d='M12 12v8'/%3E%3C/svg%3E"); }
.ledger li:nth-child(3) { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235b3cc4' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 8h3l2-3h6l2 3h3v11H4z'/%3E%3Ccircle cx='12' cy='13' r='3.5'/%3E%3C/svg%3E"); }
.ledger li:nth-child(4) { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235b3cc4' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 18a8 8 0 1 1 16 0'/%3E%3Cpath d='m12 18 4-6'/%3E%3C/svg%3E"); }
.ledger li:nth-child(5) { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235b3cc4' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 6h6l2 2h10v11H3z'/%3E%3C/svg%3E"); }
.ledger li:nth-child(6) { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235b3cc4' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 6h14M5 12h14M5 18h14'/%3E%3Ccircle cx='9' cy='6' r='2' fill='%23fff'/%3E%3Ccircle cx='15' cy='12' r='2' fill='%23fff'/%3E%3Ccircle cx='8' cy='18' r='2' fill='%23fff'/%3E%3C/svg%3E"); }

.shots { display: flex; justify-content: center; gap: 28px; overflow-x: auto; padding: 24px 8px 32px; margin-top: 48px; scroll-snap-type: x mandatory; }
.shots .phone { flex: 0 0 230px; scroll-snap-align: center; }
.shots .phone:nth-child(2) { transform: translateY(-20px); }

/* Report */
.report { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: center; }
.page {
  background: #fff; border-radius: 10px; overflow: hidden; transform: rotate(-1.5deg);
  box-shadow: 0 40px 70px -30px rgba(16,16,24,.45), 0 0 0 1px rgba(16,16,24,.08), 18px 18px 0 -2px var(--color-accent-soft);
}
.page img { width: 100%; height: auto; display: block; }

/* Privacy band */
.ink {
  position: relative; overflow: hidden; color: #f4f1ea;
  background: radial-gradient(700px 400px at 85% 0%, #5b3cc4 0%, transparent 60%), linear-gradient(160deg, #221a3d, #141219 70%);
}
.ink h2 { color: #fff; max-width: 20ch; margin-bottom: 40px; }
.commit { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.commit > div { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius-lg); padding: 24px; }
.commit h3 { font-size: 17px; color: #fff; display: flex; align-items: center; gap: 10px; }
.commit h3::before {
  content: "✓"; display: inline-grid; place-items: center; flex: 0 0 26px; height: 26px; border-radius: 50%;
  background: #b7a3ff; color: #1a1033; font-size: 14px; font-weight: 800;
}
.commit p { color: #c9c4bb; margin: 0; }

/* Pricing */
.price { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 32px; max-width: 880px; }
.tier { position: relative; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-xl); padding: 32px; }
.tier.pick { border: 2px solid var(--color-accent); box-shadow: 0 30px 60px -32px color-mix(in srgb, var(--color-accent) 70%, transparent); }
.amount { font-family: var(--font-numeric); font-size: 48px; line-height: 1.1; font-weight: 700; margin: 14px 0 4px; letter-spacing: -0.03em; }
.amount small { font-family: var(--font-sans); font-size: 16px; font-weight: 500; color: var(--color-text-muted); letter-spacing: 0; }
.tier ul { list-style: none; padding: 0; margin: 20px 0 0; border-top: 1px solid var(--color-border); padding-top: 20px; }
.tier li { position: relative; padding-left: 30px; margin-bottom: 12px; }
.tier li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--color-accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235b3cc4' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 12px no-repeat;
}

/* FAQ */
details { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: 0 20px; margin-bottom: 10px; max-width: 880px; }
details[open] { border-color: color-mix(in srgb, var(--color-accent) 40%, var(--color-border)); }
summary { cursor: pointer; font-weight: 700; min-height: 60px; display: flex; align-items: center; justify-content: space-between; gap: 16px; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; flex: 0 0 auto; font: 400 26px/1 var(--font-sans); color: var(--color-accent); transition: transform var(--motion-base) var(--ease); }
details[open] summary::after { transform: rotate(45deg); }
details p { margin: 0 0 20px; color: var(--color-text-muted); max-width: 70ch; }

/* Closing call to action */
.end {
  text-align: center; margin: 24px 0 72px; padding: 72px 24px; border-radius: 32px; color: #fff;
  background: radial-gradient(500px 260px at 50% 0%, #7a5cf0, transparent 70%), linear-gradient(160deg, #5b3cc4, #3a2585);
}
.end h2 { font-size: clamp(30px, 5vw, 50px); color: #fff; }
.end .muted { color: rgba(255,255,255,.82); margin-bottom: 28px; }
.end .btn { background: #fff; color: #3a2585; box-shadow: 0 16px 30px -12px rgba(0,0,0,.45); }

footer { padding: 32px 0 40px; color: var(--color-text-muted); font-size: 14px; border-top: 1px solid var(--color-border); }

/* Dark mode: icons and the report page keep their contrast */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .ledger li::before, :root:not([data-theme="light"]) .tier li::before { filter: brightness(1.9) saturate(.8); }
  :root:not([data-theme="light"]) .sheet, :root:not([data-theme="light"]) .page { box-shadow: 0 30px 60px -30px rgba(0,0,0,.8); }
}

@media (max-width: 900px) {
  .ledger { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  section { padding: 64px 0; }
  .hero, .report, .ledger, .steps, .commit, .price { grid-template-columns: 1fr; }
  .hero { gap: 40px; padding: 40px 0 64px; }
  .step:not(:last-child)::after { display: none; }
  .hero-fig .phone { width: 42%; }
  .shots { justify-content: flex-start; }
  .shots .phone { flex-basis: 200px; }
  .shots .phone:nth-child(2) { transform: none; }
  .page { transform: none; }
  .end { border-radius: 24px; padding: 56px 20px; }
}
