/* Voltios landing page — shared by index.html, es/index.html, legal pages.
   Tokens mirror the app's design system (design_handoff_voltios/tokens.css).
   Rule from the design system: no multi-stop gradients, solid brand fills. */
:root {
    --accent: #EA5017;
    --accent-hover: #C94310;
    --accent-soft: #FDEBE3;
    --ink: #1D2639;
    --ink-2: #2A3550;
    --muted: #5B6475;
    --line: #E6E8EC;
    --bg-soft: #F5F6F8;
    --paper: #FBF1E5;
    --green: #3DA865;
    --green-soft: #E4F4EA;
    --white: #fff;
    --radius: 20px;
    --shadow: 0 1px 2px rgba(29,38,57,.06), 0 12px 32px -8px rgba(29,38,57,.14);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; color: var(--ink); background: var(--white); line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img { max-width: 100%; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.num { font-family: 'Space Grotesk', 'Inter', sans-serif; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; z-index: 100; }
.skip:focus { left: 8px; }

/* Scroll progress bar */
.progress { position: fixed; top: 0; left: 0; height: 3px; width: 100%; background: var(--accent); transform: scaleX(0); transform-origin: 0 50%; z-index: 30; pointer-events: none; }

/* Header */
.header { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.header.scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px -16px rgba(29,38,57,.25); }
.header .container { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 22px; text-decoration: none; letter-spacing: -.02em; }
.logo img { width: 34px; height: 34px; border-radius: 9px; }
.logo i { color: var(--accent); font-style: normal; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a.link { text-decoration: none; font-weight: 500; font-size: 15px; color: var(--muted); transition: color .15s; }
.nav a.link:hover { color: var(--ink); }
.lang { font-size: 13px; font-weight: 600; text-decoration: none; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; }
.lang:hover { color: var(--ink); background: var(--bg-soft); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 600; font-size: 15px; padding: 12px 20px; border-radius: 12px; text-decoration: none; border: 0; cursor: pointer; transition: background .15s, transform .15s, box-shadow .15s; }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--accent); color: var(--white); }
.btn-primary:hover { background: var(--accent-hover); box-shadow: 0 8px 20px -8px rgba(234,80,23,.6); }
.btn-dark { background: var(--ink); color: var(--white); }
.btn-dark:hover { background: var(--ink-2); }
.btn-ghost { background: var(--white); color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { background: var(--bg-soft); }
.btn .arr { display: inline-block; transition: transform .2s; }
.btn:hover .arr { transform: translateX(4px); }
.store { display: inline-block; transition: transform .2s; }
.store:hover { transform: translateY(-2px); }
.store img { height: 48px; display: block; }

/* Hero */
.hero { padding: 72px 0 88px; background: var(--paper); overflow: hidden; }
.hero .container.grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.pill { display: inline-flex; align-items: center; gap: 8px; background: var(--white); border: 1px solid #F0DCC3; border-radius: 999px; padding: 6px 14px 6px 8px; font-size: 14px; font-weight: 500; margin-bottom: 22px; }
.pill b { background: var(--accent); color: var(--white); border-radius: 999px; padding: 2px 10px; font-size: 12px; letter-spacing: .04em; }
.hero h1 { font-size: 60px; line-height: 1.04; letter-spacing: -.035em; font-weight: 700; margin: 0 0 20px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lead { font-size: 20px; color: var(--muted); max-width: 540px; margin: 0 0 32px; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.trust { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 32px 0 0; padding: 0; list-style: none; font-size: 14px; font-weight: 500; color: var(--ink-2); }
.trust li { display: flex; align-items: center; gap: 8px; }
.trust svg { width: 18px; height: 18px; color: var(--green); flex: none; }
.caption { text-align: center; font-size: 12px; color: var(--muted); margin: 44px auto 0; }

/* Phone mockup (illustrative UI, built in CSS) */
.stage { position: relative; display: flex; justify-content: center; perspective: 1200px; }
.tilt { transition: transform .15s ease-out; transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transform-style: preserve-3d; }
.phone { width: 300px; background: var(--ink); border-radius: 46px; padding: 10px; box-shadow: 0 40px 80px -20px rgba(29,38,57,.45); position: relative; z-index: 2; transform: rotate(2deg); }
.screen { background: var(--white); border-radius: 37px; position: relative; overflow: hidden; }
.screen img.shot { display: block; width: 100%; height: auto; }
.island { display: none; }
.btn-lg { padding: 15px 26px; font-size: 16px; }
.subcta { margin: 18px 0 0; font-size: 15px; font-weight: 600; }
.subcta a { color: var(--accent); text-decoration: none; }
.subcta a:hover { text-decoration: underline; }
.s-title { display: flex; align-items: center; justify-content: space-between; font-weight: 700; font-size: 17px; margin-bottom: 14px; }
.s-title span { width: 30px; height: 30px; background: var(--bg-soft); border-radius: 10px; display: inline-block; }
.s-hero { background: var(--paper); border: 1px solid #F0DCC3; border-radius: 18px; padding: 14px 16px; margin-bottom: 12px; }
.s-hero small { display: block; font-size: 10px; font-weight: 700; letter-spacing: .08em; color: var(--muted); }
.s-hero .big { font-size: 44px; font-weight: 600; line-height: 1.1; }
.s-hero .delta { font-size: 12px; color: var(--green); font-weight: 600; }
.chips { display: flex; gap: 6px; margin-bottom: 12px; font-size: 10.5px; font-weight: 600; white-space: nowrap; }
.chips span { border: 1px solid var(--line); border-radius: 999px; padding: 5px 9px; }
.chips span.on { background: var(--ink); color: var(--white); border-color: var(--ink); }
.plan { border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; margin-bottom: 10px; }
.plan.top { border: 2px solid var(--ink); }
.plan .row { display: flex; align-items: center; justify-content: space-between; }
.plan b { font-size: 14px; }
.plan .price { font-size: 22px; font-weight: 600; }
.plan .price small { font-size: 11px; color: var(--muted); font-family: 'Inter', sans-serif; letter-spacing: 0; }
.plan p { margin: 2px 0 0; font-size: 11px; color: var(--muted); }
.tag { display: inline-block; background: var(--green-soft); color: #23703F; font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 999px; margin-top: 6px; }
.toast { position: absolute; z-index: 3; background: var(--white); border-radius: 16px; box-shadow: var(--shadow); padding: 12px 14px; display: flex; gap: 10px; align-items: center; font-size: 13px; line-height: 1.35; }
.toast .ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex: none; }
.toast .ic svg { width: 18px; height: 18px; }
.toast b { display: block; font-size: 13px; }
.toast span.s { color: var(--muted); font-size: 12px; }
.t1 { left: -28px; bottom: -22px; transform: rotate(-3deg) translateZ(40px); }
.t1 .ic { background: var(--accent-soft); color: var(--accent); }
.t2 { right: -8px; top: 70px; transform: rotate(3deg) translateZ(40px); }
.t2 .ic { background: var(--green-soft); color: var(--green); }

/* Sections */
.section { padding: 96px 0; }
.section-soft { background: var(--bg-soft); }
.head { max-width: 680px; margin: 0 auto 56px; text-align: center; }
.head h2 { font-size: 42px; line-height: 1.1; letter-spacing: -.03em; margin: 0 0 14px; }
.head p { font-size: 19px; color: var(--muted); margin: 0; }

.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tile { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; transition: transform .25s, box-shadow .25s; }
.tile:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.tile .ic { width: 48px; height: 48px; border-radius: 14px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; margin-bottom: 20px; }
.tile .ic svg { width: 24px; height: 24px; }
.tile h3 { font-size: 20px; margin: 0 0 8px; letter-spacing: -.01em; }
.tile p { margin: 0; color: var(--muted); }

/* How it works — pinned phone that changes screen as you scroll (desktop) */
.how-track { height: 320vh; position: relative; }
.how-sticky { position: sticky; top: 0; height: 100vh; display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.how-copy .head { text-align: left; margin: 0 0 36px; }
.how-steps { display: grid; gap: 14px; }
.how-step { display: flex; gap: 18px; padding: 20px 22px; border-radius: 18px; border: 1px solid transparent; opacity: .45; transition: opacity .3s, background .3s, border-color .3s; }
.how-step .n { width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: #fff; font-weight: 700; display: grid; place-items: center; flex: none; transition: background .3s; }
.how-step h3 { margin: 0 0 4px; font-size: 20px; }
.how-step p { margin: 0; color: var(--muted); }
.how-track[data-active="0"] .how-step[data-i="0"],
.how-track[data-active="1"] .how-step[data-i="1"],
.how-track[data-active="2"] .how-step[data-i="2"] { opacity: 1; background: var(--white); border-color: var(--line); box-shadow: var(--shadow); }
.how-track[data-active="0"] .how-step[data-i="0"] .n,
.how-track[data-active="1"] .how-step[data-i="1"] .n,
.how-track[data-active="2"] .how-step[data-i="2"] .n { background: var(--accent); }
.how-phone { display: flex; justify-content: center; }
.how-phone .phone { transform: rotate(0); }
.how-phone .screen { aspect-ratio: 390 / 844; }
.scr { position: absolute; inset: 0; opacity: 0; transform: translateY(14px); transition: opacity .4s, transform .4s; background: var(--white); }
.scr img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.how-track[data-active="0"] .scr[data-i="0"],
.how-track[data-active="1"] .scr[data-i="1"],
.how-track[data-active="2"] .scr[data-i="2"] { opacity: 1; transform: none; }
.lbl { font-size: 12px; font-weight: 700; color: var(--muted); margin: 18px 0 6px; }
.field { border: 2px solid var(--accent); border-radius: 14px; padding: 12px 14px; font-weight: 600; display: flex; justify-content: space-between; align-items: center; }
.field .num { font-size: 22px; }
.sugg { margin-top: 8px; border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px; font-size: 13px; }
.sugg small { color: var(--muted); display: block; }
.fake-btn { margin-top: 18px; background: var(--accent); color: #fff; font-weight: 700; text-align: center; border-radius: 14px; padding: 13px; font-size: 14px; }
.kwh { text-align: center; margin: 22px 0 14px; }
.kwh .num { font-size: 52px; font-weight: 600; line-height: 1; }
.kwh small { display: block; color: var(--muted); font-weight: 600; font-size: 13px; }
.slider { height: 8px; border-radius: 8px; background: var(--bg-soft); position: relative; margin: 0 6px 20px; }
.slider::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 55%; background: var(--accent); border-radius: 8px; }
.slider::after { content: ''; position: absolute; left: 55%; top: 50%; width: 22px; height: 22px; margin: -11px 0 0 -11px; background: #fff; border: 3px solid var(--accent); border-radius: 50%; box-shadow: var(--shadow); }
.opt { border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; font-size: 13px; font-weight: 600; display: flex; gap: 10px; align-items: center; margin-bottom: 10px; }
.opt i { width: 10px; height: 10px; border-radius: 50%; background: var(--green); display: inline-block; flex: none; }

/* Autopilot */
.autopilot { background: var(--ink); color: var(--white); }
.autopilot .container { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.autopilot .eyebrow { color: #FF8A5B; }
.autopilot h2 { font-size: 42px; line-height: 1.1; letter-spacing: -.03em; margin: 0 0 18px; }
.autopilot .lead { font-size: 19px; color: #C5CBD8; margin: 0 0 28px; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.checks li { display: flex; gap: 12px; color: #E4E8F0; }
.checks svg { width: 22px; height: 22px; color: var(--green); flex: none; margin-top: 2px; }
.card-form { background: var(--white); color: var(--ink); border-radius: 24px; padding: 32px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.5); }
.card-form h3 { margin: 0 0 4px; font-size: 22px; }
.card-form .sub { margin: 0 0 20px; color: var(--muted); font-size: 15px; }
form { display: grid; gap: 14px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
label { display: block; font-weight: 600; font-size: 13px; margin-bottom: 5px; }
input, select { width: 100%; padding: 13px 14px; border: 1px solid #D5D9E0; border-radius: 12px; font: inherit; font-size: 15px; background: var(--white); color: var(--ink); }
input:focus, select:focus { border-color: var(--accent); outline: 3px solid var(--accent-soft); }
.fine { font-size: 12.5px; color: var(--muted); margin: 0; }
.fine a { color: var(--accent); }
.hp { position: absolute; left: -9999px; }

/* FAQ */
.faq { max-width: 780px; margin: 0 auto; display: grid; gap: 12px; }
details { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 0 24px; transition: box-shadow .2s; }
details[open] { box-shadow: var(--shadow); }
summary { cursor: pointer; font-weight: 600; font-size: 17px; padding: 20px 0; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; font-size: 24px; font-weight: 400; color: var(--accent); transition: transform .2s; }
details[open] summary::after { transform: rotate(45deg); }
details p { margin: 0 0 20px; color: var(--muted); }

.cta { text-align: center; padding: 96px 24px; background: var(--paper); }
.cta h2 { font-size: 42px; letter-spacing: -.03em; margin: 0 0 12px; line-height: 1.1; }
.cta p { font-size: 19px; color: var(--muted); margin: 0 0 28px; }

.footer { padding: 40px 0; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.footer .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
.footer p { margin: 0; }
.footer .legal { max-width: 560px; font-size: 12.5px; }
.footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
.footer a { color: var(--accent); text-decoration: none; font-weight: 500; }

/* Legal pages */
.doc { max-width: 760px; margin: 0 auto; padding: 56px 24px 96px; }
.doc h1 { font-size: 40px; letter-spacing: -.03em; margin: 0 0 8px; line-height: 1.1; }
.doc h2 { font-size: 22px; margin: 36px 0 8px; letter-spacing: -.01em; }
.doc h3 { font-size: 17px; margin: 24px 0 6px; }
.doc p, .doc li { color: #3A4355; }
.doc ul { padding-left: 22px; }
.doc .notice { background: var(--paper); border: 1px solid #F0DCC3; border-radius: 14px; padding: 16px 18px; margin: 24px 0; font-size: 14px; }
.doc a { color: var(--accent); }

/* Scroll reveal. Content is fully visible without JS or with reduced motion. */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: no-preference) {
    .phone { animation: float 6s ease-in-out infinite; }
    @keyframes float { 50% { transform: rotate(2deg) translateY(-8px); } }
    .how-phone .phone { animation: none; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .js .reveal { opacity: 1; transform: none; transition: none; }
    .tilt, .scr, .how-step { transition: none; }
}
@media (max-width: 960px) {
    .hero { padding: 48px 0 64px; }
    .hero .container.grid, .autopilot .container { grid-template-columns: 1fr; gap: 48px; }
    .hero h1 { font-size: 42px; }
    .hero .lead, .head p, .autopilot .lead, .cta p { font-size: 18px; }
    .section, .cta { padding: 64px 0; }
    .head h2, .autopilot h2, .cta h2 { font-size: 32px; }
    .bento { grid-template-columns: 1fr; }
    .nav a.link { display: none; }
    .t1 { left: -4px; } .t2 { right: -4px; top: -18px; }
    /* No pinning on small screens: stack the steps, hide the phone. */
    .how-track { height: auto; }
    .how-sticky { position: static; height: auto; grid-template-columns: 1fr; gap: 0; }
    .how-phone { display: none; }
    .how-step { opacity: 1; background: var(--white); border-color: var(--line); }
    .how-step .n { background: var(--accent); }
    .how-copy .head { text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
    .how-track { height: auto; }
    .how-sticky { position: static; height: auto; padding: 96px 24px; }
    .how-phone { display: none; }
    .how-step { opacity: 1; background: var(--white); border-color: var(--line); }
    .how-sticky { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
    .container { padding: 0 20px; }
    .phone { width: 270px; }
    .toast { transform: none; }
    .two { grid-template-columns: 1fr; }
    .card-form { padding: 24px; }
    .nav { gap: 12px; }
    .nav .btn { padding: 10px 14px; }
    .doc h1 { font-size: 32px; }
}
