/* E-Z.mx — site styles. No framework, no external fonts. */

:root {
  --ink: #1C1B19;
  --bg: #F6F5F1;
  --surface: #FFFFFF;
  --muted: #55606C;
  --line: #E4E1D8;
  --hover: #ECEAE3;
  --ezhome: #1F5F8B;
  --ezhome-soft: #E7EFF5;
  --ezhost: #0F5F5A;
  --ezhost-soft: #E4EFEE;
  --ezhost-orange: #EB6834;
  --ezspend: #0F766E;
  --ezspend-soft: #E3F3F1;
  --ezspend-yellow: #FDE047;
  --danger: #B42318;
  --accent: var(--ink);
  --accent-ink: #FFFFFF;
  --accent-soft: var(--hover);
  --radius: 14px;
  --shadow: 0 1px 2px rgba(28, 27, 25, .06), 0 12px 32px rgba(28, 27, 25, .10);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.theme-ezhome { --accent: var(--ezhome); --accent-soft: var(--ezhome-soft); }
.theme-ezhost { --accent: var(--ezhost); --accent-soft: var(--ezhost-soft); }
.theme-ezspend { --accent: var(--ezspend); --accent-soft: var(--ezspend-soft); }

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, ul, figure { margin: 0; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.015em; }
img { max-width: 100%; height: auto; }
a { color: inherit; }
ul { padding: 0; list-style: none; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 780px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: 15px; }
.note { font-size: 15px; color: var(--muted); border-left: 3px solid var(--accent); padding-left: 12px; margin-top: 16px; }

.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;
}

.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { top: 12px; }

.icon { width: 1.25em; height: 1.25em; flex-shrink: 0; }

/* Show only the selected currency and billing period */
html.cur-mxn [data-cur="usd"],
html.cur-usd [data-cur="mxn"] { display: none !important; }
html.bill-monthly .amt[data-bill="annual"],
html.bill-annual .amt[data-bill="monthly"] { display: none !important; }

/* ------------------------------------------------------------- wordmark */

.wordmark {
  display: inline-flex; align-items: baseline;
  font-size: 26px; font-weight: 400; line-height: 1; letter-spacing: -0.02em;
  color: var(--ink); white-space: nowrap;
}
.wordmark b { font-weight: 800; }
.wm-dash { position: relative; }
.wm-roof {
  position: absolute; left: 50%; top: -.02em; width: .5em; height: .24em;
  transform: translateX(-50%);
  fill: none; stroke: currentColor; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round;
}
.brand { text-decoration: none; display: inline-flex; padding: 6px 0; }

.app-name { font-weight: 400; letter-spacing: -0.02em; }
.app-name b { font-weight: 800; color: var(--accent); }

/* -------------------------------------------------------------- buttons */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px;
  border: 1.5px solid var(--accent); border-radius: 10px;
  background: var(--accent); color: var(--accent-ink);
  font: inherit; font-size: 16px; font-weight: 650; text-decoration: none;
  text-align: center; line-height: 1.25;
  cursor: pointer; transition: filter .15s, background .15s, color .15s;
}
.btn:hover { filter: brightness(1.12); }
.btn .icon { width: 18px; height: 18px; }
.btn-ghost { background: transparent; color: var(--accent); }
.btn-ghost:hover { background: var(--accent-soft); filter: none; }
.btn-ezhome { --accent: var(--ezhome); }
.btn-ezhost { --accent: var(--ezhost); }
.btn-ezspend { --accent: var(--ezspend); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 15px; }
.btn-block { width: 100%; }

/* --------------------------------------------------------------- header */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246, 245, 241, .94);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.site-nav { flex: 1; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav-links { display: flex; gap: 4px; }
.nav-links a, .login summary {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 8px 12px; border-radius: 8px;
  color: var(--ink); font-weight: 500; text-decoration: none; cursor: pointer;
}
.nav-links a:hover, .login summary:hover { background: var(--hover); }
.nav-links a[aria-current="page"] { font-weight: 700; background: var(--hover); }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.login { position: relative; }
.login summary { list-style: none; }
.login summary::-webkit-details-marker { display: none; }
.login summary .icon { width: 16px; height: 16px; transition: transform .15s; }
.login[open] summary .icon { transform: rotate(180deg); }
.login-menu {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 60;
  min-width: 230px; padding: 6px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow);
}
.login-menu a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 8px; text-decoration: none; font-weight: 500; }
.login-menu a:hover { background: var(--hover); }
.login-menu img { border-radius: 6px; }
.lang-switch { padding: 8px 10px; font-size: 15px; font-weight: 600; color: var(--muted); text-decoration: none; border-radius: 8px; }
.lang-switch:hover { background: var(--hover); color: var(--ink); }

.nav-toggle {
  display: none; margin-left: auto;
  width: 44px; height: 44px; align-items: center; justify-content: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px; color: var(--ink); cursor: pointer;
}
.nav-toggle .icon { width: 22px; height: 22px; }

@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }
  html.js .site-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 12px;
    padding: 12px 24px 24px; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
  }
  html.js body.nav-open .site-nav { display: flex; }
  html.no-js .header-inner { flex-wrap: wrap; padding-bottom: 12px; }
  html.no-js .nav-toggle { display: none; }
  html.no-js .site-nav { flex-wrap: wrap; flex-basis: 100%; }
  .nav-links { flex-direction: column; }
  html.no-js .nav-links { flex-direction: row; flex-wrap: wrap; }
  .nav-actions { flex-direction: column; align-items: stretch; }
  .login-menu { position: static; box-shadow: none; margin-top: 4px; }
  .lang-switch { text-align: center; }
}

/* ----------------------------------------------------------------- hero */

.hero { padding: 64px 0 56px; }
.hero-small { padding: 56px 0 24px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(36px, 5vw, 56px); font-weight: 800; letter-spacing: -0.025em; margin-bottom: 18px; }
.hero-small h1 { font-size: clamp(32px, 4.4vw, 46px); }
.lead { font-size: 19px; color: var(--muted); }
.hero-copy .lead { max-width: 34em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-copy .small { margin-top: 12px; }
.center .cta-row { justify-content: center; }
.app-badge { display: inline-flex; align-items: center; gap: 10px; font-size: 22px; margin-bottom: 18px; }
.app-badge img { border-radius: 10px; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding: 40px 0 40px; }
}

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

.shot {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
}
.shot img { display: block; width: 100%; height: auto; }
.shot figcaption { padding: 10px 14px; font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); }
.shot-tall img { aspect-ratio: 840 / 720; object-fit: cover; object-position: top; }
.shot-wide { margin-top: 40px; }

.hero-stack { position: relative; padding-bottom: 16%; }
.shot-back { width: 86%; }
.shot-front { position: absolute; right: 0; bottom: 0; width: 46%; }
.shot-front img { aspect-ratio: 840 / 780; object-fit: cover; object-position: top; }

.phone {
  width: 100%; max-width: 300px; margin: 0 auto;
  border: 10px solid var(--ink); border-radius: 40px; overflow: hidden;
  background: var(--surface); box-shadow: var(--shadow);
}
.phone img { display: block; width: 100%; height: auto; }

/* ------------------------------------------------------------- sections */

.section { padding: 72px 0; }
.section-tight { padding-top: 8px; }
.section-alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-title { font-size: clamp(26px, 3.2vw, 34px); font-weight: 800; margin-bottom: 32px; }
.narrow .section-title, .center .section-title { text-align: left; }

.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 960px) { .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .grid-3 { grid-template-columns: 1fr; } }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 760px) { .grid-2 { grid-template-columns: 1fr; } }
.split { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.stack { display: flex; flex-direction: column; gap: 24px; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

.feature h3 { font-size: 18px; font-weight: 700; margin: 14px 0 6px; }
.feature p { color: var(--muted); }
.feature-row { display: flex; gap: 16px; align-items: flex-start; }
.feature-row h3 { margin-top: 2px; }
.feature-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; flex-shrink: 0;
  border-radius: 12px; background: var(--accent-soft); color: var(--accent);
}
.feature-icon .icon { width: 24px; height: 24px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.section-alt .card { background: var(--bg); }

/* ------------------------------------------------------ home app cards */

.app-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 1060px) { .app-cards { grid-template-columns: 1fr; max-width: 640px; } }
.app-card {
  display: flex; flex-direction: column; gap: 16px;
  padding: 28px; background: var(--surface);
  border: 1px solid var(--line); border-top: 5px solid var(--accent); border-radius: 18px;
}
.app-card-ezhome { --accent: var(--ezhome); --accent-soft: var(--ezhome-soft); }
.app-card-ezhost { --accent: var(--ezhost); --accent-soft: var(--ezhost-soft); }
.app-card-ezspend { --accent: var(--ezspend); --accent-soft: var(--ezspend-soft); }
.app-card-head { display: flex; align-items: center; gap: 14px; }
.app-card-head img { border-radius: 12px; }
.app-card .app-name { font-size: 30px; }
.app-line { font-size: 18px; font-weight: 600; }
.app-card .btn { margin-top: auto; align-self: flex-start; }
.price-line { font-weight: 650; color: var(--muted); }

.checks { display: flex; flex-direction: column; gap: 10px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; }
.checks .icon { width: 20px; height: 20px; margin-top: 2px; color: var(--accent); }
.checks-sm { font-size: 15px; gap: 8px; }
.checks-sm .icon { width: 18px; height: 18px; }
.checks-inline { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px 20px; margin-bottom: 16px; }

.cta-band { background: var(--ink); color: #fff; border-radius: 22px; padding: 56px 32px; text-align: center; }
.cta-band h2 { font-size: clamp(26px, 3.4vw, 36px); font-weight: 800; }
.cta-band .cta-row { justify-content: center; }
.cta-band .btn { border-color: #fff; }

.band {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px;
  padding: 36px; border-radius: 18px; background: var(--accent-soft);
}
.band > div { flex: 1 1 420px; }
.band h2 { font-size: 26px; font-weight: 800; margin-bottom: 8px; }
.band p { color: var(--ink); }

.teaser { margin-top: 40px; text-align: center; font-size: 18px; font-weight: 600; }
.teaser a { display: inline-flex; align-items: center; gap: 6px; margin-left: 8px; color: var(--accent); }
.teaser a .icon { width: 18px; height: 18px; }

/* -------------------------------------------- ezSpend: "like a business" card */

.diff-card {
  background: var(--surface); border: 1px solid var(--line); border-top: 5px solid var(--accent);
  border-radius: 18px; padding: 32px; box-shadow: var(--shadow);
}
.diff-card h2 { font-size: 24px; font-weight: 800; margin-bottom: 6px; }
.diff-card > p { margin-bottom: 20px; }
.diff-list { display: flex; flex-direction: column; gap: 18px; }
.diff-list li { display: flex; gap: 14px; align-items: flex-start; }
.diff-list h3 { font-size: 17px; font-weight: 700; margin: 2px 0 2px; }
.diff-list p { color: var(--muted); font-size: 15px; }

/* ------------------------------------------------------------------ faq */

.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 18px 0; font-weight: 650; cursor: pointer; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { transition: transform .15s; color: var(--muted); }
.faq details[open] summary .icon { transform: rotate(180deg); }
.faq details p { padding: 0 0 20px; color: var(--muted); max-width: 44em; }

/* -------------------------------------------------------------- pricing */

.pricing { padding-top: 24px; }
.pricing-controls { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 36px; }
.tabs, .segmented {
  display: inline-flex; gap: 2px; padding: 4px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
}
.tab, .segmented a {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px; border-radius: 9px;
  font-weight: 650; text-decoration: none; color: var(--muted);
}
.tab { color: var(--ink); font-size: 17px; }
.tab img { border-radius: 6px; }
.segmented a { font-size: 15px; }
.tab:hover, .segmented a:hover { background: var(--hover); }
html.js .tab[aria-selected="true"], .segmented a[aria-pressed="true"] { background: var(--ink); color: #fff; }
.toggles { display: flex; flex-wrap: wrap; gap: 12px; }

.plan-panel { margin-bottom: 56px; }
.plan-panel:focus { outline: none; }
html.js .plan-panel[hidden] { display: none; }
.panel-title { font-size: 30px; margin-bottom: 6px; }
.panel-intro { color: var(--muted); margin-bottom: 28px; }
.plan-grid { display: grid; gap: 16px; }
.plan-grid-5 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.plan-grid-4 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.plan-grid-single { grid-template-columns: minmax(0, 360px); }
.plan-card {
  position: relative; display: flex; flex-direction: column; gap: 8px;
  padding: 28px 22px 22px; background: var(--surface);
  border: 1px solid var(--line); border-radius: 16px;
}
.plan-card.is-featured { border: 2px solid var(--accent); box-shadow: var(--shadow); }
.plan-badge {
  position: absolute; top: -13px; left: 20px;
  padding: 4px 10px; border-radius: 999px;
  background: var(--accent); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .02em;
}
.plan-name { font-size: 21px; font-weight: 800; }
.plan-line { color: var(--muted); font-size: 15px; }
.plan-price { margin: 10px 0 14px; min-height: 64px; }
.plan-price .amount { font-size: 34px; font-weight: 800; letter-spacing: -0.02em; }
.plan-price .unit { font-size: 14px; font-weight: 700; color: var(--muted); }
.plan-price .suffix { display: block; font-size: 14px; color: var(--muted); }
.plan-lead { font-size: 14px; font-weight: 650; }
.plan-card .checks { margin-bottom: 16px; }
.plan-card .btn { margin-top: auto; padding: 8px 12px; font-size: 15px; }
.included { margin-top: 20px; padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.included h3 { font-size: 17px; margin-bottom: 14px; }
.included p { color: var(--muted); font-size: 15px; margin-top: 6px; }
.included-note { margin-top: 16px; color: var(--muted); font-size: 15px; }
.pricing-notes { text-align: center; color: var(--muted); font-size: 15px; }

/* -------------------------------------------------------------- contact */

.contact-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 40px; align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 32px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 15px; font-weight: 650; margin-bottom: 6px; }
.req { color: var(--danger); }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 10px 14px;
  font: inherit; font-size: 16px; color: var(--ink);
  background: var(--surface); border: 1.5px solid #CFCBC0; border-radius: 10px;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ink); outline: 2px solid var(--ink); outline-offset: 0; }
.field [aria-invalid="true"] { border-color: var(--danger); }
.field-error { color: var(--danger); font-size: 14px; margin-top: 6px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .field-row { grid-template-columns: 1fr; } }
.field-check { display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; align-items: start; }
.field-check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--ink); }
.field-check label { font-weight: 500; margin: 0; }
.field-check .field-error { grid-column: 2; margin-top: 0; }
.alert { background: #FDECEA; color: #7A1A12; border: 1px solid #F5C2BC; border-radius: 10px; padding: 12px 16px; margin-bottom: 20px; font-size: 15px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.plan-chip { display: inline-block; padding: 6px 12px; border-radius: 999px; background: var(--hover); font-size: 14px; font-weight: 650; margin-bottom: 18px; }
.success { text-align: center; padding: 24px 0; }
.success .feature-icon { width: 56px; height: 56px; border-radius: 50%; margin-bottom: 12px; }
.success h2 { font-size: 26px; margin-bottom: 8px; }
.success p { color: var(--muted); }
.contact-aside h2 { font-size: 20px; margin-bottom: 12px; }
.mail-link { display: inline-flex; align-items: center; gap: 8px; font-size: 18px; font-weight: 650; text-decoration: none; }
.mail-link:hover { text-decoration: underline; }

/* ---------------------------------------------------------------- legal */

.legal h2 { font-size: 20px; font-weight: 750; margin: 32px 0 8px; }
.legal p { line-height: 1.7; }
.hero-small .alert { margin-top: 16px; }

/* --------------------------------------------------------------- footer */

.site-footer { background: var(--ink); color: #D9D6CE; margin-top: 0; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer .wordmark { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; padding-top: 56px; padding-bottom: 36px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
.footer-tagline { margin-top: 10px; }
.footer-sister { margin-top: 18px; font-size: 15px; }
.footer-title { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #B3AFA5; margin-bottom: 14px; }
.site-footer ul { display: flex; flex-direction: column; gap: 8px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 20px; padding-bottom: 32px; border-top: 1px solid rgba(255, 255, 255, .14); font-size: 14px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
