/* Atomic site. Colors only from Atomic UI (vendor/atomic-ui/tokens.css, brand "atomic", tested for WCAG 2.2 AA in
   light and dark). Fonts are served from this site so no visitor data goes to a font provider. */
@font-face { font-family: Manrope; font-weight: 400; font-display: swap; src: url(/fonts/manrope-regular.ttf) format("truetype"); }
@font-face { font-family: Manrope; font-weight: 600; font-display: swap; src: url(/fonts/manrope-semibold.ttf) format("truetype"); }
@font-face { font-family: Manrope; font-weight: 700; font-display: swap; src: url(/fonts/manrope-bold.ttf) format("truetype"); }
@font-face { font-family: Sora; font-weight: 100 800; font-display: swap; src: url(/fonts/sora.ttf) format("truetype"); }

/* Names used by the shared contact block (contact.css), mapped to the Atomic UI roles. */
:root {
  --primary: var(--color-brand-primary);
  --primary-dark: var(--color-brand-primary-strong);
  --primary-light: var(--color-brand-primary-container);
  --on-primary: var(--color-text-on-primary);
  --bg: var(--color-background-primary);
  --surface: var(--color-background-secondary);
  --text: var(--color-text-primary);
  --muted: var(--color-text-secondary);
  --border: var(--color-border-secondary);
  --field-border: var(--color-border-primary);
  --error: var(--color-status-error);
  --note-bg: var(--color-status-warning-container);
  --note-fg: var(--color-status-warning);
  --display: Sora, Manrope, system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--text); font-family: Manrope, -apple-system, system-ui, sans-serif; font-size: 1rem; line-height: 1.6; }
body [lang="en"] { display: none; }
/* Language: site.js sets <html lang> from the visitor's choice or the browser. */
html[lang="en"] body [lang="es"] { display: none; }
html[lang="en"] body [lang="en"] { display: revert; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--display); line-height: 1.2; }
h2 { font-size: 2.25rem; font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 600; }
a { color: var(--primary); }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; height: auto; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }
.strong { font-weight: 700; }
.lead { font-size: 1.125rem; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.stack-sm { display: flex; flex-direction: column; gap: 8px; }
.stack-lg { display: flex; flex-direction: column; gap: 40px; }
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 48px; align-items: center; }
.split-top { align-items: start; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Skip link and focus */
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--surface); color: var(--text); padding: 8px 12px; border-radius: 8px; z-index: 10; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 5; background: var(--bg); border-bottom: 1px solid var(--border); }
.header-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; padding-top: 10px; padding-bottom: 10px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-family: var(--display); font-weight: 600; font-size: 1.25rem; }
.brand:hover { color: var(--text); }
.brand img { display: block; width: 36px; height: 36px; }
.nav { display: flex; flex-wrap: wrap; gap: 0 20px; font-weight: 600; font-size: 0.9375rem; }
.nav a { color: var(--text); text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.nav a:hover { color: var(--primary); }
.switches { display: flex; flex-wrap: wrap; gap: 8px; }
.segmented { display: flex; gap: 2px; padding: 3px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); }
.segmented button { font: inherit; font-size: 0.875rem; font-weight: 600; min-width: 44px; min-height: 36px; padding: 0 12px; border: 0; border-radius: 999px; background: transparent; color: var(--text); cursor: pointer; }
.segmented button[aria-pressed="true"] { background: var(--primary); color: var(--on-primary); }

/* Sections */
section { padding: 88px 0; }
.section-alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { max-width: 720px; }
.eyebrow { color: var(--primary); font-weight: 700; font-size: 0.8125rem; letter-spacing: 0.1em; text-transform: uppercase; }
@media (max-width: 600px) { section { padding: 56px 0; } h2 { font-size: 1.75rem; } }

/* Buttons (links styled as buttons; the form's submit button keeps contact.css) */
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.actions .btn, .btn.whatsapp { width: auto; max-width: none; align-self: flex-start; }

/* Store buttons (product landings and the product cards): a link once that store's version is released, an outlined
   "coming soon" label before. Both keep the text color on the page background, so contrast stays AA in both themes. */
.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 8px 18px; border: 1.5px solid var(--text); border-radius: 12px; background: var(--text); color: var(--bg); text-decoration: none; }
a.store:hover { color: var(--bg); }
a.store:hover strong { text-decoration: underline; }
.store-soon { background: transparent; color: var(--text); border-color: var(--field-border); }
.store svg { flex: none; }
.store > span { display: flex; flex-direction: column; line-height: 1.2; }
.store small { font-size: 0.75rem; }
.store strong { font-size: 1.0625rem; }
a.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 24px; border-radius: 12px; background: var(--primary); color: var(--on-primary); font-weight: 700; text-decoration: none; }
a.btn:hover { background: var(--primary-dark); color: var(--on-primary); }
a.btn-outline { background: transparent; color: var(--text); border: 1px solid var(--field-border); }
a.btn-outline:hover { background: var(--primary-light); color: var(--text); }
.btn-outline svg { color: var(--primary); }

/* Hero */
.hero { padding-top: 72px; }
.hero h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); font-weight: 700; line-height: 1.1; letter-spacing: -0.01em; }
.hero .lead { font-size: 1.1875rem; max-width: 34em; }
.art { display: flex; justify-content: center; }
.art img { display: block; width: 100%; max-width: 460px; }

/* About */
.stats { margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.stats div { display: flex; flex-direction: column-reverse; gap: 4px; padding: 20px 16px; background: var(--bg); border: 1px solid var(--border); border-radius: 16px; }
.stats dt { color: var(--muted); font-size: 0.875rem; line-height: 1.4; }
.stats dd { margin: 0; font-family: var(--display); font-weight: 700; font-size: 2rem; line-height: 1.1; color: var(--primary); }
.founder { display: flex; align-items: center; gap: 16px; padding: 20px; background: var(--bg); border: 1px solid var(--border); border-radius: 16px; }
.founder > div { display: flex; flex-direction: column; }
.founder-mark { flex: none; width: 56px; height: 56px; border-radius: 999px; display: grid; place-items: center; background: var(--primary-light); color: var(--primary); font-family: var(--display); font-weight: 700; font-size: 1.25rem; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 20px; }
.card { display: flex; flex-direction: column; gap: 12px; padding: 28px; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; }
.card-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--primary-light); color: var(--primary); }

/* Services */
.section-alt .card { background: var(--bg); }
.tech { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tech li { font-size: 0.8125rem; font-weight: 600; padding: 4px 12px; border-radius: 999px; background: var(--primary-light); color: var(--text); }

/* Products (cards generated from handbook/ecosystem/apps.json) */
.products { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 20px; }
.product { display: flex; flex-direction: column; gap: 14px; padding: 28px; background: var(--bg); border: 1px solid var(--border); border-radius: 16px; }
.product-head { display: flex; align-items: center; gap: 14px; }
.product-head h3 { font-size: 1.375rem; flex: 1; }
.product-mark { flex: none; width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; border: 1.5px solid var(--primary); color: var(--primary); font-family: var(--display); font-weight: 700; font-size: 1.375rem; }
.status { flex: none; font-size: 0.8125rem; font-weight: 700; padding: 4px 12px; border-radius: 999px; }
.status-beta { background: var(--primary); color: var(--on-primary); }
.status-soon { background: var(--primary-light); color: var(--primary); }
.status-dev { border: 1px solid var(--field-border); color: var(--muted); }
.status-live { background: var(--primary); color: var(--on-primary); }
/* App icon (white background in both themes, like the favicons); the border keeps it visible on a light card. */
.product-logo { flex: none; width: 52px; height: 52px; border-radius: 14px; border: 1px solid var(--border); }
.tagline { font-weight: 600; }
.grow { flex-grow: 1; }
.platforms { font-size: 0.875rem; color: var(--muted); }
.more { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 700; text-decoration: none; }

/* Apparel */
.socials { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.socials a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--field-border); color: var(--text); text-decoration: none; font-weight: 600; }
.socials a:hover { background: var(--primary-light); color: var(--text); }
.socials svg { color: var(--primary); }
#ropa .art img { max-width: 480px; }

/* Contact: three topics on the Atomic site */
.choices-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); }
.contact-copy .whatsapp { margin-top: 4px; }

/* Footer */
.site-footer { background: var(--surface); border-top: 1px solid var(--border); padding: 48px 0 40px; }
.site-footer .brand { font-size: 1.125rem; }
.site-footer .brand img { width: 32px; height: 32px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 32px; }
.footer-title { font-weight: 700; margin-bottom: 4px; }
.footer-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.footer-list a, .footer-link { display: inline-flex; align-items: center; min-height: 36px; color: var(--muted); text-decoration: none; }
.footer-list a:hover, .footer-link:hover { color: var(--primary); text-decoration: underline; }
.footer-bottom { padding-top: 24px; border-top: 1px solid var(--border); }

/* Legal pages (privacy, accessibility) */
.legal { max-width: 760px; margin: 0 auto; padding: 48px 24px 64px; }
.legal h1 { font-size: 2rem; margin: 8px 0 4px; }
.legal h2 { font-size: 1.25rem; margin: 32px 0 8px; padding-top: 16px; border-top: 1px solid var(--border); }
.legal p, .legal li { color: var(--muted); }
.legal p + p { margin-top: 12px; }
.legal li { margin-bottom: 6px; }
.updated { font-size: 0.875rem; color: var(--muted); }
