/* Bluconta public landing: brand tokens, type scale, buttons, topbar and side menu.
   The page is white with black ink. Blue is the one accent and sky blue the one surface colour (the hero,
   the showroom cards, the contador band and the closing): the paper crane's sky. */
:root {
  --ground: #FFFFFF;
  --white: #FFFFFF;
  --ink: #0A0A0B;
  --ink-hover: #2A2B30;
  --ink-2: #44474F;
  /* Small notes: dark enough to clear 4.5:1 on the sky band too. */
  --ink-3: #5F646E;
  --blue: #2F7BE9;
  /* White text on the brand blue only reaches 4.1:1; text and links in blue use this one (5.7:1). */
  --blue-deep: #1F5FD6;
  --sky: #DDEEFF;
  --sky-soft: #EAF4FF;
  --sky-deep: #C6E1FF;
  --line: rgba(10, 10, 11, 0.1);
  --line-2: rgba(10, 10, 11, 0.2);
  --ok: #12804A;
  --ok-soft: #E1F4E8;
  --wa: #25D366;
  --r-s: 10px;
  --r-m: 14px;
  --r-l: 24px;
  --r-xl: 32px;
  --shadow-card: 0 1px 2px rgba(16, 24, 40, 0.05), 0 18px 40px -22px rgba(16, 24, 40, 0.28);
  --font: 'Golos Text', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --topbar-h: 68px;
  /* Lets <details> animate to height:auto where supported (FAQ). */
  interpolate-size: allow-keywords;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--topbar-h) + 16px); }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  background: var(--ground);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
img, svg { display: block; max-width: 100%; }
.mono { font-family: var(--mono); font-weight: 500; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.nobr { white-space: nowrap; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.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;
}

.container { max-width: 1224px; margin: 0 auto; padding-inline: 32px; }
.section { padding-block: 120px; }
/* Section opener: headline and one paragraph, left-aligned, sharing the page's left edge. */
.sec-head { display: grid; gap: 18px; max-width: 760px; margin-bottom: 56px; }
.sec-head .lede { margin: 0; }

/* Logo: the paper crane (partials/brand/_symbol.html) + "bluconta". Its wing meets the top of the "b",
   its body sits on the baseline (0.82em tall, feet 0.063em under the baseline), half an x apart. */
.brand {
  display: inline-block; white-space: nowrap;
  font-weight: 600; font-size: 24px; line-height: 1;
  letter-spacing: -0.04em; color: var(--ink);
}
.brand svg {
  display: inline-block; vertical-align: baseline; position: relative; bottom: -0.063em;
  width: 1.28em; height: 0.82em; margin-right: 0.18em;
}

/* Type scale */
h1, h2, h3, h4 { margin: 0; font-weight: 600; text-wrap: balance; }
.h-display { font-size: clamp(44px, 5.5vw, 82px); line-height: 0.98; letter-spacing: -0.045em; }
.h-section { font-size: clamp(32px, 3.7vw, 54px); line-height: 1.04; letter-spacing: -0.04em; }
.h-card { font-size: clamp(22px, 2vw, 28px); line-height: 1.14; letter-spacing: -0.03em; }
.lede { font-size: clamp(18px, 1.5vw, 20px); line-height: 1.5; color: var(--ink-2); max-width: 34em; letter-spacing: -0.01em; text-wrap: pretty; }

/* Buttons. The primary is black everywhere; every WhatsApp button is WhatsApp's green. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  height: 52px; padding: 0 26px; border-radius: 999px;
  font-weight: 500; font-size: 16.5px; letter-spacing: -0.01em; line-height: 1;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease, transform 150ms ease;
}
.btn:active { transform: scale(0.97); }
.btn:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.btn-ink { background: var(--ink); color: var(--white); }
.btn-ink:hover { background: var(--ink-hover); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-sm { height: 40px; padding: 0 18px; font-size: 15px; }
/* WhatsApp: its own green with black ink (white on this green fails contrast). */
.btn-wa { background: var(--wa); color: var(--ink); padding-left: 20px; }
.btn-wa:hover { background: #1FC45C; }
.btn-wa svg { flex-shrink: 0; width: 22px; height: 22px; }

.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; }
.link-arrow .arrow { transition: transform 200ms var(--ease); }
.link-arrow:hover .arrow { transform: translateX(4px); }
.link-line { font-weight: 500; text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 4px; transition: text-decoration-color 150ms ease; }
.link-line:hover { text-decoration-color: currentColor; }
.link-line:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }

/* Sliding pill shared by the nav and the pricing switch; landing.js sets its width and offset. */
.pill-ind {
  position: absolute; z-index: 0; top: 0; left: 0; width: 0; height: 0;
  border-radius: 999px; opacity: 0; pointer-events: none;
  transition: transform 450ms var(--ease), width 450ms var(--ease), height 450ms var(--ease), opacity 200ms ease;
}
.has-pill > .pill-ind { opacity: 1; }

/* Topbar: a full-width transparent bar over the hero that shrinks into a floating island after
   scrolling, hides while scrolling down and comes back on scroll up (landing.js). */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
  pointer-events: none;
  transition: transform 420ms var(--ease);
}
.topbar.is-hidden { transform: translateY(calc(-100% - 40px)); }
.topbar-inner {
  pointer-events: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  width: 100%; max-width: 1224px; height: var(--topbar-h); margin: 0 auto; padding-inline: 32px;
  border: 1px solid transparent; border-radius: 0;
  transition: width 500ms var(--ease), max-width 500ms var(--ease), height 500ms var(--ease),
    margin 500ms var(--ease), padding 500ms var(--ease), border-radius 500ms var(--ease),
    background-color 300ms ease, border-color 300ms ease, box-shadow 300ms ease;
}
.topbar.is-island .topbar-inner {
  width: calc(100% - 24px); max-width: 1040px; height: 58px; margin-top: 10px; padding-inline: 22px 9px;
  background: rgba(255, 255, 255, 0.86);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  backdrop-filter: saturate(180%) blur(16px);
  border-color: var(--line); border-radius: 999px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05), 0 14px 34px -18px rgba(16, 24, 40, 0.34);
}
.topbar .brand { transition: font-size 500ms var(--ease); }
.topbar.is-island .brand { font-size: 22px; }
.nav-links { position: relative; display: flex; gap: 2px; font-size: 15px; font-weight: 500; }
.nav-links a { position: relative; z-index: 1; padding: 8px 13px; white-space: nowrap; border-radius: 999px; color: var(--ink-2); transition: color 200ms ease; }
.nav-links a:hover, .nav-links a.is-active { color: var(--ink); }
.nav-links a:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.nav-links .pill-ind { background: rgba(16, 24, 40, 0.07); }
.topbar-actions { display: flex; align-items: center; gap: 18px; }
.topbar-login { font-size: 15px; font-weight: 500; color: var(--ink-2); white-space: nowrap; transition: color 200ms ease; }
.topbar-login:hover { color: var(--ink); }
.topbar-login:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; border-radius: 4px; }

/* Side menu (below 1000px): the section links slide in from the left (landing.js). */
.menu-btn { display: none; position: relative; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: rgba(16, 24, 40, 0.07); color: var(--ink); cursor: pointer; }
.menu-btn span { position: absolute; left: 12px; right: 12px; height: 2px; border-radius: 2px; background: currentColor; }
.menu-btn span:first-child { top: 15px; }
.menu-btn span:last-child { bottom: 15px; }
.menu-btn:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.mnav { position: fixed; inset: 0; z-index: 60; visibility: hidden; transition: visibility 0s linear 400ms; }
.mnav.is-open { visibility: visible; transition: none; }
.mnav-backdrop { position: absolute; inset: 0; background: rgba(16, 24, 40, 0.45); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); opacity: 0; transition: opacity 300ms ease; touch-action: none; }
.mnav.is-open .mnav-backdrop { opacity: 1; }
.mnav-panel {
  position: absolute; top: 0; left: 0; bottom: 0; display: flex; flex-direction: column; width: min(86vw, 380px);
  padding: calc(env(safe-area-inset-top, 0px) + 12px) 22px calc(env(safe-area-inset-bottom, 0px) + 24px);
  background: var(--ground); box-shadow: 20px 0 60px -20px rgba(16, 24, 40, 0.4);
  overflow-y: auto; overscroll-behavior: contain;
  transform: translateX(-100%); transition: transform 400ms var(--ease);
}
.mnav.is-open .mnav-panel { transform: none; }
.mnav-head { display: flex; align-items: center; justify-content: space-between; height: 50px; margin-bottom: 14px; }
.mnav-head .brand { font-size: 22px; }
.mnav-close { display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(16, 24, 40, 0.07); cursor: pointer; }
.mnav-close svg { width: 18px; height: 18px; fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; }
.mnav-links { display: grid; }
.mnav-links a { padding: 15px 2px; border-bottom: 1px solid var(--line); font-size: 22px; font-weight: 600; letter-spacing: -0.03em; }
.mnav-links a:active { color: var(--blue); }
.mnav-actions { display: grid; gap: 10px; margin-top: auto; padding-top: 24px; }
.mnav-actions .btn { width: 100%; }
/* Page lock while the menu is open: landing.js pins <body> in place (position: fixed at the current
   offset), which also stops iOS Safari from scrolling the page under the backdrop. */
html.mnav-open, html.mnav-open body { overflow: hidden; overscroll-behavior: none; }
html.mnav-open body { position: fixed; left: 0; right: 0; width: 100%; }

/* Floating WhatsApp button: a round icon that opens into its full label when it first appears
   (landing.js) and on hover or focus, so it never sits over the page's content for long. */
.wa-float {
  position: fixed; z-index: 40; right: 20px; bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  display: flex; align-items: center; padding: 7px; border-radius: 999px;
  background: var(--ink); color: var(--white); font-size: 14.5px; font-weight: 500;
  box-shadow: 0 2px 4px rgba(16, 24, 40, 0.06), 0 30px 60px -24px rgba(16, 24, 40, 0.5);
  transition: opacity 300ms ease, transform 400ms var(--ease), background-color 150ms ease;
}
.wa-text {
  max-width: 0; overflow: hidden; white-space: nowrap; opacity: 0;
  transition: max-width 450ms var(--ease), margin 450ms var(--ease), opacity 200ms ease;
}
.wa-float:hover .wa-text, .wa-float:focus-visible .wa-text, .wa-float.is-open .wa-text {
  max-width: 440px; margin: 0 14px 0 10px; opacity: 1;
}
.js .wa-float:not(.is-shown) { opacity: 0; transform: translateY(16px); pointer-events: none; }
.wa-float:hover { background: var(--ink-hover); }
.wa-float:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.wa-ic { display: grid; place-items: center; flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%; background: var(--wa); color: var(--ink); }
.wa-ic svg { width: 24px; height: 24px; }

@media (max-width: 1000px) {
  .nav-links { display: none; }
  /* Menu button, logo, then the actions pushed to the right. The button opens the side menu from JS;
     without JS it would do nothing, so it only shows with it (the footer carries every section link). */
  .js .menu-btn { display: block; flex-shrink: 0; margin-right: 2px; }
  .topbar-inner { justify-content: flex-start; gap: 10px; }
  .topbar-actions { margin-left: auto; }
  .topbar.is-island .topbar-inner { padding-left: 8px; }
  .section { padding-block: 96px; }
}
@media (max-width: 640px) {
  :root { --topbar-h: 62px; }
  body { font-size: 16.5px; }
  .container { padding-inline: 20px; }
  .section { padding-block: 64px; }
  .sec-head { gap: 14px; margin-bottom: 32px; }
  .topbar-inner { padding-inline: 20px; }
  .topbar.is-island .topbar-inner { width: calc(100% - 16px); height: 54px; margin-top: 8px; padding-inline: 8px 7px; }
  .topbar-actions { gap: 8px; }
  /* On phones the bar keeps only the primary button; signing in lives in the side menu. */
  .js .topbar-login { display: none; }
  .brand, .topbar.is-island .brand { font-size: 21px; }
  .btn-sm { height: 38px; padding: 0 15px; font-size: 14.5px; }
  /* On phones the floating button is just the round icon; its name stays in aria-label. */
  .wa-float { right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); padding: 0; background: none; box-shadow: none; }
  .wa-float:hover { background: none; }
  .wa-text { display: none; }
  .wa-ic { width: 52px; height: 52px; box-shadow: 0 12px 30px -10px rgba(16, 24, 40, 0.5); }
  .wa-ic svg { width: 28px; height: 28px; }
}
/* The narrowest phones: the long WhatsApp button has to fit a 280px column. */
@media (max-width: 359px) {
  .btn:not(.btn-sm) { gap: 8px; padding-inline: 14px; font-size: 15.5px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; }
}
