/* Hallmark · shape: Conversational FAQ, kept to one short scroll at the owner's request · genre: modern-minimal · theme: Console (deal 1/3, seed power-proof-medidor-testigo-02dc·fb511db0·2026-11-27·r0) · job: hire · draw: 507647
 * hero: Banner · nav: masthead · footer: statement · imagery: none, the page carries type and the instrument's own units · signature: the four units the meter reports, V A W kWh, set large in the measured face and lit in turn as the page scrolls · console: graphite
 * axes: dark/grotesk-sans/chromatic-amber · posture: restrained · contrast: pass · fold: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H4 E4 S4 R5 V4 · weakest: P, a service with no public proof yet; the readings panel states exactly what the meter records instead of claims, and the claim answer says plainly what the report does not do */
/* Hallmark · dismissed 58 · up to 86 words where the hero meets the readings panel in the four languages, the one paragraph about Power Proof the owner asked for sits there */
/* Hallmark · dismissed 77 · four blocks by request: the owner asked for a one-view page with the logo, one paragraph about Power Proof and a WhatsApp contact */
@import url("./tokens.css");
@import url("./base.css");

/* ---------- chrome ---------- */
.skip { position: absolute; left: var(--space-md); top: var(--space-md); z-index: var(--z-toast); padding: var(--space-xs) var(--space-md); background: var(--color-accent); color: var(--color-accent-ink); border-radius: var(--radius-pill); transform: translateY(-200%); }
.skip:focus-visible { transform: none; }

.masthead { border-bottom: var(--rule-hair) solid var(--color-rule); }
.masthead__in { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; min-height: 76px; }
.brand { grid-column: 2; display: inline-flex; align-items: center; gap: var(--space-sm); color: var(--color-ink); text-decoration: none; border-radius: var(--radius-pill); }
.brand__word { font-family: var(--font-display); font-weight: 500; font-size: var(--text-xl); letter-spacing: -0.02em; white-space: nowrap; }
.mark { width: 40px; height: auto; flex-shrink: 0; }
.mark__p { fill: var(--color-brand-p); }
.mark__bar { fill: var(--color-brand); }
.mark__bolt { fill: var(--color-brand); stroke: var(--color-brand-edge); stroke-width: 0.158713; stroke-linejoin: round; }
.masthead__end { grid-column: 3; justify-self: end; display: flex; align-items: center; gap: var(--space-lg); }
.masthead__act { font-size: var(--text-sm); font-weight: 500; color: var(--color-ink-2); text-decoration: underline; text-decoration-color: var(--color-rule-2); white-space: nowrap; transition: color var(--dur-short) var(--ease-out), text-decoration-color var(--dur-short) var(--ease-out); }
.masthead__act:hover { color: var(--color-accent); text-decoration-color: var(--color-accent); }

/* language menu: a disclosure, works without script */
.lang { position: relative; }
.lang summary { list-style: none; display: inline-flex; align-items: center; gap: var(--space-xs); min-height: 44px; padding-inline: var(--space-sm); border: var(--rule-hair) solid var(--color-rule-2); border-radius: var(--radius-pill); font-size: var(--text-sm); font-weight: 500; color: var(--color-ink-2); cursor: pointer; white-space: nowrap; transition: color var(--dur-short) var(--ease-out), border-color var(--dur-short) var(--ease-out); }
.lang summary::-webkit-details-marker { display: none; }
.lang summary::after { content: ""; width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); }
.lang summary:hover { color: var(--color-ink); border-color: var(--color-muted); }
.lang[open] summary { color: var(--color-ink); border-color: var(--color-muted); }
.lang__list { position: absolute; right: 0; top: calc(100% + var(--space-xs)); z-index: var(--z-dropdown); list-style: none; margin: 0; padding: var(--space-xs); min-width: 10rem; display: grid; gap: var(--space-3xs); background: var(--color-paper-2); color: var(--color-ink); border: var(--rule-hair) solid var(--color-rule-2); border-radius: var(--radius-card); }
.lang__list a { display: block; padding: var(--space-xs) var(--space-sm); border-radius: var(--radius-pill); color: var(--color-ink-2); text-decoration: none; transition: background-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out); }
.lang__list a:hover { background: var(--color-paper-3); color: var(--color-ink); }
.lang__list a:active { background: var(--color-rule); }
.lang__list a[aria-current="page"] { color: var(--color-accent); }

/* ---------- hero: Banner ---------- */
.hero { padding-block: var(--space-3xl) var(--space-2xl); }
.hero__in { display: grid; gap: var(--space-lg); justify-items: start; }
.hero__in > :nth-child(2) { --i: 1; } .hero__in > :nth-child(3) { --i: 2; }
.hero h1 { max-width: 16ch; }
.hero .lead { color: var(--color-ink-2); max-width: 40ch; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-md); margin-top: var(--space-xs); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-xs); min-height: 48px; padding: var(--space-sm) var(--space-lg); border: var(--rule-hair) solid var(--color-rule-2); border-radius: var(--radius-pill); background: var(--color-paper-2); color: var(--color-ink); font-weight: 500; text-decoration: none; white-space: nowrap; cursor: pointer; transition: background-color var(--dur-short) var(--ease-out), border-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out); }
.btn:hover { border-color: var(--color-muted); background: var(--color-paper-3); }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--color-accent); border-color: var(--color-accent); color: var(--color-accent-ink); }
.btn--primary:hover { background: var(--color-ink); border-color: var(--color-ink); color: var(--color-accent-ink); }
.btn svg { width: 20px; height: 20px; flex-shrink: 0; fill: currentColor; }

.link { color: var(--color-ink-2); font-weight: 500; text-decoration: underline; text-decoration-color: var(--color-rule-2); transition: color var(--dur-short) var(--ease-out), text-decoration-color var(--dur-short) var(--ease-out); }
.link:hover { color: var(--color-accent); text-decoration-color: var(--color-accent); }
.link:active { color: var(--color-ink); }

/* the one entrance: a settle, from a page that is already there without it */
@media (prefers-reduced-motion: no-preference) {
  .hero__in > * { animation: settle 640ms var(--ease-out) both; animation-delay: calc(var(--i, 0) * 70ms); }
  @keyframes settle { from { opacity: 0; transform: translateY(8px); } }
}

/* ---------- the readings: four units, lit in turn ---------- */
.readings { padding-block: var(--section-gap-s) var(--section-gap); border-top: var(--rule-hair) solid var(--color-rule); }
.readings__pin { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-3xl); align-items: center; }
.readings__head { display: grid; gap: var(--space-md); }
.readings__head h2 { max-width: 12ch; }
.readings__head { align-content: center; }
.readings__head p { color: var(--color-ink-2); max-width: 46ch; }

.panels { color: var(--color-ink); list-style: none; margin: 0; padding: 0; display: grid; gap: var(--rule-hair); background: var(--color-rule); border: var(--rule-hair) solid var(--color-rule); border-radius: var(--radius-card); overflow: hidden; }
.panels > li { color: var(--color-ink); background: var(--color-paper-2); display: grid; grid-template-columns: minmax(0, 9rem) minmax(0, 1fr); align-items: center; gap: var(--space-lg); padding: var(--space-lg) var(--space-xl); min-height: 120px; }
.unit { font-family: var(--font-outlier); font-weight: 400; font-size: var(--text-display-s); letter-spacing: -0.04em; line-height: 1; color: var(--color-cool); font-variant-numeric: tabular-nums slashed-zero; }
.panels h3 { font-size: var(--text-title); }
.panels p { color: var(--color-muted); margin-top: var(--space-2xs); max-width: 46ch; }
.panels > li:nth-child(2) { --i: 1; } .panels > li:nth-child(3) { --i: 2; } .panels > li:nth-child(4) { --i: 3; }
.measured { font-family: var(--font-outlier); font-size: var(--text-sm); color: var(--color-cool); font-variant-numeric: tabular-nums slashed-zero; }

@media (min-width: 60rem) {
  .readings { min-height: 190vh; padding-block: 0; }
  .readings__pin { position: sticky; top: 0; padding-block: var(--space-2xl) var(--space-3xl); }
}
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) and (min-width: 60rem) {
    .readings { view-timeline: --readings block; }
    .panels > li { animation: lit linear both; animation-timeline: --readings; }
    .panels > li:nth-child(1) { animation-range: cover 0% contain 10%; }
    .panels > li:nth-child(2) { animation-range: contain 10% contain 35%; }
    .panels > li:nth-child(3) { animation-range: contain 35% contain 60%; }
    .panels > li:nth-child(4) { animation-range: contain 60% contain 85%; }
    @keyframes lit { from { opacity: 0.35; } to { opacity: 1; } }
  }
}
/* browsers without scroll timelines: the same rows, revealed once by main.js; hidden only once the script has run */
@media (prefers-reduced-motion: no-preference) and (min-width: 60rem) {
  .js.no-timeline .panels > li { opacity: 0.35; transition: opacity var(--dur-long) var(--ease-out); transition-delay: calc(var(--i, 0) * 90ms); }
  .js.no-timeline .panels.is-seen > li { opacity: 1; }
}

/* ---------- questions ---------- */
.faq { background: var(--color-paper-2); padding-block: var(--section-gap-s) var(--section-gap); border-block: var(--rule-hair) solid var(--color-rule); }
.faq__in { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: var(--gap-columns); align-items: start; }
.faq__head { display: grid; gap: var(--space-md); }
.faq__head h2 { max-width: 10ch; }
.faq__list { border-top: var(--rule-hair) solid var(--color-rule-2); }
.faq details { border-bottom: var(--rule-hair) solid var(--color-rule); }
.faq summary { list-style: none; display: grid; grid-template-columns: minmax(0, 1fr) 24px; align-items: center; gap: var(--space-lg); padding-block: var(--space-lg); cursor: pointer; border-radius: var(--radius-pill); transition: color var(--dur-short) var(--ease-out); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--color-accent); }
.faq summary h3 { font-size: var(--text-title); max-width: none; }
.faq .toggle { width: 14px; height: 14px; justify-self: end; border-right: 2px solid var(--color-muted); border-bottom: 2px solid var(--color-muted); transform: translateY(-3px) rotate(45deg); transition: transform var(--dur-short) var(--ease-out); }
.faq details[open] .toggle { transform: translateY(3px) rotate(225deg); }
.faq .answer { padding-bottom: var(--space-lg); color: var(--color-ink-2); }
.faq details:not([open]) .answer { display: none; }
.faq .answer p { max-width: 58ch; }
@media (prefers-reduced-motion: no-preference) {
  .faq details[open] .answer { animation: open-answer var(--dur-long) var(--ease-out); }
  @keyframes open-answer { from { opacity: 0; transform: translateY(-4px); } }
}

/* ---------- footer: statement ---------- */
.close { background: var(--color-paper-3); padding-block: var(--section-gap) var(--space-2xl); }
.close__in { display: grid; gap: var(--space-xl); }
.close h2 { font-size: var(--text-section); max-width: 16ch; }
.phone { font-family: var(--font-display); font-weight: 500; font-size: var(--text-display); letter-spacing: var(--tracking-display); line-height: 1; color: var(--color-ink); text-decoration: none; font-variant-numeric: tabular-nums; white-space: nowrap; width: fit-content; border-radius: var(--radius-pill); transition: color var(--dur-short) var(--ease-out); }
.phone:hover { color: var(--color-accent); }
.close__links { display: flex; flex-wrap: wrap; gap: var(--space-md); align-items: center; }
.colophon { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-md); margin-top: var(--space-2xl); padding-top: var(--space-lg); border-top: var(--rule-hair) solid var(--color-rule); color: var(--color-muted); font-size: var(--text-sm); }
.colophon .brand { gap: var(--space-xs); }
.colophon .mark { width: 24px; }
.colophon .brand__word { font-size: var(--text-md); }

/* ---------- narrow screens ---------- */
@media (max-width: 60rem) {
  .readings__pin, .faq__in { grid-template-columns: minmax(0, 1fr); gap: var(--space-xl); }
  .hero { min-height: 0; }
}
@media (max-width: 40rem) {
  .masthead__in { grid-template-columns: minmax(0, 1fr) auto; }
  .brand { grid-column: 1; justify-self: start; }
  .masthead__end { grid-column: 2; gap: var(--space-md); }
  .masthead__act { display: none; }
  .panels > li { grid-template-columns: minmax(0, 5.5rem) minmax(0, 1fr); padding: var(--space-md) var(--space-lg); gap: var(--space-md); }
  .phone { font-size: var(--text-display-s); }
  .btn { width: 100%; }
}
