/* Self-hosted fonts (SIL OFL 1.1, see fonts/OFL.txt) - no request to Google Fonts.
   2026-10-01 redesign (handoffs/design_handoff_megaapps_website): headings Plus Jakarta Sans,
   body Source Sans 3; variable weight files, latin + latin-ext subsets. */
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url(fonts/plus-jakarta-sans-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url(fonts/plus-jakarta-sans-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url(fonts/source-sans-3-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url(fonts/source-sans-3-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Design tokens - handoffs/design_handoff_megaapps_website/README.md "Design tokens" */
:root {
  --indigo: #4F46E5;
  --indigo-hover: #4338CA;
  --indigo-link-hover: #3730A3;
  --indigo-border: #C7D2FE;
  --green: #22C55E;
  --amber: #F59E0B;
  --amber-bg: #FEF3C7;
  --amber-text: #92400E;
  --ink: #111827;
  --body: #374151;
  --body-2: #4B5563;
  --muted: #6B7280;
  --faint: #9CA3AF;
  --border: #E5E7EB;
  --border-dashed: #D1D5DB;
  --hairline: #EEF0F4;
  --surface: #FFFFFF;
  --band: #F8F9FB;
  --tile: #F3F4F6;
  /* 2026-10-07 dark mode (webpage 6.1): former hard-coded values, same light look */
  --accent-bg: #4F46E5;
  --accent-bg-hover: #4338CA;
  --on-accent: #fff;
  --header-bg: rgba(255, 255, 255, .9);
  --live-bg: #DCFCE7;
  --live-text: #166534;
  --store-bg: #111827;
  --store-text: #fff;
  --store-hover: #000;
  --frame: #111827;
  --foot-bg: #111827;
  --foot-text: #9CA3AF;
  --foot-link: #E5E7EB;
  --foot-strong: #fff;
  --foot-line: transparent;
  --shadow-rgb: 17, 24, 39;
  --glow: rgba(79, 70, 229, .08);
  --ring: 0 0 0 0 transparent;   /* dark: hairline around dark app icons */
  --font-display: 'Plus Jakarta Sans', ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: 'Source Sans 3', ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}
/* Dark set - follows the browser (portfolio rule 2026-10-04, owner option a 2026-10-07: no toggle).
   Brand-tinted surface, indigo lightened for text/links (>= 4.5:1), buttons keep the brand indigo. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --indigo: #818CF8; --indigo-hover: #4338CA; --indigo-link-hover: #A5B4FC; --indigo-border: #4F46E5;
    --amber-bg: #3B2A0B; --amber-text: #FCD34D;
    --ink: #F3F4F6; --body: #D1D5DB; --body-2: #C3C8D2; --muted: #9CA3AF; --faint: #7D849A;
    --border: #2A2F45; --border-dashed: #3A4060; --hairline: #1E2235;
    --surface: #0F1220; --band: #141829; --tile: #1E2235;
    --header-bg: rgba(15, 18, 32, .85);
    --live-bg: #0F3D24; --live-text: #86EFAC;
    --store-bg: #F3F4F6; --store-text: #111827; --store-hover: #fff;
    --frame: #262B3F;
    --foot-bg: #0A0C16; --foot-line: #1E2235;
    --shadow-rgb: 0, 0, 0;
    --glow: rgba(129, 140, 248, .12);
    --ring: 0 0 0 1px rgba(255, 255, 255, .1);
  }
}
:root[data-theme="dark"] {
  --indigo: #818CF8; --indigo-hover: #4338CA; --indigo-link-hover: #A5B4FC; --indigo-border: #4F46E5;
  --amber-bg: #3B2A0B; --amber-text: #FCD34D;
  --ink: #F3F4F6; --body: #D1D5DB; --body-2: #C3C8D2; --muted: #9CA3AF; --faint: #7D849A;
  --border: #2A2F45; --border-dashed: #3A4060; --hairline: #1E2235;
  --surface: #0F1220; --band: #141829; --tile: #1E2235;
  --header-bg: rgba(15, 18, 32, .85);
  --live-bg: #0F3D24; --live-text: #86EFAC;
  --store-bg: #F3F4F6; --store-text: #111827; --store-hover: #fff;
  --frame: #262B3F;
  --foot-bg: #0A0C16; --foot-line: #1E2235;
  --shadow-rgb: 0, 0, 0;
  --glow: rgba(129, 140, 248, .12);
  --ring: 0 0 0 1px rgba(255, 255, 255, .1);
}
* { box-sizing: border-box; }
html { color-scheme: light dark; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font: 16px/1.5 var(--font-body);
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--indigo); text-decoration: none; }
a:hover { color: var(--indigo-link-hover); text-decoration: underline; }
h1, h2, h3 { font-family: var(--font-display); margin: 0; }
h2 { font-size: 36px; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }

/* Content container */
.wrap { max-width: 1120px; margin: 0 auto; padding-inline: 24px; }

/* Header - sticky, full-width bar; the padding centres the content on a 1120px column
   (markup shared with the legal pages, no inner div). */
.top {
  position: sticky; top: 0; z-index: 5;
  background: var(--header-bg); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hairline);
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px;
  padding: 16px max(24px, calc((100% - 1120px) / 2));
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.brand:hover { color: var(--ink); text-decoration: none; }
.brand .mark { width: 34px; height: 34px; display: block; }
.brand picture { display: block; }   /* dark-mode logo swap, layout as the bare <img> */
.wordmark { display: flex; flex-direction: column; line-height: 1; }
.wm-main { font-family: var(--font-display); font-size: 18px; font-weight: 800; }
.wm-sub { font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }
.top nav { display: flex; gap: 28px; font-size: 15px; font-weight: 500; }
.top nav a { color: var(--body); }
.top nav a:hover { color: var(--ink); text-decoration: none; }
@media (max-width: 480px) { .top nav { gap: 18px; } }
@media (max-width: 380px) { .wordmark { display: none; } }   /* symbol only when the wordmark would shrink */

/* Hero */
.hero {
  padding-top: 96px; padding-bottom: 72px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 48px; align-items: center;
}
.eyebrow { margin: 0 0 20px; font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--indigo); }
h1 { font-size: clamp(40px, 6vw, 68px); font-weight: 800; line-height: 1.02; letter-spacing: -.03em; margin: 0 0 24px; text-wrap: balance; }
.rule { width: 72px; height: 4px; border-radius: 2px; margin: 0 0 28px; background: linear-gradient(90deg, var(--indigo), var(--green)); }
.lead { margin: 0 0 32px; max-width: 520px; font-size: 19px; line-height: 1.6; color: var(--body-2); text-wrap: pretty; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Buttons - never underlined */
.btn {
  display: inline-flex; align-items: center; padding: 13px 22px; border-radius: 10px;
  background: var(--accent-bg); color: var(--on-accent); font-weight: 600; font-size: 15px;
  transition: background-color 150ms ease, border-color 150ms ease;
}
.btn:hover { background: var(--accent-bg-hover); color: var(--on-accent); text-decoration: none; }
.btn-secondary { background: transparent; border: 1px solid var(--border); color: var(--ink); }
.btn-secondary:hover { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-sm { padding: 10px 16px; border-radius: 9px; font-size: 14px; }

/* Hero icon mosaic - 3 columns at every width; the middle column is offset 28px */
.mosaic {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
  width: 100%; max-width: 360px; justify-self: center; padding-bottom: 28px;
}
.tile { aspect-ratio: 1; border-radius: 24px; overflow: hidden; box-shadow: 0 10px 30px rgba(var(--shadow-rgb), .12), var(--ring); }
.tile img { width: 100%; height: 100%; display: block; }
.tile.lift { transform: translateY(28px); }
.tile.count {
  background: var(--tile); box-shadow: none;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: 13px; color: var(--faint);
}

/* App portfolio band */
.band { background: var(--band); border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
.band .wrap { padding-top: 80px; padding-bottom: 80px; }
.apps-head { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 36px; }
.apps-count { font-size: 15px; color: var(--muted); }
.group { display: flex; align-items: center; gap: 10px; margin: 0 0 20px; font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--body); }
.group .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.group.soon .dot { background: var(--amber); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.grid.live { margin-bottom: 56px; }

.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 28px;
  display: flex; flex-direction: column; gap: 18px;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}
.card:hover { border-color: var(--indigo-border); box-shadow: 0 12px 32px var(--glow); }
.card.soon { border: 1px dashed var(--border-dashed); }
.card.soon:hover { border-color: var(--border-dashed); box-shadow: none; }
.chead { display: flex; align-items: center; gap: 14px; }
.cicon { width: 56px; height: 56px; border-radius: 14px; flex: none; display: block; box-shadow: 0 4px 12px rgba(var(--shadow-rgb), .1), var(--ring); }
.chead div { display: flex; flex-direction: column; gap: 4px; }
.card h3 { font-size: 20px; font-weight: 700; letter-spacing: -.01em; }
.cat { font-size: 13px; color: var(--muted); }
.card p { margin: 0; font-size: 16px; line-height: 1.55; color: var(--body-2); flex: 1; text-wrap: pretty; }
/* Button (or pill) over the platforms line on every card, so all footers have the same
   height and the buttons sit on one line across a row (a long label used to wrap). */
.cfoot { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.platforms { font-size: 13px; color: var(--muted); }
.pill { display: inline-flex; align-items: center; padding: 6px 12px; border-radius: 999px; background: var(--amber-bg); color: var(--amber-text); font-weight: 600; font-size: 13px; }

/* About + Contact - two columns */
.two-col { padding-top: 80px; padding-bottom: 80px; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 48px; }
.two-col p { margin: 0; font-size: 18px; line-height: 1.65; color: var(--body); text-wrap: pretty; }
.contact-band { border-top: 1px solid var(--hairline); }
.contact { display: grid; grid-template-columns: max-content 1fr; gap: 14px 32px; margin: 0; font-size: 17px; line-height: 1.5; }
.contact dt { color: var(--muted); }
.contact dd { margin: 0; }
@media (max-width: 480px) { .contact { grid-template-columns: 1fr; gap: 4px 0; } .contact dd { margin-bottom: 10px; } }
.muted { color: var(--muted); }

/* Portfolio card → app detail page */
.card a.chead { color: var(--ink); }
.card a.chead:hover { text-decoration: none; }
.card a.chead:hover h3 { color: var(--indigo); }

/* App detail pages (handoffs/design_handoff_app_detail_page) */
.back { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 500; color: var(--muted); margin-bottom: 36px; }
.back:hover { color: var(--ink); text-decoration: none; }
.app-hero { padding-top: 56px; padding-bottom: 64px; }
.app-hero .cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 48px; align-items: center; }
.app-id { display: flex; align-items: center; gap: 20px; margin-bottom: 28px; }
.app-icon { width: 96px; height: 96px; border-radius: 24px; flex: none; display: block; box-shadow: 0 10px 30px rgba(var(--shadow-rgb), .12), var(--ring); }
.app-id h1 { font-size: 44px; line-height: 1; letter-spacing: -.03em; margin: 0 0 8px; }
.app-id > div { min-width: 0; }
.app-id h1 { overflow-wrap: anywhere; }
@media (max-width: 480px) { .app-id { gap: 16px; } .app-icon { width: 64px; height: 64px; border-radius: 16px; } .app-id h1 { font-size: 32px; } }
.app-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 14px; color: var(--muted); }
.pill-sm { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--amber-bg); color: var(--amber-text); }
.pill-sm.live { background: var(--live-bg); color: var(--live-text); }
.tagline { font-family: var(--font-display); font-weight: 600; font-size: 24px; line-height: 1.3; letter-spacing: -.01em; margin: 0 0 16px; text-wrap: balance; }
.app-desc { font-size: 18px; line-height: 1.6; color: var(--body-2); margin: 0 0 32px; max-width: 520px; text-wrap: pretty; }
.stores { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.btn-store {
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 10px;
  background: var(--store-bg); color: var(--store-text); font-weight: 600; font-size: 15px; transition: background-color 150ms ease;
}
.btn-store:hover { background: var(--store-hover); color: var(--store-text); text-decoration: none; }
.phone { aspect-ratio: 9 / 19.5; border-radius: 28px; background: var(--frame); padding: 8px; box-shadow: 0 16px 36px rgba(var(--shadow-rgb), .14); }
.phone .screen { width: 100%; height: 100%; border-radius: 22px; background: var(--tile); overflow: hidden; }
.phone img { width: 100%; height: 100%; object-fit: cover; display: block; }
.phone-hero { width: 100%; max-width: 300px; justify-self: center; border-radius: 36px; padding: 10px; box-shadow: 0 30px 60px rgba(var(--shadow-rgb), .22); }
.phone-hero .screen { border-radius: 28px; }
.features h2 { margin-bottom: 40px; }
.feature { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.feature .idx { font-family: var(--font-display); font-weight: 700; font-size: 13px; color: var(--indigo); letter-spacing: .08em; }
.feature h3 { font-size: 20px; font-weight: 700; letter-spacing: -.01em; }
.feature p { margin: 0; font-size: 16px; line-height: 1.55; color: var(--body-2); text-wrap: pretty; }
.screens-sec { padding-top: 80px; padding-bottom: 80px; }
.screens-head { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 40px; }
.screens { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 24px; }
.screens figure { margin: 0; display: flex; flex-direction: column; gap: 14px; }
.screens figcaption { display: flex; flex-direction: column; gap: 4px; }
.screens .st { font-family: var(--font-display); font-weight: 700; font-size: 16px; }
.screens .sd { font-size: 14px; line-height: 1.5; color: var(--muted); }
.legal-links { display: flex; gap: 8px; flex-wrap: wrap; }

/* Legal pages (privacy / terms, EN + ES) keep the narrow reading column */
.legal { max-width: 880px; margin: 0 auto; padding: 24px 24px 56px; font-size: 17px; line-height: 1.6; }
.legal h1 { font-size: 34px; font-weight: 800; letter-spacing: -.02em; margin: 0 0 18px; }
.legal h2 { font-size: 22px; margin: 28px 0 12px; }
.legal h3 { font-size: 17px; font-weight: 700; margin: 22px 0 8px; }
.legal code { font-size: 0.95em; }

/* Footer - dark surface, reversed lockup */
.foot { background: var(--foot-bg); color: var(--foot-text); font-size: 14px; box-shadow: inset 0 1px 0 var(--foot-line); }
.foot .inner {
  max-width: 1120px; margin: 0 auto; padding: 32px 24px;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px 24px;
}
.foot .brand { color: var(--foot-strong); }
.foot .brand:hover { color: var(--foot-strong); }
.foot .brand .mark { width: 28px; height: 28px; }
.foot .brand-name { font-family: var(--font-display); font-weight: 700; }
.foot p { margin: 0; }
.foot a { color: var(--foot-link); }
.foot a:hover { color: var(--foot-strong); }
