/* Bliink · site styles · brand tokens: White #FFFFFF · Ink #111111 · Silver #9BABBB · Gold #EFAE20 · Muted #4B5563 · Hairline #E5E7EB
   Secondary palette (5% max, one per section, per Bliink Brand Guidelines v1.0): Green #009436 · Purple #942AF4 · Teal #00CEB6 · Pink #F66BFF · Lime #72D000 · Blue #1C5DF8 */

:root {
  --color-white: #FFFFFF;
  --color-ink: #111111;
  --color-silver: #9BABBB;
  --color-gold: #EFAE20;
  --color-muted: #4B5563;
  --color-hairline: #E5E7EB;
  --color-blue: #1C5DF8;
  --color-teal: #00CEB6;
  --color-purple: #942AF4;
  --color-lime: #72D000;
  --color-green: #009436;
  --color-pink: #F66BFF;
  --font-sans: 'Inter', system-ui, sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

html, body { overflow-x: clip; }
html { scroll-behavior: smooth; }
@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; }
}

body { font-family: var(--font-sans); }

.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 24;
  font-size: 1.25rem;
}

/* Skip link */
.skip-link {
  position: absolute; left: 1rem; top: -3rem; z-index: 100;
  background: var(--color-ink); color: var(--color-white);
  padding: 0.75rem 1.25rem; border-radius: 0.25rem;
  transition: top 150ms var(--ease-out);
}
.skip-link:focus { top: 1rem; }

/* Focus ring — ink on light sections, gold on dark sections (contrast-verified) */
:focus-visible { outline: 2px solid var(--color-ink); outline-offset: 2px; }
.on-dark :focus-visible { outline-color: var(--color-gold); }

/* Gold-accent headline word: ink fill (gold at 1.95:1 fails AA even at display size) + gold underline to carry the brand treatment.
   On dark backgrounds gold text passes AA comfortably (~9.6:1), so .on-dark swaps to solid gold fill. */
.accent-word {
  font-style: italic;
  font-weight: 600;
  color: var(--color-ink);
  text-decoration: none;
  background-image: linear-gradient(var(--color-gold), var(--color-gold));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 100% 0.1em;
  padding-bottom: 0.06em;
}
.on-dark .accent-word {
  color: var(--color-gold);
  background-image: none;
  padding-bottom: 0;
}

/* Phone-frame chat mockup — illustrative UI, not a faked screenshot */
.phone-frame {
  position: relative;
  width: 300px;
  height: 600px;
  border: 10px solid var(--color-ink);
  border-radius: 36px;
  overflow: hidden;
  background: var(--color-white);
  box-shadow: 0 25px 50px -12px rgba(17,17,17,0.25);
}
@media (max-width: 767px) {
  .phone-frame { width: 240px; height: 480px; border-width: 8px; border-radius: 28px; }
}
.phone-notch {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 120px; height: 20px; background: var(--color-ink);
  border-bottom-left-radius: 14px; border-bottom-right-radius: 14px; z-index: 10;
}

.chat-bubble { animation: bubble-in 320ms var(--ease-out) both; }
@keyframes bubble-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

.thread-tab[aria-selected="true"] { color: var(--color-ink); border-color: var(--color-ink); }
.thread-tab[data-thread="2"][aria-selected="true"] { border-color: var(--color-blue); color: var(--color-blue); }

/* Accordion */
.accordion-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 260ms var(--ease-out); }
.accordion-panel[data-open="true"] { grid-template-rows: 1fr; }
.accordion-panel > div { overflow: hidden; }
.accordion-trigger .chevron { transition: transform 220ms var(--ease-out); }
.accordion-trigger[aria-expanded="true"] .chevron { transform: rotate(180deg); }

/* Case study filter tiles */
.bento-tile[data-hidden="true"] { display: none; }
.bento-photo-tile {
  position: relative;
  background-size: cover;
  background-position: center;
}
.bento-photo-tile::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(17,17,17,0.88), rgba(17,17,17,0.25) 55%, rgba(17,17,17,0.05));
}
.bento-photo-tile > * { position: relative; z-index: 1; }

/* Testimonial carousel */
.testimonial-track { display: flex; transition: transform 420ms var(--ease-out); }
.testimonial-slide { flex: 0 0 100%; }

/* Modal */
dialog.pillar-modal {
  border: none; border-radius: 0.5rem; padding: 0; max-width: 34rem; width: calc(100% - 2rem);
  box-shadow: 0 25px 50px -12px rgba(17,17,17,0.35);
}
dialog.pillar-modal::backdrop { background: rgba(17,17,17,0.55); }

/* WhatsApp floating CTA */
.wa-float {
  position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 40;
  background: var(--color-ink); color: var(--color-white);
  border-radius: 9999px; padding: 0.9rem; box-shadow: 0 10px 25px rgba(17,17,17,0.3);
  transition: background 200ms var(--ease-out);
}
.wa-float:hover, .wa-float:focus-visible { background: var(--color-gold); color: var(--color-ink); }

.placeholder-block {
  background: rgba(155,171,187,0.08);
  border: 1px dashed var(--color-hairline);
  color: var(--color-muted);
}

/* Section background rhythm — subtle single-secondary-color washes per Bliink's 60/30/5/5 rule */
.section-tint-teal { background-color: rgba(0, 206, 182, 0.05); }
.section-tint-purple { background-color: rgba(148, 42, 244, 0.045); }

/* Client trust-bar logos: recolored via CSS mask so any source PNG renders as a flat
   silver silhouette by default and gold on hover — matches the brand's literal spec
   without needing pre-recolored logo assets. --logo-url is set inline per instance. */
.logo-chip {
  display: inline-block;
  width: 120px;
  height: 40px;
  background-color: var(--color-silver);
  -webkit-mask-image: var(--logo-url);
  mask-image: var(--logo-url);
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  transition: background-color 200ms var(--ease-out), transform 200ms var(--ease-out);
}
.logo-chip-link:hover .logo-chip,
.logo-chip-link:focus-visible .logo-chip {
  background-color: var(--color-gold);
  transform: translateY(-1px);
}

.media-logo {
  height: 28px;
  width: auto;
  max-width: 130px;
  object-fit: contain;
  filter: grayscale(0.15);
  opacity: 0.92;
  transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out);
}
.media-logo:hover { opacity: 1; transform: translateY(-1px); }

.brand-logo-svg { display: block; height: 32px; width: auto; }
.brand-logo-svg--footer { height: 40px; }
