/* ==========================================================================
   Tecgua POS — landing page styles
   Light B2B-SaaS theme · system fonts · no external requests
   ========================================================================== */

:root {
  /* Palette (anchored to the logo) */
  --ink: #12141c;
  --navy: #232744;
  --navy-700: #1a1d36;
  --accent: #2f6fe0;          /* 4.70:1 on white — buttons, links */
  --accent-strong: #2459c4;   /* 6.36:1 on white — accent text on tints, hovers */
  --accent-50: #eef4fe;
  --accent-100: #dbe6fb;
  --logo-blue: #3080e0;
  --text: #2a2f3d;
  --muted: #545b6e;           /* 6.78:1 on white */
  --surface: #ffffff;
  --surface-alt: #f6f8fb;
  --border: #e4e8f0;
  --border-strong: #d3d9e5;
  --success: #1a7a50;
  --success-50: #e9f7f0;

  /* Type */
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --fs-xs: 0.8125rem;
  --fs-sm: 0.9375rem;
  --fs-base: 1rem;
  --fs-lead: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
  --fs-h3: clamp(1.125rem, 1.05rem + 0.3vw, 1.25rem);
  --fs-h2: clamp(1.75rem, 1.3rem + 1.9vw, 2.625rem);
  --fs-h1: clamp(2.125rem, 1.45rem + 3vw, 3.75rem);

  /* Layout */
  --container: 76rem;
  --gutter: clamp(1rem, 4vw, 2rem);
  --section-y: clamp(4rem, 3rem + 5vw, 7.5rem);
  --header-h: 4.25rem;

  /* Shape & depth */
  --radius-sm: 0.5rem;
  --radius: 1rem;
  --radius-lg: 1.5rem;
  --shadow-sm: 0 1px 2px rgba(18, 20, 28, 0.05);
  --shadow: 0 1px 2px rgba(18, 20, 28, 0.04), 0 6px 20px -6px rgba(35, 39, 68, 0.1);
  --shadow-lg: 0 2px 4px rgba(18, 20, 28, 0.04), 0 24px 48px -16px rgba(35, 39, 68, 0.22);
  --ring: 0 0 0 3px #fff, 0 0 0 5px var(--accent);

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-base);
  line-height: 1.6;
  color: var(--text);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

h1, h2, h3 {
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; }
p + p { margin-top: 0.85em; }

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

a { color: var(--accent-strong); text-underline-offset: 0.18em; }
a:hover { color: var(--navy); }

ul, ol { margin: 0; padding: 0; }

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

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sr-only {
  position: absolute !important;
  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: 1rem; top: -4rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 0.75rem; color: #fff; }

.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  --btn-bd: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0.7rem 1.25rem;
  border: 1px solid var(--btn-bd);
  border-radius: 0.75rem;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font: inherit;
  font-weight: 600;
  font-size: var(--fs-sm);
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.18s var(--ease), border-color 0.18s var(--ease),
              color 0.18s var(--ease), box-shadow 0.18s var(--ease), transform 0.18s var(--ease);
}
.btn:hover { color: var(--btn-fg); }
.btn:focus-visible { outline: none; box-shadow: var(--ring); }
.btn .icon { width: 1.1em; height: 1.1em; transition: transform 0.18s var(--ease); }
.btn:hover .icon { transform: translateX(2px); }

.btn-primary {
  --btn-bg: var(--accent);
  --btn-fg: #fff;
  box-shadow: 0 1px 2px rgba(18, 20, 28, 0.08), 0 6px 16px -6px rgba(47, 111, 224, 0.55);
}
.btn-primary:hover { --btn-bg: var(--accent-strong); }

.btn-ghost {
  --btn-bg: #fff;
  --btn-fg: var(--ink);
  --btn-bd: var(--border-strong);
  box-shadow: var(--shadow-sm);
}
.btn-ghost:hover { --btn-bd: var(--ink); }

.btn-outline {
  --btn-bg: #fff;
  --btn-fg: var(--accent-strong);
  --btn-bd: var(--accent-100);
}
.btn-outline:hover { --btn-bg: var(--accent-50); --btn-bd: var(--accent); }

.btn-light {
  --btn-bg: #fff;
  --btn-fg: var(--navy);
}
.btn-light:hover { --btn-bg: var(--accent-50); }
.btn-light:focus-visible { box-shadow: 0 0 0 3px var(--navy), 0 0 0 5px #fff; }

.btn-sm { min-height: 2.5rem; padding: 0.55rem 1rem; }
.btn-lg { min-height: 3.25rem; padding: 0.85rem 1.5rem; font-size: var(--fs-base); }
.btn-block { width: 100%; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 600;
  font-size: var(--fs-sm);
  color: var(--accent-strong);
  text-decoration: none;
}
.text-link:hover { color: var(--navy); text-decoration: underline; }
.text-link .icon { width: 1em; height: 1em; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.86);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.no-js .site-header,
.site-header.is-scrolled,
.site-header.is-open {
  border-bottom-color: var(--border);
}
.site-header.is-scrolled { box-shadow: 0 4px 20px -12px rgba(35, 39, 68, 0.25); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}

.brand { display: inline-flex; flex: none; border-radius: 6px; }
.brand img { width: clamp(140px, 30vw, 168px); height: auto; aspect-ratio: 239 / 50; }

.nav-list { list-style: none; }
.nav-list a {
  display: block;
  color: var(--text);
  font-weight: 500;
  font-size: var(--fs-sm);
  text-decoration: none;
  border-radius: var(--radius-sm);
}
.nav-list a:hover { color: var(--accent-strong); }

/* Toggle (JS only) */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.4rem;
  min-height: 2.75rem;
  padding: 0.5rem 0.85rem;
  border: 1px solid var(--border-strong);
  border-radius: 0.75rem;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-weight: 600;
  font-size: var(--fs-sm);
  cursor: pointer;
}
.nav-toggle:focus-visible { outline: none; box-shadow: var(--ring); }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

/* Mobile / tablet navigation */
@media (max-width: 69.999em) {
  /* With JS: collapsible dropdown panel */
  .js .nav-toggle { display: inline-flex; }
  .js .site-nav {
    display: none;
    position: absolute;
    left: 0; right: 0;
    top: 100%;
    padding: 0.75rem var(--gutter) 1.25rem;
    background: #fff;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 18px 30px -18px rgba(35, 39, 68, 0.3);
    max-height: calc(100vh - var(--header-h));
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
  }
  .js .site-header.is-open .site-nav { display: block; }
  .js .nav-list a {
    padding: 0.85rem 0.25rem;
    font-size: var(--fs-base);
    border-bottom: 1px solid var(--border);
  }
  .js .nav-cta { width: 100%; margin-top: 1rem; min-height: 3rem; }

  /* Without JS: links stay visible as a scrollable row under the logo */
  .no-js .header-inner { flex-wrap: wrap; padding-block: 0.5rem; }
  .no-js .site-nav { width: 100%; display: flex; align-items: center; gap: 0.75rem; overflow-x: auto; padding-bottom: 0.25rem; }
  .no-js .nav-list { display: flex; gap: 1rem; white-space: nowrap; }
  .no-js .nav-list a { padding: 0.5rem 0; }
  .no-js .nav-cta { display: none; }
}

@media (min-width: 70em) {
  .site-nav { display: flex; align-items: center; gap: 1.75rem; }
  .nav-list { display: flex; align-items: center; gap: 0.25rem; }
  .nav-list a { padding: 0.5rem 0.7rem; }
  .nav-list a:hover { background: var(--accent-50); }
}

/* ---------- Generic section ---------- */
.section { padding-block: var(--section-y); }
.section-alt {
  background: var(--surface-alt);
  border-block: 1px solid var(--border);
}

.section-head {
  max-width: 44rem;
  margin: 0 auto clamp(2.5rem, 2rem + 2vw, 3.5rem);
  text-align: center;
}
.section-head.is-left { margin-inline: 0; text-align: left; }
.section-head h2 { font-size: var(--fs-h2); }
.section-head .lead { margin-top: 1rem; }

.eyebrow {
  display: inline-block;
  margin-bottom: 0.85rem;
  color: var(--accent-strong);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.eyebrow.on-dark { color: #a9c4f7; }

.lead {
  font-size: var(--fs-lead);
  color: var(--muted);
  line-height: 1.55;
}

.footnote { margin-top: 1.25rem; font-size: var(--fs-xs); color: var(--muted); }
.footnote.center { text-align: center; margin-top: 1.75rem; }

.icon-badge {
  display: inline-grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  flex: none;
  border-radius: 0.8rem;
  background: var(--accent-50);
  color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent-100);
}
.icon-badge .icon { width: 1.4rem; height: 1.4rem; }

.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: clamp(1.5rem, 1.2rem + 1vw, 2rem);
}

.card-grid {
  display: grid;
  gap: clamp(1rem, 0.75rem + 1vw, 1.5rem);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr));
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-block: clamp(3rem, 2rem + 5vw, 6.5rem) clamp(3.5rem, 2.5rem + 5vw, 7rem);
  isolation: isolate;
  overflow: hidden;
}
.hero::before {
  /* soft accent glow + faint grid */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60rem 30rem at 85% -10%, rgba(47, 111, 224, 0.14), transparent 70%),
    radial-gradient(40rem 26rem at -10% 10%, rgba(48, 128, 224, 0.08), transparent 70%),
    linear-gradient(to right, rgba(35, 39, 68, 0.045) 1px, transparent 1px) 0 0 / 44px 44px,
    linear-gradient(to bottom, rgba(35, 39, 68, 0.045) 1px, transparent 1px) 0 0 / 44px 44px;
  -webkit-mask-image: linear-gradient(to bottom, #000 40%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 40%, transparent 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(2.5rem, 2rem + 3vw, 4rem);
  align-items: center;
}
@media (min-width: 62em) {
  .hero-grid { grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); }
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.4rem 0.85rem 0.4rem 0.7rem;
  border: 1px solid var(--accent-100);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  color: var(--accent-strong);
  font-size: var(--fs-xs);
  font-weight: 600;
  line-height: 1.3;
  box-shadow: var(--shadow-sm);
}
.pill-dot {
  width: 0.5rem; height: 0.5rem; flex: none;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 3px var(--success-50);
}

.hero h1 {
  margin-top: 1.25rem;
  font-size: var(--fs-h1);
  letter-spacing: -0.03em;
  line-height: 1.07;
}
.accent-text { display: block; color: var(--accent-strong); }
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .accent-text {
    background: linear-gradient(90deg, var(--accent-strong), var(--logo-blue) 60%, var(--navy));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
}
@media (forced-colors: active) {
  .accent-text { background: none; color: CanvasText; }
}

.hero-copy, .hero-visual { min-width: 0; }
.hero .lead { margin-top: 1.25rem; max-width: 36rem; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}
@media (max-width: 29.999em) {
  .hero-actions .btn { width: 100%; }
}

.trust {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  gap: 0.65rem 1.5rem;
  margin-top: 2.25rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border);
  max-width: 36rem;
}
.trust li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--text);
}
.trust .icon { color: var(--accent); }

/* ---------- Hero product mock ---------- */
.hero-visual {
  position: relative;
  padding: 1.5rem 0 3rem 1.5rem;
  max-width: 40rem;
  width: 100%;
  margin-inline: auto;
}
.mock {
  container-type: inline-size;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 1.1rem;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  font-size: 0.75rem;
  line-height: 1.35;
  color: var(--text);
}
.mock .icon { width: 1rem; height: 1rem; }

.mock-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.9rem;
  border-bottom: 1px solid var(--border);
  background: var(--surface-alt);
}
.mock-dots { display: flex; gap: 0.35rem; }
.mock-dots i { width: 0.55rem; height: 0.55rem; border-radius: 50%; background: var(--border-strong); }
.mock-url {
  flex: 1;
  min-width: 0;
  padding: 0.25rem 0.6rem;
  border-radius: 0.4rem;
  background: #fff;
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.6875rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mock-body { display: grid; grid-template-columns: minmax(0, 1fr); }
.mock-side { display: none; }
@container (min-width: 30rem) {
  .mock-body { grid-template-columns: 8.5rem minmax(0, 1fr); }
  .mock-side {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding: 0.85rem 0.6rem;
    border-right: 1px solid var(--border);
    background: #fbfcfe;
  }
}
.mock-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.55rem;
  border-radius: 0.45rem;
  color: var(--muted);
  font-weight: 500;
}
.mock-nav.is-active { background: var(--accent-50); color: var(--accent-strong); font-weight: 600; }

.mock-main { padding: 0.9rem; display: grid; gap: 0.75rem; min-width: 0; }

.mock-kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem; }
.mock-kpi-hide { display: none; }
@container (min-width: 34rem) {
  .mock-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .mock-kpi-hide { display: block; }
}
.mock-kpi {
  padding: 0.65rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: 0.6rem;
  min-width: 0;
}
.mock-kpi span { display: block; color: var(--muted); font-size: 0.6875rem; }
.mock-kpi strong {
  display: block;
  margin-top: 0.15rem;
  color: var(--ink);
  font-size: clamp(0.8125rem, 3.4cqi, 0.95rem);
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mock-kpi em {
  display: inline-block;
  margin-top: 0.3rem;
  padding: 0.05rem 0.4rem;
  border-radius: 999px;
  background: var(--success-50);
  color: var(--success);
  font-style: normal;
  font-weight: 600;
  font-size: 0.625rem;
}
.mock-kpi em.is-neutral { background: var(--surface-alt); color: var(--muted); }

.mock-chart { padding: 0.7rem; border: 1px solid var(--border); border-radius: 0.6rem; }
.mock-chart-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.6rem;
  font-weight: 600;
  color: var(--ink);
}
.mock-chip {
  padding: 0.1rem 0.45rem;
  border-radius: 0.35rem;
  background: var(--surface-alt);
  color: var(--muted);
  font-weight: 500;
  font-size: 0.625rem;
}
.mock-bars { width: 100%; height: 5.5rem; }

.mock-rows { display: grid; gap: 0.4rem; }
.mock-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.6rem;
  border-radius: 0.5rem;
  background: var(--surface-alt);
}
.mock-row span:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--muted); }
.mock-row b { color: var(--ink); white-space: nowrap; }
.mock-badge {
  padding: 0.05rem 0.4rem;
  border-radius: 999px;
  background: var(--success-50);
  color: var(--success);
  font-weight: 700;
  font-size: 0.625rem;
}
.mock-badge.is-card { background: var(--accent-50); color: var(--accent-strong); }

.mock-receipt {
  position: absolute;
  left: 0;
  bottom: 0;
  width: min(13.5rem, 55%);
  padding: 0.85rem 0.9rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 0.9rem;
  box-shadow: var(--shadow-lg);
  font-size: 0.6875rem;
  line-height: 1.35;
  color: var(--text);
}
.mock-receipt .icon { width: 0.95rem; height: 0.95rem; }
.receipt-head {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding-bottom: 0.5rem;
  margin-bottom: 0.45rem;
  border-bottom: 1px dashed var(--border-strong);
  font-weight: 700;
  color: var(--ink);
}
.receipt-line,
.receipt-total { display: flex; justify-content: space-between; gap: 0.5rem; }
.receipt-line { color: var(--muted); padding-block: 0.12rem; }
.receipt-total {
  margin-top: 0.4rem;
  padding-top: 0.4rem;
  border-top: 1px dashed var(--border-strong);
  font-weight: 700;
  color: var(--ink);
}
.receipt-ok {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.6rem;
  padding: 0.3rem 0.5rem;
  border-radius: 0.45rem;
  background: var(--success-50);
  color: var(--success);
  font-weight: 700;
}
.receipt-ok .icon { stroke-width: 2.5; }

.mock-toast {
  position: absolute;
  top: 0;
  right: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.85rem 0.55rem 0.55rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 0.8rem;
  box-shadow: var(--shadow-lg);
  font-size: 0.75rem;
  line-height: 1.25;
}
.mock-toast b { display: block; color: var(--ink); }
.mock-toast small { display: block; color: var(--muted); font-size: 0.6875rem; }
.toast-icon {
  display: grid;
  place-items: center;
  width: 2rem; height: 2rem;
  border-radius: 0.55rem;
  background: var(--accent);
  color: #fff;
}
.toast-icon .icon { width: 1.05rem; height: 1.05rem; }

@media (max-width: 29.999em) {
  .hero-visual { padding: 1.25rem 0 2.5rem 0.75rem; }
  .mock-receipt { width: 62%; }
  .mock-toast { right: 0.25rem; }
}

/* ---------- ERP ---------- */
.erp-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem 4rem; align-items: start; }
@media (min-width: 62em) {
  .erp-grid { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); }
  .erp-grid .section-head { position: sticky; top: calc(var(--header-h) + 2rem); margin-bottom: 0; }
}
.erp-list {
  list-style: none;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
}
.erp-item {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #fff, var(--surface-alt));
}
.erp-item p { color: var(--text); }

/* ---------- Features ---------- */
.feature { display: flex; flex-direction: column; gap: 0.9rem; transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), border-color 0.2s var(--ease); }
.feature h3 { font-size: var(--fs-h3); margin-top: 0.35rem; }
.feature p { color: var(--muted); font-size: var(--fs-sm); }
.feature .text-link { margin-top: auto; padding-top: 0.25rem; }
.feature:hover { transform: translateY(-3px); border-color: var(--accent-100); box-shadow: var(--shadow-lg); }

/* ---------- Benefits ---------- */
.benefits-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem 4rem; align-items: start; }
@media (min-width: 62em) {
  .benefits-grid { grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); }
  .benefits-grid .section-head { margin-bottom: 0; }
}
.checklist {
  list-style: none;
  display: grid;
  gap: 0.75rem 1.5rem;
}
@media (min-width: 40em) {
  .checklist { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.45;
}
.checklist .icon {
  width: 1.5rem; height: 1.5rem;
  padding: 0.25rem;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  stroke-width: 2.75;
}

/* ---------- Plans ---------- */
.plans {
  display: grid;
  gap: 1.5rem;
  align-items: start;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr));
  max-width: 68rem;
  margin-inline: auto;
}
@media (min-width: 64em) {
  .plans { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
/* Align name / description / price / button / list rows across the three cards */
@supports (grid-template-rows: subgrid) {
  @media (min-width: 64em) {
    .plans { row-gap: 0; }
    .plans > .plan { display: grid; grid-row: span 5; grid-template-rows: subgrid; align-content: start; }
    .plans .plan-desc { min-height: 0; }
  }
}
.plan { display: flex; flex-direction: column; }
.plan-name { font-size: 1.25rem; }
.plan-desc { margin-top: 0.4rem; color: var(--muted); font-size: var(--fs-sm); min-height: 3em; }
.price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: 0.4rem;
  margin: 1.25rem 0 1.5rem;
}
.price-amount {
  font-size: clamp(2.25rem, 1.9rem + 1.2vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.price-period { color: var(--muted); font-size: var(--fs-sm); font-weight: 500; }

.plan-features {
  list-style: none;
  display: grid;
  gap: 0.6rem;
  align-content: start;
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: var(--fs-sm);
}
.plan-features li {
  position: relative;
  padding-left: 1.75rem;
  line-height: 1.45;
}
.plan-features li::before {
  /* check mark drawn with borders (no images) */
  content: "";
  position: absolute;
  left: 0.3rem;
  top: 0.22em;
  width: 0.45rem;
  height: 0.8rem;
  border: solid var(--accent);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.plan-features li.is-strong { font-weight: 700; color: var(--ink); }

.plan.is-featured {
  border: 2px solid var(--accent);
  box-shadow: 0 2px 4px rgba(18, 20, 28, 0.04), 0 30px 60px -24px rgba(47, 111, 224, 0.45);
}
@media (min-width: 64em) {
  .plan.is-featured { margin-top: -1rem; padding-top: calc(clamp(1.5rem, 1.2rem + 1vw, 2rem) + 1rem); }
}
.plan-badge {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

/* ---------- Apps ---------- */
.apps { grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); }
.app { display: flex; flex-direction: column; gap: 0.9rem; }
.app-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 0.35rem; }
.app-price {
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: var(--fs-xs);
  font-weight: 600;
  text-align: right;
}
.app-price b { color: var(--ink); font-size: 1rem; letter-spacing: -0.01em; }
.app h3 { font-size: var(--fs-h3); }
.app > p { color: var(--muted); font-size: var(--fs-sm); }
.app > p + p { margin-top: 0; }
.mini-list { list-style: none; display: grid; gap: 0.45rem; font-size: var(--fs-sm); }
.mini-list li { position: relative; padding-left: 1.1rem; }
.mini-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.6em;
  width: 0.4rem; height: 0.4rem;
  border-radius: 50%;
  background: var(--accent);
}
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.tags li {
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: var(--accent-50);
  color: var(--accent-strong);
  font-size: var(--fs-xs);
  font-weight: 600;
}
.app-cta { margin-top: auto; padding-top: 0.75rem; }

/* ---------- Testimonials ---------- */
.quotes {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
  max-width: 64rem;
  margin-inline: auto;
}
.quote { margin: 0; min-width: 0; display: flex; flex-direction: column; gap: 1.25rem; }
.quote-mark { width: 2.25rem; height: 2.25rem; color: var(--accent); stroke-width: 1.6; }
.quote blockquote { margin: 0; }
.quote blockquote p {
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
  line-height: 1.55;
  color: var(--ink);
  font-weight: 500;
}
.quote figcaption {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-top: auto;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}
.quote figcaption b { display: block; color: var(--ink); }
.quote figcaption small { display: block; color: var(--muted); font-size: var(--fs-sm); }
.avatar {
  display: grid;
  place-items: center;
  width: 2.75rem; height: 2.75rem; flex: none;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy), var(--accent));
  color: #fff;
  font-weight: 700;
  font-size: var(--fs-sm);
  letter-spacing: 0.02em;
}

/* ---------- FAQ ---------- */
.faq-wrap { max-width: calc(52rem + 2 * var(--gutter)); }
.faq { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.75rem; }
.faq details {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.faq details[open] { border-color: var(--accent-100); box-shadow: var(--shadow); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  min-height: 3.5rem;
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  color: var(--ink);
  border-radius: var(--radius);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::marker { content: ""; }
.faq summary:hover { color: var(--accent-strong); }
.faq summary:focus-visible { outline-offset: -3px; }
.faq summary .icon {
  width: 1.75rem; height: 1.75rem;
  padding: 0.3rem;
  border-radius: 50%;
  background: var(--surface-alt);
  color: var(--muted);
  transition: transform 0.2s var(--ease), background-color 0.2s var(--ease), color 0.2s var(--ease);
}
.faq details[open] summary .icon { transform: rotate(180deg); background: var(--accent-50); color: var(--accent-strong); }
.faq-body { padding: 0 1.25rem 1.25rem; color: var(--muted); }
.faq-body ul,
.faq-body ol { margin-top: 0.75rem; padding-left: 1.25rem; display: grid; gap: 0.6rem; }
.faq-body a { overflow-wrap: anywhere; }

/* ---------- Contact ---------- */
#contacto { padding-top: 0; }
.contact-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2rem 3rem;
  align-items: center;
  padding: clamp(2rem, 1.5rem + 3vw, 4rem);
  border-radius: calc(var(--radius-lg) + 0.5rem);
  background:
    radial-gradient(40rem 20rem at 100% 0%, rgba(48, 128, 224, 0.35), transparent 70%),
    linear-gradient(135deg, var(--navy) 0%, var(--navy-700) 100%);
  color: #d9def0;
  overflow: hidden;
  isolation: isolate;
}
@media (min-width: 56em) {
  .contact-panel { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
}
.contact-panel h2 { color: #fff; font-size: var(--fs-h2); }
.contact-copy p:not(.eyebrow) { margin-top: 1rem; font-size: var(--fs-lead); max-width: 36rem; }
.contact-copy p.contact-hint { font-size: var(--fs-sm); color: #b9c1dc; }
.contact-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  padding: clamp(1.5rem, 1rem + 2vw, 2rem);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
}
.contact-label { font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #a9c4f7; }
.contact-email {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: #fff;
  font-size: clamp(1.25rem, 1rem + 1.2vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
  overflow-wrap: anywhere;
  border-radius: 6px;
}
.contact-email:hover { color: #fff; text-decoration: underline; text-decoration-thickness: 2px; }
.contact-email:focus-visible { outline-color: #fff; }
.contact-email .icon { width: 1.5rem; height: 1.5rem; color: #a9c4f7; }
.contact-actions .btn { width: 100%; }
.contact-note { font-size: var(--fs-xs); color: #b9c1dc; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--surface-alt);
  border-top: 1px solid var(--border);
  padding-top: clamp(3rem, 2.5rem + 2vw, 4rem);
  font-size: var(--fs-sm);
  color: var(--muted);
}
.footer-grid {
  display: grid;
  gap: 2rem 3rem;
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 48em) {
  .footer-grid { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); }
}
.footer-brand img { width: 168px; aspect-ratio: 239 / 50; }
.footer-brand p { margin-top: 1rem; max-width: 26rem; }
.footer-title {
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 0.85rem;
}
.footer-contact a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.footer-nav ul { list-style: none; display: grid; gap: 0.5rem; }
.footer-nav a { color: var(--muted); text-decoration: none; }
.footer-nav a:hover { color: var(--accent-strong); text-decoration: underline; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  margin-top: clamp(2.5rem, 2rem + 2vw, 3.5rem);
  padding-block: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: var(--fs-xs);
}
.footer-bottom p + p { margin-top: 0; }

/* ---------- Large screens ---------- */
@media (min-width: 120em) {
  :root { --container: 84rem; }
  html { font-size: 106.25%; }
}
@media (min-width: 160em) {
  html { font-size: 125%; }
}

/* ---------- Motion & preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .feature:hover,
  .btn:hover .icon { transform: none; }
}

@media (forced-colors: active) {
  .btn, .card, .faq details, .nav-toggle { border: 1px solid CanvasText; }
  .checklist .icon, .toast-icon, .avatar, .plan-badge { forced-color-adjust: none; }
}

@media print {
  .site-header, .skip-link, .hero-visual, .sprite { display: none !important; }
  .section, .hero { padding-block: 1.5rem; }
  .contact-panel { background: none; color: var(--ink); border: 1px solid var(--border); }
  .contact-panel h2, .contact-email { color: var(--ink); }
}
