/* BendyLabs shared styles */
:root {
  --bg: #ffffff;
  --bg-soft: #f5f7f9;
  --card: #ffffff;
  --text: #0e1116;
  --muted: #5a6472;
  --line: #e4e8ee;
  --brand: #0E2A47;
  --brand-ink: #ffffff;
  --brand-soft: #E3F7F5;
  --accent: #0B7A72;
  --link: #1f63d6;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(14, 17, 22, 0.04), 0 8px 24px rgba(14, 17, 22, 0.06);
  --max: 1120px;
}
.theme-boxfinder {
  --brand: #244F3F;
  --brand-ink: #ffffff;
  --brand-soft: #eef4dc;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1014;
    --bg-soft: #12161c;
    --card: #151a21;
    --text: #eef1f5;
    --muted: #9aa4b2;
    --line: #232a33;
    --brand: #19D3C5;
    --brand-ink: #0E2A47;
    --brand-soft: #0f2a2f;
    --accent: #19D3C5;
    --link: #8ab4ff;
    --shadow: none;
  }
  .theme-boxfinder {
    --brand: #E3EDBA;
    --brand-ink: #1b3a2f;
    --brand-soft: #1b2a22;
  }
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; }
a { color: var(--link); }
.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; background: var(--card); padding: 8px 12px; border-radius: 8px; z-index: 10; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 5;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-weight: 700; font-size: 1.1rem; letter-spacing: -0.01em; }
.brand-mark { width: 34px; height: 34px; border-radius: 10px; overflow: hidden; }
.brand-mark img { width: 100%; height: 100%; }
.brand-logo { height: 40px; width: auto; display: block; }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a { color: var(--muted); text-decoration: none; font-weight: 500; font-size: 0.95rem; padding: 8px 12px; border-radius: 10px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); background: var(--bg-soft); }
.nav .btn { margin-left: 6px; }
@media (max-width: 640px) {
  .nav a:not(.btn) { display: none; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: 12px; font-weight: 600; font-size: 0.98rem;
  text-decoration: none; border: 1px solid transparent; cursor: pointer; line-height: 1.2;
}
.btn-primary { background: var(--brand); color: var(--brand-ink); }
.btn-primary:hover { filter: brightness(1.06); }
.btn-secondary { background: var(--card); color: var(--text); border-color: var(--line); }
.btn-secondary:hover { border-color: var(--muted); }
.btn-small { padding: 8px 14px; font-size: 0.9rem; border-radius: 10px; }
.btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; pointer-events: none; }
.nav .btn-primary { color: var(--brand-ink); }
.nav .btn-primary:hover { background: var(--brand); color: var(--brand-ink); }

/* Sections */
section { padding: 88px 0; }
.section-soft { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.eyebrow { display: inline-block; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent, var(--brand)); margin-bottom: 12px; }
.theme-boxfinder .eyebrow { color: var(--brand); }
h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); line-height: 1.05; letter-spacing: -0.03em; font-weight: 750; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); line-height: 1.15; letter-spacing: -0.02em; font-weight: 700; margin-bottom: 14px; }
h3 { font-size: 1.12rem; line-height: 1.3; font-weight: 650; margin-bottom: 6px; }
.lead { font-size: clamp(1.08rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 620px; }
.section-head { max-width: 680px; margin-bottom: 44px; }
.center { text-align: center; margin-left: auto; margin-right: auto; }
.muted { color: var(--muted); }

/* Hero */
.hero { padding: 96px 0 80px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
.hero h1 { margin-bottom: 20px; }
.hero .lead { margin-bottom: 32px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-note { margin-top: 18px; font-size: 0.9rem; color: var(--muted); }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero { padding: 64px 0 56px; }
}

/* Cards */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (max-width: 860px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.card p { color: var(--muted); }
.icon-badge { width: 44px; height: 44px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; margin-bottom: 18px; }
.icon-badge svg { width: 22px; height: 22px; }

/* App feature card */
.app-card { display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center; }
.app-icon { width: 84px; height: 84px; border-radius: 22px; overflow: hidden; flex-shrink: 0; }
.app-icon img { width: 100%; height: 100%; }
.app-card .meta { font-size: 0.88rem; color: var(--muted); margin-top: 6px; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); font-size: 0.82rem; font-weight: 650; }
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
@media (max-width: 700px) { .app-card { grid-template-columns: 1fr; } }

/* Phone mockup */
.phone {
  width: 100%; max-width: 320px; margin: 0 auto; aspect-ratio: 9 / 19;
  border-radius: 44px; background: var(--text); padding: 12px; box-shadow: var(--shadow);
}
.phone-screen { width: 100%; height: 100%; border-radius: 34px; background: var(--bg); overflow: hidden; display: flex; flex-direction: column; }
.phone-top { padding: 22px 18px 12px; }
.phone-title { font-weight: 700; font-size: 1.05rem; }
.phone-search { margin-top: 10px; padding: 9px 12px; border-radius: 12px; background: var(--bg-soft); border: 1px solid var(--line); font-size: 0.8rem; color: var(--muted); }
.phone-list { padding: 4px 14px; display: flex; flex-direction: column; gap: 8px; }
.phone-item { padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); }
.phone-item b { display: block; font-size: 0.82rem; }
.phone-item span { font-size: 0.72rem; color: var(--muted); }
.phone-mic { margin: auto auto 22px; width: 56px; height: 56px; border-radius: 50%; background: var(--brand); display: grid; place-items: center; }

/* Steps */
.steps { counter-reset: step; display: grid; gap: 16px; }
.step { display: grid; grid-template-columns: 48px 1fr; gap: 18px; align-items: start; }
.step::before {
  counter-increment: step; content: counter(step);
  width: 40px; height: 40px; border-radius: 50%; background: var(--brand); color: var(--brand-ink);
  display: grid; place-items: center; font-weight: 700;
}
.step p { color: var(--muted); }

/* Status timeline */
.timeline { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 8px; }
.tl-item { padding: 20px 18px; border-top: 3px solid var(--line); }
.tl-item.done { border-top-color: var(--brand); }
.tl-item.now { border-top-color: var(--brand); background: var(--brand-soft); border-radius: 0 0 12px 12px; }
.tl-item small { display: block; font-weight: 700; font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.tl-item.now small { color: var(--brand); }
@media (max-width: 700px) { .timeline { grid-template-columns: 1fr; } }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::after { content: "+"; color: var(--muted); font-weight: 400; font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { color: var(--muted); margin-top: 10px; }

/* CTA band */
.cta-band { background: var(--text); color: var(--bg); border-radius: 24px; padding: 56px; display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
.cta-band h2 { margin-bottom: 6px; }
.cta-band p { opacity: 0.75; }
.cta-band .btn-primary { background: var(--bg); color: var(--text); }

/* Store button */
.store-btn { display: inline-flex; align-items: center; gap: 12px; padding: 10px 18px; border-radius: 12px; background: var(--text); color: var(--bg); text-decoration: none; min-width: 200px; }
.store-btn small { display: block; font-size: 0.7rem; opacity: 0.8; line-height: 1.1; }
.store-btn strong { display: block; font-size: 1.05rem; line-height: 1.2; }
.store-btn[aria-disabled="true"] { opacity: 0.45; cursor: not-allowed; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 48px 0 40px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.footer-grid h4 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin-bottom: 12px; }
.footer-grid ul { list-style: none; display: grid; gap: 8px; }
.footer-grid a { color: var(--text); text-decoration: none; }
.footer-grid a:hover { color: var(--brand); }
.footer-bottom { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 0.85rem; color: var(--muted); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr; } }

/* App tab in the BendyLabs header: each app is a tab that opens its own site */
.nav a.nav-app { display: inline-flex; align-items: center; gap: 8px; color: var(--text); background: var(--card); border: 1px solid var(--line); font-weight: 600; }
.nav a.nav-app img { width: 22px; height: 22px; border-radius: 6px; }
.nav a.nav-app:hover { border-color: var(--brand); background: var(--card); }
@media (max-width: 640px) { .nav a.nav-app { display: inline-flex; } }

/* Brand hero */
.hero-brand { display: grid; place-items: center; aspect-ratio: 4 / 3; border-radius: 28px; background: var(--bg-soft); border: 1px solid var(--line); padding: 40px; }
.hero-brand img { width: 100%; max-width: 380px; height: auto; }
@media (max-width: 860px) { .hero-brand { aspect-ratio: auto; padding: 32px; } .hero-brand img { max-width: 260px; } }

/* App tiles on the BendyLabs home page */
.app-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (max-width: 700px) { .app-grid { grid-template-columns: 1fr; } }
.app-tile { display: flex; flex-direction: column; gap: 18px; text-decoration: none; color: var(--text); transition: transform .15s ease, border-color .15s ease; }
a.app-tile:hover { transform: translateY(-2px); border-color: var(--brand); }
a.app-tile:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }
.app-tile-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.app-tile .app-icon { width: 64px; height: 64px; border-radius: 16px; }
.app-tile h3 { font-size: 1.4rem; }
.app-tile .meta { font-size: 0.88rem; color: var(--muted); margin-top: 6px; }
.app-tile .tile-link { margin-top: auto; font-weight: 650; color: var(--brand); }
.app-tile-soon { border-style: dashed; box-shadow: none; background: transparent; }
@media (prefers-reduced-motion: reduce) { .app-tile { transition: none; } a.app-tile:hover { transform: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
