/* buzonessol.com: presentation site. Same system as the app (public/app.css): Geist + Phosphor, one teal accent,
   light by default and dark by <html data-theme="dark">, controls 8px / containers 12px / pills round. No inline styles (CSP). */
@font-face { font-family: "Geist"; src: url("/fonts/Geist-Variable.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("/fonts/GeistMono-Variable.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --bg: #f5f6f8; --surface: #fcfcfd; --surface-2: #f0f2f5; --border: #e2e5ea; --border-strong: #cfd4dc;
  --text: #14181e; --muted: #5a6371; --accent: #0f766e; --accent-hover: #0d6961; --accent-ink: #f7fffd; --accent-soft: #e3f3f1;
  --shadow: 0 1px 2px rgb(20 30 45 / .05), 0 2px 6px rgb(20 30 45 / .04);
  --shadow-lg: 0 1px 2px rgb(20 30 45 / .06), 0 12px 40px -12px rgb(20 30 45 / .18);
  --r-control: 8px; --r-box: 12px;
  --p-teal: #0f766e; --p-azul: #2456c7; --p-violeta: #6b3fd1; --p-rosa: #c0267a; --p-pizarra: #475569;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #0e1115; --surface: #151a20; --surface-2: #1c222a; --border: #283039; --border-strong: #36404b;
  --text: #e7eaee; --muted: #98a2af; --accent: #2bc4b0; --accent-hover: #3fd3bf; --accent-ink: #052b26; --accent-soft: #11302c;
  --shadow: 0 1px 2px rgb(0 0 0 / .35);
  --shadow-lg: 0 1px 2px rgb(0 0 0 / .4), 0 16px 48px -12px rgb(0 0 0 / .6);
  --p-teal: #2bc4b0; --p-azul: #7eaaff; --p-violeta: #b094ff; --p-rosa: #ff85c2; --p-pizarra: #aab8c8;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--text); font: 16px/1.55 "Geist", system-ui, -apple-system, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; font-feature-settings: "tnum" 1; }
[hidden] { display: none !important; }
h1, h2, h3, p, figure { margin: 0; }
h1 { font-size: clamp(34px, 4.6vw, 52px); line-height: 1.08; font-weight: 650; letter-spacing: -.03em; text-wrap: balance; }
h2 { font-size: clamp(26px, 3vw, 34px); line-height: 1.15; font-weight: 650; letter-spacing: -.025em; text-wrap: balance; }
h3 { font-size: 17px; line-height: 1.3; font-weight: 650; letter-spacing: -.01em; }
p { text-wrap: pretty; }
.lead { font-size: 18px; line-height: 1.5; color: var(--muted); max-width: 54ch; }
.muted { color: var(--muted); }
small { display: block; color: var(--muted); font-size: 12px; }
.mono { font-family: "Geist Mono", ui-monospace, monospace; }
.i { width: 18px; height: 18px; fill: currentColor; flex: none; }
a { color: inherit; }
.link { color: var(--accent); font-weight: 600; text-decoration: none; text-underline-offset: 3px; }
.link:hover { text-decoration: underline; }
.skip { position: absolute; left: 16px; top: -48px; background: var(--accent); color: var(--accent-ink); padding: 8px 12px; border-radius: var(--r-control); z-index: 20; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }
:is(a, button):focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.wrap { max-width: 1160px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }

/* Brand (as in the app) */
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; text-decoration: none; color: inherit; }
.brand strong { font-size: 15px; font-weight: 650; letter-spacing: -.01em; }
.logo { width: 32px; height: 32px; border-radius: var(--r-control); background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; flex: none; }
.logo .i { width: 19px; height: 19px; }

/* Buttons (as in the app) */
.btn { appearance: none; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); border-radius: var(--r-control); padding: 9px 14px; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap; text-decoration: none; transition: background-color .15s, border-color .15s, transform .1s; }
.btn:hover { background: var(--surface-2); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn.lg { padding: 12px 18px; font-size: 15px; }
.icon-btn { appearance: none; border: 0; background: transparent; color: var(--muted); width: 36px; height: 36px; border-radius: var(--r-control); cursor: pointer; display: inline-grid; place-items: center; transition: background-color .15s, color .15s; }
.icon-btn:hover { background: var(--surface-2); color: var(--text); }
.cta-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.nav-in { height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.nav-right { display: flex; align-items: center; gap: 4px; }
.navlink { color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 600; padding: 8px 10px; border-radius: var(--r-control); }
.navlink:hover { color: var(--text); background: var(--surface-2); }
.nav .btn { margin-left: 8px; }

/* Theme-dependent screenshots: both are in the markup, one shows */
:root:not([data-theme="dark"]) .only-dark, :root[data-theme="dark"] .only-light { display: none; }

/* Screenshot frame */
.shot { border: 1px solid var(--border); border-radius: var(--r-box); overflow: hidden; background: var(--surface); box-shadow: var(--shadow-lg); }
.shot img { display: block; width: 100%; height: auto; }

/* Hero */
.hero { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 40px; align-items: center; padding-top: 72px; padding-bottom: 48px; }
.hero-copy { display: grid; gap: 22px; }
.hero-copy .cta-row { margin-top: 4px; }
.hero-shot { position: relative; min-width: 0; }
@media (min-width: 1240px) { .hero-shot { margin-right: calc((100vw - 1160px) / -2 + 24px); } .hero-shot .shot { border-radius: var(--r-box) 0 0 var(--r-box); border-right: 0; } }
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * { animation: rise .6s cubic-bezier(.16, 1, .3, 1) both; }
  .hero-copy > :nth-child(2) { animation-delay: .06s; }
  .hero-copy > :nth-child(3) { animation-delay: .12s; }
  .hero-shot { animation: rise .7s cubic-bezier(.16, 1, .3, 1) .1s both; }
  @keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
}

/* One-line statement */
.statement { padding-top: 56px; padding-bottom: 56px; }
.statement p { font-size: clamp(22px, 2.6vw, 30px); line-height: 1.3; font-weight: 550; letter-spacing: -.02em; max-width: 30ch; border-left: 3px solid var(--accent); padding-left: 22px; }

/* Steps */
.steps { padding-top: 40px; padding-bottom: 72px; }
.steps h2 { margin-bottom: 36px; }
.steps-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.steps-grid li { border-top: 1px solid var(--border-strong); padding-top: 20px; display: grid; gap: 10px; align-content: start; }
.steps-grid .num { font-size: 13px; font-weight: 600; color: var(--accent); }
.steps-grid p { color: var(--muted); max-width: 36ch; }

/* Bento: 3 columns, 5 cells (one double-width with a screenshot, one tinted, one with the palette) */
.features { padding-top: 24px; padding-bottom: 72px; }
.features h2 { margin-bottom: 28px; }
.bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.cell { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-box); padding: 24px; display: grid; gap: 10px; align-content: start; box-shadow: var(--shadow); }
.cell p { color: var(--muted); font-size: 15px; }
.cell.wide { grid-column: span 2; padding: 0; overflow: hidden; grid-template-rows: auto 1fr; }
.cell.wide .cell-text { padding: 24px 24px 18px; display: grid; gap: 10px; }
.cell.wide .cell-text p { max-width: 52ch; }
.cell-shot { margin: 0 0 0 24px; border: 1px solid var(--border); border-right: 0; border-bottom: 0; border-radius: var(--r-control) 0 0 0; overflow: hidden; align-self: end; }
.cell-shot img { display: block; width: 100%; height: auto; }
.cell.tint { background: var(--accent-soft); border-color: transparent; }
.cell.tint .cell-icon { color: var(--accent); }
.cell.tint p { color: var(--text); opacity: .8; }
.cell-icon { width: 26px; height: 26px; color: var(--accent); margin-bottom: 6px; }
.swatches { display: flex; gap: 8px; margin-bottom: 8px; }
.sw { width: 26px; height: 26px; border-radius: 50%; border: 3px solid var(--surface); box-shadow: 0 0 0 1px var(--border-strong); }
.sw.teal { background: var(--p-teal); } .sw.azul { background: var(--p-azul); } .sw.violeta { background: var(--p-violeta); } .sw.rosa { background: var(--p-rosa); } .sw.pizarra { background: var(--p-pizarra); }

/* Phone */
.phone { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 48px; align-items: center; padding-top: 24px; padding-bottom: 80px; }
.phone-shot { display: flex; justify-content: center; }
.shot-phone { width: min(300px, 100%); border-radius: 28px; border-width: 1px; }
.phone-copy { display: grid; gap: 16px; }

/* Security band: tinted surface, same theme */
.security { background: var(--surface-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 72px 0; }
.security h2 { margin-bottom: 36px; max-width: 22ch; }
.sec-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 48px; }
.sec-grid > div { display: grid; gap: 8px; align-content: start; }
.sec-grid .i { width: 24px; height: 24px; color: var(--accent); margin-bottom: 4px; }
.sec-grid p { color: var(--muted); max-width: 46ch; }

/* Access */
.access { padding-top: 88px; padding-bottom: 88px; display: grid; gap: 18px; justify-items: start; }
.access h2 { max-width: 20ch; }

/* Footer */
.foot { border-top: 1px solid var(--border); padding: 32px 0 40px; }
.foot-in { display: grid; grid-template-columns: 1fr auto; gap: 16px 24px; align-items: center; }
.foot-links { display: flex; gap: 20px; font-size: 14px; font-weight: 600; }
.foot-links a { color: var(--muted); text-decoration: none; }
.foot-links a:hover { color: var(--text); }
.foot-note { grid-column: 1 / -1; font-size: 13px; max-width: 70ch; }

/* 404 */
.notfound { min-height: 70dvh; display: grid; align-content: center; justify-items: start; gap: 16px; }

/* Tablet */
@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr; gap: 36px; padding-top: 48px; }
  .hero-copy { max-width: 60ch; }
  .steps-grid { gap: 24px; }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .phone { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 32px; }
}

/* Phone */
@media (max-width: 767px) {
  body { font-size: 15px; }
  .wrap { padding-left: 16px; padding-right: 16px; }
  .nav-in { height: 56px; }
  .navlink { display: none; }
  .hero { padding-top: 32px; padding-bottom: 32px; gap: 28px; }
  .lead { font-size: 16.5px; }
  .cta-row .btn.lg { flex: 1 1 auto; }
  .statement { padding-top: 40px; padding-bottom: 40px; }
  .statement p { padding-left: 16px; }
  .steps { padding-bottom: 48px; }
  .steps h2, .features h2 { margin-bottom: 24px; }
  .steps-grid { grid-template-columns: 1fr; gap: 20px; }
  .bento { grid-template-columns: 1fr; gap: 12px; }
  .cell, .cell.wide { grid-column: auto; }
  .cell { padding: 20px; }
  .cell.wide .cell-text { padding: 20px 20px 16px; }
  .cell-shot { margin-left: 20px; }
  .features { padding-bottom: 48px; }
  .phone { grid-template-columns: 1fr; gap: 28px; padding-bottom: 56px; }
  .phone-shot { order: 2; }
  .shot-phone { width: min(260px, 100%); }
  .security { padding: 48px 0; }
  .security h2 { margin-bottom: 28px; }
  .sec-grid { grid-template-columns: 1fr; gap: 28px; }
  .access { padding-top: 56px; padding-bottom: 56px; }
  .foot-in { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn, .icon-btn, .navlink { transition: none; } }

/* Demo page (/demo): the launch video and its share copy */
.demo { padding-top: 48px; padding-bottom: 80px; display: grid; gap: 32px; }
.demo-head { display: grid; gap: 14px; }
.demo-video video { display: block; width: 100%; height: auto; border-radius: var(--r-box); border: 1px solid var(--border); background: #0e1115; box-shadow: var(--shadow-lg); }
.share { display: grid; gap: 14px; justify-items: start; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-box); padding: 24px; box-shadow: var(--shadow); }
.share h2 { font-size: 18px; letter-spacing: -.01em; }
.share-text { font-size: 17px; line-height: 1.5; max-width: 70ch; }
@media (max-width: 767px) { .demo { padding-top: 28px; padding-bottom: 48px; gap: 22px; } .share { padding: 18px; } }
