/* ==========================================================================
   XFI HOMEPAGE — STYLESHEET v1.0.0
   The only stylesheet index.php loads (plus the Archivo webfont from Google
   Fonts). Replaces plugins.css + style.css (Bootstrap 4, FontAwesome,
   Revolution Slider ...), which are left on disk untouched for rollback.

   Identity: professional first, with the product supplying the character.
   Deep indigo ink and clean white/cloud sections carry the page; kiosk aqua
   (the casing colour in img/vendo-collage.jpg) is the one accent colour,
   coin gold marks the peso coin, and vendo pink appears only in small
   touches. One typeface, Archivo: condensed (font-stretch 75%) and heavy
   for headings, normal width for reading.
   The one moving moment is the hero kiosk: a coin drops into the slot and
   the WiFi signal lights up, once, on load. Everything else stays still.
   Served with cache-control max-age=86400: after editing this file, bump the ?v= on its
   <link> in index.php (v=3 since 2026-10-24, partnered businesses) or visitors keep the old copy.
   LF line endings throughout.
   ========================================================================== */

/* 1. TOKENS =============================================================== */
:root {
  --ink: #17143A;         /* text, dark sections */
  --ink-raised: #221E4C;
  --ink-soft: #4B4868;    /* secondary text on white */
  --mist: #C9C6E3;        /* secondary text on ink */
  --aqua: #2EC4D3;        /* vendo casing, the accent */
  --aqua-deep: #0B7480;   /* aqua for text/links on white */
  --gold: #FFC53D;        /* peso coin */
  --gold-deep: #C98A00;
  --pink: #F45BA5;        /* vendo casing, small touches only */
  --paper: #FFFFFF;
  --cloud: #F4F5F9;
  --line: #E1E2EC;
  --bad: #A3001F;
  --good: #0B6B45;

  --font: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --narrow: 75%;
  --radius: 14px;

  --wrap: 1160px;
  --gutter: 20px;
  --header-h: 66px;
}

/* 2. BASE ================================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { margin: 0; font-weight: 800; font-stretch: var(--narrow); line-height: 1; letter-spacing: -0.01em; }
h2 { font-size: clamp(36px, 4.6vw, 56px); margin-bottom: 18px; }
h3 { font-size: 24px; line-height: 1.1; }
p { margin: 0 0 16px; }
a { color: var(--aqua-deep); text-decoration-thickness: 1px; text-underline-offset: 4px; }
:focus-visible { outline: 3px solid var(--aqua-deep); outline-offset: 3px; border-radius: 4px; }
/* Bright aqua only where it contrasts: on the indigo blocks (aqua-deep on white is 5.5:1, aqua is 2.1:1) */
.site-header :focus-visible, .hero :focus-visible, .console :focus-visible, .site-footer :focus-visible { outline-color: var(--aqua); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 8px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--paper); color: var(--ink); font-weight: 700; }
.skip-link:focus { top: 8px; }

.checks { list-style: none; margin: 0 0 20px; padding: 0; }
.checks li { position: relative; padding: 5px 0 5px 30px; }
.checks li::before {
  content: ''; position: absolute; left: 0; top: 10px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--aqua) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2317143A' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 12px no-repeat;
}

/* 3. BUTTONS ============================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 26px;
  font: 700 17px/1 var(--font);
  border-radius: 10px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: background 150ms, color 150ms, border-color 150ms;
}
.btn-aqua { background: var(--aqua); color: var(--ink); }
.btn-aqua:hover { background: #57D3DF; color: var(--ink); }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: var(--ink-raised); color: var(--paper); }
.btn-ghost { background: transparent; color: var(--paper); border-color: rgba(255,255,255,.45); }
.btn-ghost:hover { border-color: var(--paper); color: var(--paper); }
.btn-outline { background: var(--paper); color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--paper); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* 4. HEADER =============================================================== */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--ink); border-bottom: 1px solid rgba(255,255,255,.08); }
.header-row { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.brand {
  font-weight: 800; font-stretch: 70%; font-size: 30px; line-height: 1; letter-spacing: .01em;
  color: var(--paper); text-decoration: none;
  display: inline-flex; align-items: center; gap: 6px;
}
.brand::after { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--gold); }
.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a { padding: 8px 12px; border-radius: 8px; font-weight: 600; font-size: 15px; color: var(--mist); text-decoration: none; }
.site-nav a:hover { color: var(--paper); background: var(--ink-raised); }
.site-nav .nav-login { margin-left: 10px; border: 1.5px solid var(--aqua); color: var(--paper); }
.site-nav .nav-login:hover { background: var(--aqua); color: var(--ink); }

.nav-toggle { display: none; position: relative; width: 46px; height: 46px; margin-right: -8px; background: transparent; border: 0; cursor: pointer; }
.nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after {
  position: absolute; left: 12px; width: 22px; height: 2px; border-radius: 2px; background: var(--paper);
  transition: transform 200ms;
}
.nav-toggle-bar { top: 22px; }
.nav-toggle-bar::before, .nav-toggle-bar::after { content: ''; left: 0; }
.nav-toggle-bar::before { top: -7px; }
.nav-toggle-bar::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute; left: 0; right: 0; top: var(--header-h);
    display: none; flex-direction: column; align-items: stretch; gap: 0;
    padding: 4px var(--gutter) 20px; background: var(--ink);
    border-bottom: 1px solid rgba(255,255,255,.12);
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 15px 4px; border-radius: 0; font-size: 19px; color: var(--paper); border-bottom: 1px solid rgba(255,255,255,.1); }
  .site-nav a:hover { background: transparent; }
  .site-nav .nav-login { margin: 16px 0 0; padding: 15px; border-radius: 10px; text-align: center; background: var(--aqua); color: var(--ink); border: 0; }
}

/* 5. HERO ================================================================= */
.hero {
  background:
    radial-gradient(circle at 82% 30%, rgba(46,196,211,.16), transparent 45%),
    var(--ink);
  color: var(--paper);
  overflow: hidden;
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: 40px; align-items: end; }
.hero-copy { padding: 72px 0 88px; }
.hero h1 { font-size: clamp(44px, 5.6vw, 76px); line-height: .98; margin-bottom: 26px; text-wrap: balance; }
.hero h1 span { display: block; }
.lead { font-size: 19px; line-height: 1.6; max-width: 31em; color: var(--mist); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.hero-art { align-self: end; pointer-events: none; } /* the falling coin passes over the buttons on phones */
.kiosk { display: block; width: 100%; max-width: 280px; margin: 0 auto; height: auto; overflow: visible; }
.k-pole { fill: #3A3570; }
.k-shadow { fill: rgba(0,0,0,.28); }
.k-body { fill: var(--aqua); }
.k-stripe { fill: rgba(255,255,255,.7); }
.k-plate { fill: var(--ink); }
.k-plate-text { fill: var(--paper); font: 800 22px var(--font); font-stretch: 75%; letter-spacing: .04em; }
.k-unit { fill: #DCE3EA; stroke: #9AA7B4; stroke-width: 2; }
.k-slot { fill: var(--ink); }
.k-return { fill: #8E9AA8; }
.k-wifi path { fill: none; stroke: var(--paper); stroke-width: 8; stroke-linecap: round; }
.k-wifi circle { fill: var(--paper); }
.k-coin circle { fill: var(--gold); stroke: var(--gold-deep); stroke-width: 3; }
.k-coin text { fill: var(--ink); font: 800 22px var(--font); }

/* The one orchestrated moment: coin drops, goes in edge-on, signal lights up */
@media (prefers-reduced-motion: no-preference) {
  .k-coin { transform-box: fill-box; transform-origin: center; animation: coin-drop 1s cubic-bezier(.55, 0, .8, .2) .5s both; }
  .k-wifi > * { animation: signal-on 300ms ease-out both; }
  .k-wifi > .k-w0 { animation-delay: 1.55s; }
  .k-wifi > .k-w1 { animation-delay: 1.7s; }
  .k-wifi > .k-w2 { animation-delay: 1.85s; }
  .k-wifi > .k-w3 { animation-delay: 2s; }
}
@keyframes coin-drop {
  0%   { transform: translateY(-340px) rotate(-20deg); opacity: 1; }
  68%  { transform: translateY(0) rotate(0); opacity: 1; }
  80%  { transform: translateY(0) scaleX(.45); opacity: 1; }
  100% { transform: translateY(6px) scaleX(.1); opacity: 0; }
}
@keyframes signal-on { from { opacity: .22; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .k-coin { display: none; }
  .btn, .nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after { transition: none; }
}

@media (max-width: 760px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .hero-copy { padding: 40px 0 12px; }
  .hero h1 { font-size: min(12vw, 60px); }
  .lead { font-size: 17px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .kiosk { max-width: 190px; }
}

/* 6. BUILT TO STAND OUTSIDE ================================================ */
.street { padding: 96px 0; }
.street-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.street-photo { margin: 0; }
.street-photo img { border-radius: var(--radius); }
.street-copy p { max-width: 34em; color: var(--ink-soft); font-size: 18px; }
@media (max-width: 760px) {
  .street { padding: 56px 0 64px; }
  .street-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .street-copy { order: -1; }
}

/* 7. HOW IT WORKS (a real sequence, so it is numbered) ===================== */
.how { background: var(--cloud); padding: 88px 0 96px; }
.steps { list-style: none; margin: 20px 0 0; padding: 0; counter-reset: step; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.steps li { counter-increment: step; position: relative; }
.steps li::before {
  content: counter(step);
  display: flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; margin-bottom: 20px; border-radius: 50%;
  background: var(--gold); box-shadow: inset 0 0 0 4px rgba(201,138,0,.35);
  font-weight: 800; font-stretch: 75%; font-size: 28px; line-height: 1; color: var(--ink);
}
.steps li:not(:last-child)::after {
  content: ''; position: absolute; top: 28px; left: 72px; right: -24px; border-top: 2px dashed #C3C5D6;
}
.steps h3 { margin-bottom: 8px; }
.steps p { margin: 0; max-width: 24em; color: var(--ink-soft); }
@media (max-width: 760px) {
  .how { padding: 56px 0 64px; }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .steps li { padding-left: 70px; min-height: 52px; }
  .steps li::before { position: absolute; left: 0; top: 0; width: 48px; height: 48px; font-size: 24px; margin: 0; }
  .steps li:not(:last-child)::after { top: 54px; bottom: -24px; left: 23px; right: auto; border-top: 0; border-left: 2px dashed #C3C5D6; }
  .steps h3 { padding-top: 10px; }
}

/* 8. CLOUD CONSOLE ======================================================== */
.console { background: var(--ink); color: var(--paper); padding: 96px 0; }
.console-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 64px; align-items: center; }
.console-copy > p { max-width: 34em; font-size: 18px; color: var(--mist); }
.console-copy > .console-note { font-size: 16px; border-left: 3px solid var(--aqua); padding-left: 14px; }

.phone {
  width: 250px; margin: 0 auto; padding: 11px; border-radius: 38px;
  background: #0E0C26; border: 1px solid rgba(255,255,255,.18);
  box-shadow: 0 30px 60px rgba(0,0,0,.35);
}
.phone-screen { border-radius: 28px; overflow: hidden; background: var(--paper); padding-bottom: 18px; }
.ph-head { background: var(--ink); padding: 26px 16px 12px; }
.ph-head span { font-weight: 800; font-stretch: 75%; font-size: 18px; color: var(--paper); }
.ph-tabs { display: flex; gap: 6px; padding: 14px 14px 0; font-size: 12px; color: var(--ink-soft); }
.ph-tabs b, .ph-tabs i { padding: 3px 10px; border-radius: 999px; font-style: normal; background: var(--cloud); }
.ph-tabs b { background: var(--aqua); color: var(--ink); }
.ph-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 12px 14px; }
.ph-tiles span { height: 54px; border-radius: 10px; border: 1px solid var(--line); background: linear-gradient(var(--ink), var(--ink)) 10px 28px / 60% 9px no-repeat; }
.ph-chart { display: block; width: calc(100% - 28px); height: 90px; margin: 0 14px; background: #EAF9FB; border-radius: 10px; }
.ph-chart path { fill: none; stroke: var(--aqua-deep); stroke-width: 2.5; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.ph-rows { display: grid; gap: 8px; padding: 14px 14px 0; }
.ph-rows i { height: 9px; border-radius: 5px; background: var(--line); }
.ph-rows i:nth-child(odd) { width: 78%; }
@media (max-width: 760px) {
  .console { padding: 56px 0 72px; }
  .console-grid { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .phone { width: 220px; }
}

/* 9. PACKAGES ============================================================= */
.packages { padding: 96px 0; }
.packages-intro { font-size: 18px; color: var(--ink-soft); margin-bottom: 44px; }
.package-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.package {
  display: flex; flex-direction: column; position: relative;
  padding: 28px 22px 22px; border-radius: var(--radius);
  background: var(--paper); border: 1px solid var(--line);
}
.package .checks { flex: 1; font-size: 16px; }
.package .btn { padding: 0 12px; font-size: 16px; white-space: nowrap; }
.package-desc { font-size: 15px; color: var(--ink-soft); }
.price { font-weight: 800; font-stretch: var(--narrow); font-size: 52px; line-height: 1; margin: 14px 0 14px; letter-spacing: -0.01em; }
.price span { font-size: 30px; vertical-align: 14px; margin-right: 2px; color: var(--ink-soft); }
.package-star { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.package-star .package-desc, .package-star .price span { color: var(--mist); }
.package-flag {
  position: absolute; top: -13px; left: 22px; margin: 0;
  padding: 4px 12px; border-radius: 999px;
  background: var(--pink); color: var(--ink); font-weight: 700; font-size: 13px;
}
.fineprint { margin: 32px 0 0; font-size: 15px; color: var(--ink-soft); }
@media (max-width: 1060px) { .package-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; } }
@media (max-width: 600px) {
  .packages { padding: 56px 0 64px; }
  .package-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
}

/* 10. TEAM ================================================================ */
.team { background: var(--cloud); padding: 80px 0; }
.team-grid { display: grid; grid-template-columns: minmax(0, 1fr) repeat(2, minmax(0, 240px)); gap: 28px; align-items: start; }
.team h2 { margin: 0; }
.person { margin: 0; }
.person img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; object-position: center 25%; border-radius: var(--radius); }
.person figcaption { padding-top: 12px; font-size: 15px; color: var(--ink-soft); }
.person strong { display: block; font-size: 22px; font-weight: 800; font-stretch: var(--narrow); color: var(--ink); line-height: 1.15; }
@media (max-width: 760px) {
  .team { padding: 56px 0; }
  .team-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px 16px; }
  .team h2 { grid-column: 1 / -1; }
  .person strong { font-size: 20px; }
  .person figcaption { font-size: 14px; }
}

/* 11. CONTACT ============================================================= */
.contact { padding: 96px 0; }
.contact-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 56px; align-items: start; }
.contact-info > p { font-size: 18px; max-width: 30em; color: var(--ink-soft); }
.contact-list { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 10px; font-size: 17px; }
.contact-list a { font-weight: 600; }
.contact-list .contact-big { font-weight: 800; font-stretch: var(--narrow); font-size: clamp(32px, 3.6vw, 42px); line-height: 1.05; color: var(--ink); text-decoration: none; }
.contact-list .contact-big:hover { color: var(--aqua-deep); }

.contact-form { padding: 28px; border-radius: var(--radius); background: var(--cloud); border: 1px solid var(--line); }
.field-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.field { display: block; margin-bottom: 18px; }
.field span { display: block; font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.field em { font-style: normal; font-weight: 400; color: var(--ink-soft); }
.field input, .field textarea {
  width: 100%; padding: 13px 14px;
  font: 17px/1.4 var(--font); color: var(--ink);
  background: var(--paper); border: 1px solid #8E8BA8; border-radius: 10px; /* 3.3:1, the minimum for a field edge */
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--aqua-deep); box-shadow: 0 0 0 3px rgba(46,196,211,.35); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--bad); }
.form-status { min-height: 1.6em; margin: 0 0 14px; font-size: 15px; }
.form-status.is-error { color: var(--bad); font-weight: 600; }
.form-status.is-ok { color: var(--good); font-weight: 700; }
@media (max-width: 760px) {
  .contact { padding: 56px 0 64px; }
  .contact-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
}
@media (max-width: 560px) {
  .field-row { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .contact-form { padding: 20px; }
  .contact-form .btn { width: 100%; }
}

/* 12. PARTNERED BUSINESSES (cards from $partners in index.php) ============ */
.partners { background: var(--cloud); padding: 80px 0 88px; border-top: 1px solid var(--line); }
.partners h2 { text-wrap: balance; }
.partners-intro { font-size: 18px; color: var(--ink-soft); margin-bottom: 32px; }
.partners-empty {
  margin: 0; max-width: 36em; padding: 18px 20px; border-radius: var(--radius);
  border: 2px dashed #C3C5D6; color: var(--ink-soft);
}
.partner-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.partner {
  display: flex; flex-direction: column; padding: 24px 22px 22px; border-radius: var(--radius);
  background: var(--paper); border: 1px solid var(--line);
}
.partner h3 { margin-bottom: 10px; }
.partner h3, .partner p { overflow-wrap: anywhere; }
.partner p { flex: 1; font-size: 15px; color: var(--ink-soft); }
.partner-link { align-self: flex-start; margin-top: auto; font-weight: 700; }
.partner-soon {
  align-self: flex-start; margin-top: auto; padding: 4px 12px; border-radius: 999px;
  background: var(--cloud); color: var(--ink-soft); font-size: 13px; font-weight: 700;
}
@media (max-width: 760px) {
  .partners { padding: 56px 0 64px; }
  .partner-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
}

/* 13. FOOTER ============================================================== */
.site-footer { background: var(--ink); color: var(--mist); padding: 28px 0; font-size: 15px; }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; }
.footer-row p { margin: 0; }
.site-footer .brand-small { font-size: 26px; }
