/* ==========================================================================
   AccesaX marketing homepage
   Design language: a night-shift gate console — graphite-navy control-room
   bands alternating with clean spec-sheet light bands, condensed signage
   type for headlines, monospace for telemetry/status readouts.
   ========================================================================== */

:root {
  --ink: #101826;
  --panel: #182338;
  --panel-line: rgba(237, 239, 243, 0.14);
  --paper: #F3F5F7;
  --paper-panel: #FFFFFF;
  --paper-line: rgba(16, 24, 38, 0.12);

  --text-on-dark: #EDEFF3;
  --muted-on-dark: #8B93A3;
  --text-on-light: #101826;
  --muted-on-light: #5B6472;

  --signal-green: #2FD07D;
  --signal-amber: #F0A93B;
  --signal-red: #E5533D;

  --display: 'Barlow Condensed', sans-serif;
  --body: 'Inter', sans-serif;
  --mono: 'IBM Plex Mono', monospace;

  --container: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--body);
  color: var(--text-on-light);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
}

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.05;
  margin: 0;
}

h2 {
  font-size: clamp(2rem, 3.2vw, 2.75rem);
  text-transform: uppercase;
}

p { line-height: 1.6; }

.section {
  padding: 96px 0;
}

@media (max-width: 640px) {
  .section { padding: 64px 0; }
}

.section--dark {
  background: var(--ink);
  color: var(--text-on-dark);
}

.section-head {
  max-width: 620px;
  margin-bottom: 48px;
}

.section-head .eyebrow { color: var(--signal-green); margin-bottom: 10px; display: block; }
.section--dark .section-head p { color: var(--muted-on-dark); }
.section-head p { color: var(--muted-on-light); margin-top: 12px; font-size: 1.05rem; }

/* ---------- Nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(16, 24, 38, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--panel-line);
}

.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  white-space: nowrap;
  gap: 10px;
  font-family: var(--display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-on-dark);
  text-decoration: none;
  letter-spacing: 0.02em;
}

.brand .dot { color: var(--signal-green); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--muted-on-dark);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
}
.nav-links a:hover { color: var(--text-on-dark); }

.nav-actions { display: flex; align-items: center; gap: 14px; flex: none; }

.lang-switch {
  display: flex;
  align-items: center;
}

.lang-switch select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-color: transparent;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%238B93A3' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 9px center;
  border: 1px solid var(--panel-line);
  border-radius: 5px;
  color: var(--muted-on-dark);
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.03em;
  padding: 5px 26px 5px 10px;
  cursor: pointer;
}
.lang-switch select:hover,
.lang-switch select:focus {
  color: var(--text-on-dark);
  border-color: var(--text-on-dark);
  outline: none;
}
.lang-switch select option {
  background: var(--ink);
  color: var(--text-on-dark);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.nav-signin {
  color: var(--text-on-dark);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
}

.nav-toggle { display: none; }

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-toggle {
    display: inline-flex;
    background: none;
    border: 1px solid var(--panel-line);
    color: var(--text-on-dark);
    border-radius: 6px;
    padding: 6px 10px;
    font-family: var(--mono);
    font-size: 0.8rem;
  }
}

@media (max-width: 560px) {
  .nav .container { gap: 10px; }
  .nav-actions { gap: 10px; }
  .lang-switch select { padding: 5px 20px 5px 8px; font-size: 0.68rem; }
}

@media (max-width: 420px) {
  .nav-signin { display: none; }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 13px 24px;
  border-radius: 6px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn:active { transform: translateY(1px); }

.btn--signal {
  background: var(--signal-green);
  color: #06251A;
}
.btn--signal:hover { background: #45DB8E; }

.btn--outline-dark {
  background: transparent;
  border-color: var(--panel-line);
  color: var(--text-on-dark);
}
.btn--outline-dark:hover { border-color: var(--text-on-dark); }

.btn--outline-light {
  background: transparent;
  border-color: var(--paper-line);
  color: var(--text-on-light);
}
.btn--outline-light:hover { border-color: var(--text-on-light); }

.btn--block { width: 100%; }

/* ---------- Hero ---------- */

.hero {
  background: var(--ink);
  color: var(--text-on-dark);
  padding: 88px 0 0;
  overflow: hidden;
}

.hero .container {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
  padding-bottom: 64px;
}

@media (max-width: 940px) {
  .hero .container { grid-template-columns: 1fr; padding-bottom: 40px; }
}

.hero-eyebrow {
  color: var(--signal-green);
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(2.6rem, 5.6vw, 4.4rem);
  text-transform: uppercase;
}

.hero h1 em {
  font-style: normal;
  color: var(--signal-green);
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--muted-on-dark);
  max-width: 46ch;
  margin: 22px 0 34px;
}

.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-compat {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 22px;
  padding: 8px 15px;
  border: 1px solid rgba(47, 208, 125, 0.38);
  border-radius: 999px;
  background: rgba(47, 208, 125, 0.09);
  color: var(--text-on-dark);
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.2;
}
.hero-compat svg { width: 17px; height: 17px; color: var(--signal-green); flex: none; }

.hero-note {
  margin-top: 16px;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--muted-on-dark);
  letter-spacing: 0.04em;
}

/* ---------- Hero signature: gate + status panel ---------- */

.hero-rig {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.rig-stage {
  position: relative;
  width: 100%;
  max-width: 420px;
  /* reserves room below the gate art for the phone, which overlaps it */
  margin-bottom: 74px;
}

.gate-scene {
  display: block;
  width: 100%;
}

/* Two scenes (vehicle barrier, pedestrian gate) cross-fade in the same spot —
   AccesaX opens both kinds of "puerta", not just a parking barrier. The
   barrier sits in normal flow (establishing the stage's height); the door
   overlays it absolutely. Both loop every 6s in sync with the phone mockup;
   the pair alternates over a 12s outer cycle. */
.scene-stack {
  position: relative;
  width: 100%;
}

.scene-door {
  position: absolute;
  top: 0;
  left: 0;
}

.scene-barrier { animation: show-barrier-scene 12s ease-in-out infinite; }
.scene-door { animation: show-door-scene 12s ease-in-out infinite; }

@keyframes show-barrier-scene {
  0%, 46% { opacity: 1; }
  50%, 96% { opacity: 0; }
  100% { opacity: 0; }
}
@keyframes show-door-scene {
  0%, 46% { opacity: 0; }
  50%, 96% { opacity: 1; }
  100% { opacity: 0; }
}

.barrier-arm {
  transform-origin: 38px 168px;
  animation: barrier-cycle 6s ease-in-out infinite;
}

/* Synced to the phone mockup's cycle below: the arm lifts right as the
   phone's "Gate opened" state appears (show-success, 66%–92%) and lowers
   again as it fades back to idle. */
@keyframes barrier-cycle {
  0%, 62% { transform: rotate(0deg); }
  72%, 90% { transform: rotate(-62deg); }
  100% { transform: rotate(0deg); }
}

.door-leaf {
  transform-box: fill-box;
  transform-origin: left center;
  animation: door-swing 6s ease-in-out infinite;
}

/* Same timing shape as barrier-cycle (open window lands in the second half
   of the door scene's 6s-visible window, so it lines up with the phone's
   "Gate opened" state the same way the barrier does). Scaling the leaf's
   width toward zero reads as it swinging open on a hinge at its left edge. */
@keyframes door-swing {
  0%, 62% { transform: scaleX(1); }
  72%, 90% { transform: scaleX(0.08); }
  100% { transform: scaleX(1); }
}

.led {
  animation: pulse-led 2.4s ease-in-out infinite;
}
.led--amber { animation-delay: 0.6s; }

@keyframes pulse-led {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.status-panel {
  width: 100%;
  max-width: 420px;
  background: var(--panel);
  border: 1px solid var(--panel-line);
  border-radius: 10px;
  padding: 18px 20px;
  font-family: var(--mono);
  font-size: 0.82rem;
}

.status-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--panel-line);
  color: var(--muted-on-dark);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--signal-green);
}
.live-pill .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--signal-green);
  animation: pulse-led 1.6s ease-in-out infinite;
}

.log-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 0;
  color: var(--text-on-dark);
}

.log-row .status-dot {
  width: 8px; height: 8px; border-radius: 50%; flex: none;
}
.status-dot--green { background: var(--signal-green); }
.status-dot--amber { background: var(--signal-amber); }

.log-row .who { flex: 1; color: var(--muted-on-dark); }
.log-row .ts { color: var(--muted-on-dark); }

/* ---------- Trust strip ---------- */

.trust-strip {
  background: var(--paper-panel);
  border-bottom: 1px solid var(--paper-line);
  padding: 28px 0;
}

.trust-strip .container {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 34px;
  align-items: center;
  justify-content: space-between;
}

.trust-strip .label {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-on-light);
}

.role-chips { display: flex; flex-wrap: wrap; gap: 10px; }

.role-chip {
  font-size: 0.85rem;
  font-weight: 500;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--paper-line);
  color: var(--text-on-light);
}

/* ---------- Feature grid ---------- */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--paper-line);
  border: 1px solid var(--paper-line);
}

.feature-grid--admin { grid-template-columns: 1fr 1fr; }

@media (max-width: 860px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .feature-grid, .feature-grid--admin { grid-template-columns: 1fr; }
}

.feature-card {
  background: var(--paper-panel);
  padding: 32px 28px;
}

.feature-icon {
  width: 34px; height: 34px;
  margin-bottom: 18px;
  color: var(--signal-green);
}

.feature-card h3 {
  font-size: 1.2rem;
  text-transform: none;
  margin-bottom: 10px;
}

.feature-card p {
  color: var(--muted-on-light);
  font-size: 0.95rem;
  margin: 0;
}

/* ---------- How it works ---------- */

.flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  position: relative;
}

@media (max-width: 1020px) {
  .flow { grid-template-columns: repeat(2, 1fr); gap: 40px 32px; }
}
@media (max-width: 560px) {
  .flow { grid-template-columns: 1fr; }
}

.flow-step { position: relative; }

.flow-num {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--signal-green);
  display: block;
  margin-bottom: 14px;
}

.flow-step h3 {
  font-size: 1.3rem;
  text-transform: none;
  margin-bottom: 10px;
  color: var(--text-on-dark);
}

.flow-step p {
  color: var(--muted-on-dark);
  font-size: 0.95rem;
}

.flow-rule {
  position: absolute;
  top: 8px;
  left: -16px;
  width: 32px;
  border-top: 1px dashed var(--panel-line);
}
.flow-step:first-child .flow-rule { display: none; }

@media (max-width: 1020px) {
  .flow-rule { display: none; }
}

/* ---------- Competitive-framing comparison ---------- */

.compare-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--paper-line);
  border: 1px solid var(--paper-line);
}
@media (max-width: 860px) {
  .compare-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .compare-grid { grid-template-columns: 1fr; }
}
.compare-card {
  background: var(--paper-panel);
  padding: 28px 24px;
}
.compare-card h3 {
  font-size: 1.05rem;
  text-transform: none;
  margin-bottom: 10px;
}
.compare-card p {
  color: var(--muted-on-light);
  font-size: 0.9rem;
  margin: 0;
}

/* ---------- Testimonial / role cards ---------- */

.quote-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

@media (max-width: 1020px) {
  .quote-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .quote-grid { grid-template-columns: 1fr; }
}

.quote-card {
  background: var(--paper-panel);
  border: 1px solid var(--paper-line);
  border-radius: 10px;
  padding: 28px;
}

.quote-card p.quote {
  font-size: 1.02rem;
  color: var(--text-on-light);
  margin: 0 0 18px;
}

.quote-role {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--muted-on-light);
  text-transform: uppercase;
}

/* ---------- Pricing teaser ---------- */

.pricing-band {
  background: var(--panel);
  border-top: 1px solid var(--panel-line);
  border-bottom: 1px solid var(--panel-line);
}

.pricing-inner {
  display: flex;
  justify-content: center;
}

.price-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 460px;
}

.price-amount {
  font-family: var(--display);
  font-size: clamp(3.2rem, 7vw, 4.6rem);
  font-weight: 800;
  color: var(--text-on-dark);
  line-height: 1;
  margin: 10px 0 6px;
}
.price-amount span {
  font-family: var(--mono);
  font-size: 1rem;
  font-weight: 400;
  color: var(--muted-on-dark);
  vertical-align: middle;
  margin-left: 6px;
}

.price-card > p {
  color: var(--muted-on-dark);
  max-width: 38ch;
}

.price-card .tax-note {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--signal-green);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin: 0 0 10px;
}

.price-card .price-why {
  font-size: 0.85rem;
  color: var(--muted-on-dark);
  max-width: 44ch;
  margin: 0 0 8px;
}

.price-card .price-context {
  font-size: 0.85rem;
  color: var(--muted-on-dark);
  max-width: 44ch;
  margin: 0 0 22px;
}

.eyebrow--batch {
  color: var(--muted-on-dark);
  margin-top: 4px;
}

.price-includes {
  list-style: none;
  margin: 22px 0 30px;
  padding: 0;
  display: grid;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--text-on-dark);
}
.price-includes li { display: flex; align-items: center; gap: 8px; justify-content: center; }
.price-includes li::before {
  content: '\2713';
  color: var(--signal-green);
  font-weight: 700;
}

.guarantee-line {
  margin-top: 18px;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--signal-green);
  letter-spacing: 0.03em;
}

/* ---------- FAQ ---------- */

.faq-list { border-top: 1px solid var(--paper-line); }

.faq-item {
  border-bottom: 1px solid var(--paper-line);
}

.faq-item summary {
  padding: 22px 4px;
  cursor: pointer;
  font-family: var(--display);
  font-size: 1.15rem;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: '+';
  font-family: var(--mono);
  color: var(--muted-on-light);
  font-size: 1.3rem;
}
.faq-item[open] summary::after { content: '\2212'; }

.faq-item p {
  padding: 0 4px 22px;
  color: var(--muted-on-light);
  max-width: 68ch;
}

/* ---------- Resident-referral strip ---------- */

.refer-strip {
  background: var(--paper-panel);
  border-top: 1px solid var(--paper-line);
  border-bottom: 1px solid var(--paper-line);
  padding: 44px 0;
}

.refer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.refer-copy { max-width: 60ch; }
.refer-copy h3 {
  font-size: 1.25rem;
  text-transform: none;
  margin: 8px 0 8px;
}
.refer-copy p { color: var(--muted-on-light); margin: 0; }

/* ---------- Order form ---------- */

.order-band { background: var(--ink); color: var(--text-on-dark); }

.order-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: start;
}

@media (max-width: 860px) {
  .order-layout { grid-template-columns: 1fr; }
}

.order-copy h2 { text-align: left; }
.order-copy p { color: var(--muted-on-dark); margin-top: 16px; max-width: 42ch; }

.reassure-list {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
  max-width: 42ch;
  font-size: 0.92rem;
  color: var(--muted-on-dark);
}
.reassure-list li { display: flex; align-items: flex-start; gap: 8px; }
.reassure-list li::before {
  content: '\2713';
  color: var(--signal-green);
  font-weight: 700;
  flex: none;
}

.order-form {
  background: var(--paper-panel);
  color: var(--text-on-light);
  border-radius: 10px;
  padding: 36px;
}

.form-row { margin-bottom: 18px; }
.form-row--split { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 520px) { .form-row--split { grid-template-columns: 1fr; } }

.form-row label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.form-row input[type="text"],
.form-row input[type="email"],
.form-row input[type="tel"],
.form-row textarea {
  width: 100%;
  font-family: var(--body);
  font-size: 0.95rem;
  padding: 11px 13px;
  border: 1px solid var(--paper-line);
  border-radius: 6px;
  background: var(--paper);
  color: var(--text-on-light);
}
.form-row input:focus,
.form-row textarea:focus {
  outline: 2px solid var(--signal-green);
  outline-offset: 1px;
}

.form-row textarea { resize: vertical; min-height: 88px; }

.role-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.role-options label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  font-size: 0.92rem;
}
.role-options input { accent-color: var(--signal-green); }

.field-error {
  color: var(--signal-red);
  font-size: 0.8rem;
  margin-top: 6px;
}

.form-fineprint {
  font-size: 0.78rem;
  color: var(--muted-on-light);
  margin-top: 14px;
}

/* ---------- Footer ---------- */

.footer {
  background: #0B121E;
  color: var(--muted-on-dark);
  padding: 56px 0 32px;
}

.footer .container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 32px;
}

.footer .brand { margin-bottom: 10px; }

.footer-col h4 {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-on-dark);
  margin: 0 0 14px;
}

.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-col a { color: var(--muted-on-dark); text-decoration: none; font-size: 0.9rem; }
.footer-col a:hover { color: var(--text-on-dark); }

.footer-legal {
  margin-top: 40px;
  font-family: var(--mono);
  font-size: 0.76rem;
  color: var(--muted-on-dark);
}

.footer-bottom {
  margin-top: 20px;
  padding-top: 24px;
  border-top: 1px solid var(--panel-line);
  font-size: 0.8rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

/* ---------- Thank-you page ---------- */

.thanks {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ink);
  color: var(--text-on-dark);
  text-align: center;
  padding: 24px;
}
.thanks-card { max-width: 480px; }
.thanks h1 { font-size: clamp(2rem, 4vw, 2.6rem); text-transform: uppercase; margin-bottom: 16px; }
.thanks p { color: var(--muted-on-dark); margin-bottom: 28px; }

/* ---------- Hero: phone mockup of the actual "Open Gate" action ---------- */

.phone-frame {
  aspect-ratio: 9 / 19.5;
  background: #0B121E;
  border: 1px solid var(--panel-line);
  border-radius: 28px;
  padding: 12px 9px;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
}

/* Overlaps the gate art as a foreground device, instead of stacking below it.
   Sized larger only above the 940px breakpoint where hero-copy and hero-rig sit
   side by side (see .hero .container) — below that, hero-copy stacks ABOVE
   hero-rig in normal flow, so a taller phone here would poke upward into the
   copy text above it (this exact regression was caught via a mobile screenshot). */
.rig-stage .phone-frame {
  position: absolute;
  right: 4%;
  bottom: -58px;
  width: 34%;
  max-width: 152px;
  min-width: 118px;
  z-index: 2;
}

@media (min-width: 941px) {
  .rig-stage .phone-frame {
    width: 42%;
    max-width: 190px;
    min-width: 148px;
  }
}

.phone-frame--small {
  width: 148px;
  margin: 0 auto;
}

.phone-notch {
  flex: none;
  width: 60px;
  height: 6px;
  border-radius: 4px;
  background: #2A3752;
  margin: 0 auto 10px;
}

.phone-screen {
  flex: 1;
  min-height: 0;
  background: var(--paper);
  border-radius: 20px;
  padding: 14px 10px 16px;
  color: var(--text-on-light);
  display: flex;
  flex-direction: column;
}

.phone-topbar {
  flex: none;
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted-on-light);
  margin-bottom: 10px;
}

.phone-gate-card {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--paper-panel);
  border: 1px solid var(--paper-line);
  border-radius: 10px;
  padding: 12px 8px;
  text-align: center;
}

.phone-door-icon {
  flex: none;
  width: 22px;
  height: 22px;
  margin: 0 auto 8px;
  color: var(--signal-green);
}

.phone-gate-name {
  font-family: var(--display);
  font-size: 0.88rem;
  line-height: 1.15;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.phone-open-btn {
  position: relative;
  flex: none;
  height: 40px;
  border-radius: 8px;
  background: var(--signal-green);
  overflow: hidden;
  animation: phone-btn-bg 6s ease-in-out infinite;
}

.phone-open-btn .state {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 3px 6px;
  font-family: var(--body);
  font-weight: 600;
  font-size: 0.66rem;
  line-height: 1.2;
  color: #06251A;
  opacity: 0;
}

.phone-open-btn .state .spin-dot {
  flex: none;
}

.phone-open-btn .state .state-text {
  min-width: 0;
  text-align: center;
  overflow-wrap: break-word;
}

.state--idle { animation: show-idle 6s ease-in-out infinite; }
.state--sending { animation: show-sending 6s ease-in-out infinite; color: #4A3308 !important; }
.state--success { animation: show-success 6s ease-in-out infinite; }

.state--sending .spin-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: currentColor;
  animation: pulse-led 0.9s ease-in-out infinite;
}

@keyframes show-idle {
  0%, 26% { opacity: 1; }
  32%, 100% { opacity: 0; }
}
@keyframes show-sending {
  0%, 28% { opacity: 0; }
  34%, 58% { opacity: 1; }
  64%, 100% { opacity: 0; }
}
@keyframes show-success {
  0%, 60% { opacity: 0; }
  66%, 92% { opacity: 1; }
  98%, 100% { opacity: 0; }
}
@keyframes phone-btn-bg {
  0%, 28% { background: var(--signal-green); }
  34%, 58% { background: var(--signal-amber); }
  64%, 100% { background: var(--signal-green); }
}

.hero-rig-caption {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-on-dark);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--panel-line);
  border-radius: 999px;
  padding: 7px 15px;
  margin-top: 4px;
}
.hero-rig-caption .cap-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--signal-green);
  flex: none;
  animation: pulse-led 1.6s ease-in-out infinite;
}

/* ---------- Step visuals (How it works) ---------- */

.step-visual { margin-top: 20px; }

.browser-frame {
  background: var(--paper-panel);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.3);
}

.browser-frame .chrome {
  height: 22px;
  background: #E7E9ED;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 10px;
}
.browser-frame .chrome span {
  width: 6px; height: 6px; border-radius: 50%; background: #C7CBD3;
}

.browser-frame .screen {
  padding: 14px;
  color: var(--text-on-light);
  font-family: var(--body);
}

/* Step 1 — hardware diagram */

.hw-diagram {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--panel);
  border: 1px solid var(--panel-line);
  border-radius: 10px;
  padding: 18px;
}

.hw-unit {
  flex: none;
  width: 108px;
  height: auto;
}
.hw-led { animation: pulse-led 2.2s ease-in-out infinite; }

.hw-callouts { font-size: 0.85rem; color: var(--muted-on-dark); }
.hw-callouts div { margin-bottom: 5px; }
.hw-callouts strong { color: var(--text-on-dark); font-weight: 600; }
.hw-code {
  display: inline-block;
  margin-top: 4px;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  background: var(--ink);
  border: 1px solid var(--panel-line);
  color: var(--signal-green);
  padding: 2px 8px;
  border-radius: 4px;
}

/* Step 2 — invite link screen */

.invite-mock .screen { font-size: 0.78rem; }
.invite-mock .check {
  color: var(--signal-green);
  font-size: 1.3rem;
  margin-bottom: 4px;
}
.invite-mock h4 {
  font-family: var(--display);
  font-size: 1rem;
  text-transform: uppercase;
  margin: 0 0 8px;
}
.invite-mock .link-row {
  display: flex;
  gap: 6px;
  margin-top: 8px;
}
.invite-mock .link-row input {
  flex: 1;
  font-family: var(--mono);
  font-size: 0.68rem;
  padding: 6px 8px;
  border-radius: 4px;
  border: 1px solid var(--paper-line);
  background: var(--paper);
  color: var(--muted-on-light);
}
.invite-mock .link-row button {
  font-family: var(--body);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 4px;
  border: 1px solid var(--paper-line);
  background: var(--paper-panel);
  color: var(--text-on-light);
}
.invite-mock .meta { color: var(--muted-on-light); font-size: 0.72rem; margin-top: 8px; }

/* Step 3 — monitoring table */

.monitor-mock .screen { padding: 10px 12px; }
.monitor-mock table { width: 100%; border-collapse: collapse; font-size: 0.7rem; }
.monitor-mock th {
  text-align: left;
  font-family: var(--mono);
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted-on-light);
  padding-bottom: 6px;
  border-bottom: 1px solid var(--paper-line);
}
.monitor-mock td {
  padding: 6px 0;
  border-bottom: 1px solid var(--paper-line);
  color: var(--text-on-light);
}
.monitor-mock .badge {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 999px;
  color: #fff;
}
.monitor-mock .badge--online { background: var(--signal-green); }
.monitor-mock .badge--offline { background: var(--signal-red); }

/* ---------- Property-type strip ---------- */

.property-strip {
  background: var(--panel);
  border-bottom: 1px solid var(--panel-line);
  padding: 28px 0;
}
.property-strip .label {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-on-dark);
  display: block;
  margin-bottom: 14px;
}
.property-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 32px;
}
.property-chip {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--text-on-dark);
  font-size: 0.88rem;
}
.property-chip svg {
  width: 20px;
  height: 20px;
  flex: none;
  color: var(--signal-green);
}

/* ---------- Product screenshots ---------- */

.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}
@media (max-width: 860px) {
  .screenshot-grid { grid-template-columns: 1fr; }
}
.screenshot-card .browser-frame { box-shadow: 0 24px 56px rgba(0, 0, 0, 0.16); }
.screenshot-caption {
  margin-top: 14px;
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--muted-on-light);
  text-align: center;
}

.console-mock .screen { padding: 22px; font-size: 0.85rem; }
.console-title {
  font-family: var(--display);
  font-size: 1.15rem;
  text-transform: uppercase;
  color: var(--text-on-light);
  margin-bottom: 16px;
}
.console-form {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--paper-line);
}
.console-field label {
  display: block;
  font-size: 0.72rem;
  color: var(--muted-on-light);
  margin-bottom: 4px;
}
.console-input {
  border: 1px solid var(--paper-line);
  border-radius: 5px;
  padding: 8px 10px;
  background: var(--paper);
  color: var(--text-on-light);
  font-size: 0.85rem;
}
.console-submit {
  display: inline-block;
  background: var(--signal-green);
  color: #06251A;
  font-weight: 600;
  font-size: 0.82rem;
  padding: 8px 16px;
  border-radius: 5px;
  width: fit-content;
}
.console-stats {
  display: flex;
  gap: 28px;
  margin-bottom: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--paper-line);
}
.console-stat { display: flex; flex-direction: column; }
.console-stat .stat-num {
  font-family: var(--display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-on-light);
  line-height: 1;
}
.console-stat .stat-label {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--muted-on-light);
  text-transform: uppercase;
  margin-top: 4px;
}
.console-log { display: grid; gap: 9px; }
.console-log-row {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.82rem;
  color: var(--text-on-light);
}
.console-log-row .dot { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.console-log-row .dot--green { background: var(--signal-green); }
.console-log-row .dot--amber { background: var(--signal-amber); }
.console-log-row .who { flex: 1; }
.console-log-row .time { color: var(--muted-on-light); font-family: var(--mono); font-size: 0.75rem; }
.badge-mini {
  font-size: 0.68rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  color: #fff;
}
.badge-mini--online { background: var(--signal-green); }
.badge-mini--offline { background: var(--signal-red); }

/* ---------- "Your gate never depends on us" callout ---------- */

.dependence-callout {
  margin-top: 56px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background: var(--panel);
  border: 1px solid var(--signal-green);
  border-radius: 10px;
  padding: 28px 32px;
}
.dependence-icon {
  width: 30px;
  height: 30px;
  flex: none;
  color: var(--signal-green);
  margin-top: 2px;
}
.dependence-callout h3 {
  font-size: 1.25rem;
  text-transform: none;
  color: var(--text-on-dark);
  margin-bottom: 8px;
}
.dependence-callout p {
  color: var(--muted-on-dark);
  font-size: 0.95rem;
  margin: 0;
  max-width: 68ch;
}

/* ---------- Live-demo CTA (reuses the former early-customers honesty section shape) ---------- */

.demo-cta {
  background: var(--paper-panel);
  border-top: 1px solid var(--paper-line);
  border-bottom: 1px solid var(--paper-line);
  padding: 64px 0;
  text-align: center;
}
.demo-cta-inner { max-width: 540px; margin: 0 auto; }
.demo-cta h2 { margin: 14px 0 10px; font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
.demo-cta p { color: var(--muted-on-light); margin-bottom: 24px; }

/* ---------- Controller explainer (with wiring diagram) ---------- */

.controller-explainer {
  margin-top: 56px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 860px) {
  .controller-explainer { grid-template-columns: 1fr; }
}
.controller-explainer h3 {
  font-size: 1.3rem;
  text-transform: none;
  margin-bottom: 12px;
}
.controller-explainer p {
  color: var(--muted-on-light);
  font-size: 0.98rem;
}
.wiring-diagram {
  background: var(--ink);
  border-radius: 10px;
  padding: 24px;
}
.wiring-diagram svg { width: 100%; height: auto; }
.wiring-caption {
  margin-top: 12px;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--muted-on-dark);
  text-align: center;
}

/* ---------- Refer strip: multiple actions ---------- */

.refer-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Resident-first block (scenes, deliberately uneven) ---------- */

.resident-scenes { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.scene { background: var(--paper-panel); border: 1px solid var(--paper-line); border-radius: 14px; padding: 30px 28px; }
.scene h3 { font-size: 1.35rem; text-transform: none; margin-bottom: 12px; }
.scene p { color: var(--muted-on-light); margin: 0; }
.scene--lead { grid-column: 1 / -1; background: var(--ink); border-color: var(--ink); color: var(--text-on-dark); padding: 40px 36px; }
.scene--lead h3 { color: var(--text-on-dark); font-size: clamp(1.55rem, 2.6vw, 2.05rem); }
.scene--lead p { color: var(--muted-on-dark); font-size: 1.1rem; max-width: 58ch; }
.scene--short { display: flex; align-items: center; background: transparent; border-style: dashed; }
.scene--short p { color: var(--text-on-light); font-size: 1.1rem; }
@media (max-width: 720px) { .resident-scenes { grid-template-columns: 1fr; } }

/* ---------- Lighter refer nudge (at peak resident interest) ---------- */

.refer-mini { border-top: 1px solid var(--paper-line); border-bottom: 1px solid var(--paper-line); background: var(--paper); }
.refer-mini-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 24px 0; flex-wrap: wrap; }
.refer-mini p { color: var(--text-on-light); font-weight: 500; margin: 0; max-width: 62ch; }

/* ---------- FAQ audience groups ---------- */

.faq-group {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--signal-green);
  margin: 40px 0 4px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--paper-line);
}
.faq-group:first-child { margin-top: 0; }

/* ---------- Caseta privacy-notice offer ---------- */

.caseta-notice-inner {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
  border: 1px solid var(--paper-line);
  border-radius: 16px;
  padding: 46px 40px;
  background: var(--paper-panel);
}
.caseta-notice-inner .eyebrow { color: var(--signal-green); display: block; margin-bottom: 12px; }
.caseta-notice-inner h2 { margin-bottom: 16px; }
.caseta-notice-inner p { color: var(--muted-on-light); max-width: 62ch; margin: 0 auto; font-size: 1.05rem; }

/* ---------- Consent checkbox ---------- */

.form-consent { display: flex; align-items: flex-start; gap: 10px; }
.form-consent input[type="checkbox"] { margin-top: 3px; flex: none; width: 16px; height: 16px; accent-color: var(--signal-green); }
.form-consent label { display: inline; margin: 0; font-weight: 400; font-size: 0.85rem; color: var(--muted-on-dark); }
.form-consent a { color: var(--signal-green); }

/* ---------- Legal / compliance pages ---------- */

.legal-page { min-height: 58vh; }
.legal-page h1 { font-size: clamp(2rem, 4vw, 3rem); text-transform: uppercase; margin-bottom: 20px; }
.legal-preparing { color: var(--muted-on-light); max-width: 62ch; margin: 0 0 28px; font-size: 1.05rem; }

/* ---------- Footer legal links ---------- */

.footer-links { display: flex; flex-wrap: wrap; gap: 8px 20px; padding-top: 18px; }
.footer-links a { color: var(--muted-on-dark); font-size: 0.85rem; }
.footer-links a:hover { color: var(--text-on-dark); }

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  .barrier-arm { animation: none; transform: rotate(-62deg); }
  .door-leaf { animation: none; transform: scaleX(0.08); }
  .scene-barrier, .scene-door { animation: none; }
  .scene-barrier { opacity: 1; }
  .scene-door { opacity: 0; }
  .led, .live-pill .dot, .hw-led, .hero-rig-caption .cap-dot { animation: none; }
  .phone-open-btn { animation: none; background: var(--signal-green); }
  .state--idle { animation: none; opacity: 0; }
  .state--sending { animation: none; opacity: 0; }
  .state--success { animation: none; opacity: 1; }
  html { scroll-behavior: auto; }
}
