/* Beeway theme, layered on top of ../assets/style.css */
.bw {
  --bee-yellow: #ffcf33;
  --bee-amber: #ffae00;
  --bee-navy: #1f2133;
  --bee-gradient: linear-gradient(160deg, var(--bee-yellow), var(--bee-amber));
  --bee-label: #b57800;

  --bg: #fffaf0;
  --surface: #ffffff;
  --text: #1f2133;
  --muted: #646778;
  --border: #f0e6cf;
  --accent: #1f2133;
  --accent-text: #ffffff;
  --brand: var(--bee-amber);
}

@media (prefers-color-scheme: dark) {
  .bw {
    --bg: #13141e;
    --surface: #1c1e2c;
    --text: #f4f4f6;
    --muted: #a3a5b5;
    --border: #2a2c3d;
    --accent: #ffcf33;
    --accent-text: #1f2133;
    --bee-label: var(--bee-yellow);
  }
}

.bw .brand {
  gap: 10px;
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.02em;
  color: inherit;
  text-decoration: none;
}

.bw .brand img { height: 36px; width: 36px; border-radius: 10px; }

/* Hero */
.bw-hero {
  position: relative;
  overflow: hidden;
  background: var(--bee-gradient);
  color: var(--bee-navy);
  border-radius: 0 0 44px 44px;
}

.bw-hero .lang-toggle { background: rgba(255, 255, 255, 0.35); border-color: rgba(31, 33, 51, 0.15); }
.bw-hero .lang-toggle button { color: rgba(31, 33, 51, 0.7); }
.bw-hero .lang-toggle button[aria-pressed="true"] { background: var(--bee-navy); color: #fff; }

/* Honeycomb texture */
.bw-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.18;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='98' viewBox='0 0 56 98'%3E%3Cpath d='M28 66L0 50V18L28 2l28 16v32L28 66zm0 32V66m0-64V-30' fill='none' stroke='%231f2133' stroke-width='1.2'/%3E%3C/svg%3E");
  background-size: 56px 98px;
  -webkit-mask-image: linear-gradient(120deg, transparent 30%, #000 85%);
  mask-image: linear-gradient(120deg, transparent 30%, #000 85%);
}

.bw-hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  padding: 24px 0 88px;
}

.bw-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(31, 33, 51, 0.92);
  color: var(--bee-yellow);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 7px 14px;
  border-radius: 999px;
  margin-bottom: 22px;
}

.bw-badge::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--bee-yellow);
  animation: bw-pulse 1.8s ease-in-out infinite;
}

.bw-hero h1 {
  font-size: clamp(40px, 6.4vw, 66px);
  line-height: 1.02;
  letter-spacing: -0.04em;
  margin: 0 0 20px;
}

.bw-hero h1 .hl {
  background: var(--bee-navy);
  color: var(--bee-yellow);
  padding: 0 0.18em;
  border-radius: 0.18em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.bw-hero .lead {
  font-size: clamp(17px, 2.2vw, 20px);
  margin: 0 0 30px;
  max-width: 520px;
  color: rgba(31, 33, 51, 0.82);
}

.bw-stores { display: flex; flex-wrap: wrap; gap: 12px; }

.bw-store {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--bee-navy);
  color: #fff;
  padding: 10px 18px 10px 14px;
  border-radius: 14px;
  line-height: 1.15;
  text-decoration: none;
}

.bw-store svg { width: 24px; height: 24px; fill: currentColor; flex: none; }
.bw-store small { display: block; font-size: 11px; opacity: 0.7; }
.bw-store strong { font-size: 16px; letter-spacing: -0.01em; }

/* Devices */
.bw-device {
  position: relative;
  background: #15161f;
  padding: 9px;
  box-shadow: 0 40px 80px -30px rgba(31, 33, 51, 0.55), inset 0 0 0 1.5px rgba(255, 255, 255, 0.12);
}

.bw-device img { display: block; width: 100%; height: auto; }

.bw-device.iphone { border-radius: 44px; }
.bw-device.iphone img { border-radius: 36px; }

.bw-device.android { border-radius: 30px; }
.bw-device.android img { border-radius: 22px; }
.bw-device.android::after {
  content: "";
  position: absolute;
  top: 18px;
  left: 50%;
  width: 11px;
  height: 11px;
  margin-left: -5.5px;
  border-radius: 50%;
  background: #0a0a10;
  box-shadow: inset 0 0 0 2px #1d1e29;
}

.bw-duo {
  position: relative;
  justify-self: center;
  width: min(100%, 460px);
  height: 600px;
}

.bw-duo .bw-device { position: absolute; width: 262px; }
.bw-duo .android { left: 0; top: 70px; transform: rotate(-7deg); animation: bw-float 8s ease-in-out infinite; }
.bw-duo .iphone { right: 0; top: 0; transform: rotate(5deg); animation: bw-float 7s -3s ease-in-out infinite; z-index: 1; }

.bw-chip {
  position: absolute;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  color: var(--bee-navy);
  border-radius: 16px;
  padding: 10px 14px;
  font-size: 13px;
  line-height: 1.25;
  box-shadow: 0 18px 40px -16px rgba(31, 33, 51, 0.45);
  animation: bw-float 6s ease-in-out infinite;
  white-space: nowrap;
}

.bw-chip b { display: block; font-size: 15px; }
.bw-chip .dot {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--bee-gradient);
  display: grid;
  place-items: center;
  flex: none;
}
.bw-chip .dot svg { width: 18px; height: 18px; stroke: var(--bee-navy); fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.bw-chip.alert .dot { background: #ffe1dc; }
.bw-chip.alert .dot svg { stroke: #d33a25; }
.bw-chip.alert b { color: #d33a25; }
.bw-chip.one { top: 22px; left: -36px; animation-delay: -2s; }
.bw-chip.two { bottom: 40px; right: -24px; animation-delay: -4s; }

/* Sections */
.bw-section { padding: 96px 0 0; }

.bw-eyebrow {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  color: var(--bee-label);
  margin: 0 0 12px;
}

.bw-section h2,
.bw-cta h2 {
  font-size: clamp(30px, 4.6vw, 46px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0 0 14px;
  max-width: 680px;
}

.bw-section .lead { font-size: 18px; color: var(--muted); margin: 0 0 32px; max-width: 600px; }

/* Feature carousel */
.bw-carousel {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 34px;
  overflow: hidden;
}

.bw-tabs {
  display: flex;
  gap: 8px;
  padding: 20px 24px 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.bw-tabs::-webkit-scrollbar { display: none; }

.bw-tabs button {
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  padding: 8px 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: background .25s ease, color .25s ease, border-color .25s ease;
}

.bw-tabs button[aria-selected="true"] {
  background: var(--bee-navy);
  border-color: var(--bee-navy);
  color: var(--bee-yellow);
}

@media (prefers-color-scheme: dark) {
  .bw-tabs button[aria-selected="true"] { background: var(--bee-yellow); border-color: var(--bee-yellow); color: var(--bee-navy); }
}

.bw-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.bw-track::-webkit-scrollbar { display: none; }

.bw-slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 32px;
  align-items: center;
  padding: 0 56px;
  height: 560px;
}

.bw-slide .count {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--bee-label);
  margin: 0 0 14px;
}

.bw-slide h3 {
  font-size: clamp(26px, 3.6vw, 38px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 0 0 14px;
}

.bw-slide p { color: var(--muted); font-size: 17px; margin: 0 0 18px; max-width: 460px; }

.bw-slide ul { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 10px; }
.bw-slide li { display: flex; gap: 10px; align-items: flex-start; font-size: 15.5px; }
.bw-slide li::before {
  content: "";
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 3px;
  border-radius: 50%;
  background: var(--bee-gradient) ;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='12'/%3E%3C/svg%3E");
  box-shadow: inset 0 0 0 5px var(--surface);
}

.bw-platform {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: 999px;
}

.bw-slide .bw-device {
  width: 270px;
  justify-self: center;
  align-self: start;
  margin-top: 36px;
  box-shadow: 0 30px 60px -28px rgba(31, 33, 51, 0.5);
}

.bw-slide { overflow: hidden; }

.bw-carousel-nav {
  position: absolute;
  left: 56px;
  bottom: 32px;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 2;
}

.bw-carousel-nav button {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 0;
  background: var(--bee-navy);
  color: var(--bee-yellow);
  font-size: 18px;
  cursor: pointer;
  box-shadow: 0 10px 24px -12px rgba(31, 33, 51, 0.6);
}

.bw-progress {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: 100%;
  background: var(--bee-gradient);
  transform-origin: left;
  transform: scaleX(0);
}

.bw-progress.run { animation: bw-progress var(--dur, 6s) linear forwards; }

/* Steps along a dashed route */
.bw-steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 36px;
}

.bw-steps::before {
  content: "";
  position: absolute;
  top: 23px;
  left: 24px;
  right: 24px;
  border-top: 2px dashed var(--bee-amber);
  opacity: 0.6;
}

.bw-step { position: relative; }

.bw-step .num {
  width: 48px;
  height: 48px;
  border-radius: 50% 50% 50% 4px;
  transform: rotate(-45deg);
  background: var(--bee-navy);
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  box-shadow: 0 0 0 6px var(--bg);
}

.bw-step .num span { transform: rotate(45deg); color: var(--bee-yellow); font-weight: 800; }
.bw-step h3 { margin: 0 0 6px; font-size: 18px; }
.bw-step p { margin: 0; color: var(--muted); font-size: 15.5px; }

/* Stats strip */
.bw-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 26px;
  overflow: hidden;
}

.bw-stat { padding: 28px; text-align: center; }
.bw-stat + .bw-stat { border-left: 1px solid var(--border); }
.bw-stat b { display: block; font-size: 30px; letter-spacing: -0.03em; }
.bw-stat span { color: var(--muted); font-size: 14.5px; }

/* Privacy block */
.bw-privacy {
  background: var(--bee-navy);
  color: #fff;
  border-radius: 34px;
  padding: clamp(32px, 6vw, 64px);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 36px;
  align-items: center;
}

.bw-shield {
  width: 92px;
  height: 92px;
  border-radius: 28px;
  background: rgba(255, 207, 51, 0.14);
  display: grid;
  place-items: center;
}

.bw-shield svg { width: 46px; height: 46px; stroke: var(--bee-yellow); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.bw-privacy h2 { color: #fff; margin-bottom: 10px; }
.bw-privacy p { color: rgba(255, 255, 255, 0.75); margin: 0 0 24px; font-size: 17px; max-width: 620px; }
.bw-privacy .button { background: var(--bee-yellow); color: var(--bee-navy); }

@media (prefers-color-scheme: dark) {
  .bw-privacy { background: var(--surface); border: 1px solid var(--border); }
}

/* Final CTA */
.bw-cta { text-align: center; padding: 104px 0 24px; }

.bw-cta img {
  width: 104px;
  height: 104px;
  border-radius: 24%;
  margin: 0 auto 26px;
  box-shadow: 0 18px 40px -10px rgba(255, 174, 0, 0.55);
  animation: bw-float 6s ease-in-out infinite;
}

.bw-cta h2 { margin: 0 auto 12px; max-width: 640px; }
.bw-cta p { color: var(--muted); margin: 0 0 28px; font-size: 18px; }
.bw-cta .bw-stores { justify-content: center; }

.bw .site-footer a:hover { color: var(--bee-label); }

/* Policy page */
.bw .policy .summary {
  background: var(--bee-gradient);
  color: var(--bee-navy);
  border: 0;
}

/* Keyframes */
@keyframes bw-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
@keyframes bw-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }
@keyframes bw-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }

@media (max-width: 900px) {
  .bw-hero-inner { grid-template-columns: 1fr; padding: 16px 0 72px; gap: 48px; }
  .bw-duo { height: 520px; width: min(100%, 420px); }
  .bw-duo .bw-device { width: 228px; }
  .bw-slide { grid-template-columns: 1fr; padding: 32px 28px 0; height: auto; gap: 28px; align-items: start; }
  .bw-slide .bw-device { width: 240px; margin: 0 0 -200px; }
  .bw-carousel-nav { bottom: auto; top: 76px; }
  .bw-carousel { padding-bottom: 0; }
}

@media (max-width: 640px) {
  .bw-steps { grid-template-columns: 1fr; }
  .bw-steps::before { top: 24px; bottom: 24px; left: 23px; right: auto; border-top: 0; border-left: 2px dashed var(--bee-amber); }
  .bw-stats { grid-template-columns: 1fr; }
  .bw-stat + .bw-stat { border-left: 0; border-top: 1px solid var(--border); }
  .bw-privacy { grid-template-columns: 1fr; }
  .bw-duo { height: 440px; }
  .bw-duo .bw-device { width: 190px; }
  .bw-chip.one { left: -6px; top: 0; }
  .bw-chip.two { right: -6px; bottom: 10px; }
  .bw-carousel-nav { display: none; }
  .bw-slide { padding: 28px 22px 0; }
}

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

/* Platform switch: iPhone / Android screens */
.bw-features-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}

.bw-features-head h2 { margin-bottom: 0; }

.bw-platform-switch {
  display: inline-flex;
  padding: 4px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
}

.bw-platform-switch button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 9px 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: background .25s ease, color .25s ease;
}

.bw-platform-switch svg { width: 16px; height: 16px; fill: currentColor; }

.bw-platform-switch button[aria-pressed="true"] { background: var(--bee-navy); color: var(--bee-yellow); }

@media (prefers-color-scheme: dark) {
  .bw-platform-switch button[aria-pressed="true"] { background: var(--bee-yellow); color: var(--bee-navy); }
}

.bw-shot { border-radius: 44px; transition: border-radius .35s ease; }
.bw-shot img { border-radius: 36px; animation: bw-swap .45s ease; }
.bw-shot::after {
  content: "";
  position: absolute;
  top: 19px;
  left: 50%;
  width: 11px;
  height: 11px;
  margin-left: -5.5px;
  border-radius: 50%;
  background: #0a0a10;
  opacity: 0;
  transition: opacity .3s ease;
}

html[data-platform="ios"] .bw-shot img.android,
html[data-platform="android"] .bw-shot img.ios { display: none; }

html[data-platform="android"] .bw-shot { border-radius: 30px; }
html[data-platform="android"] .bw-shot img { border-radius: 22px; }
html[data-platform="android"] .bw-shot::after { opacity: 1; }

@keyframes bw-swap { from { opacity: 0; transform: scale(.985); } to { opacity: 1; transform: none; } }

/* Dynamic Island on iPhone frames (the simulator screenshots don't include it) */
.bw-device.iphone::after,
html[data-platform="ios"] .bw-shot::after {
  content: "";
  position: absolute;
  z-index: 1;
  top: calc(9px + 2.8%);
  left: 50%;
  width: 31%;
  height: auto;
  aspect-ratio: 126 / 37;
  margin-left: 0;
  transform: translateX(-50%);
  border-radius: 999px;
  background: #000;
  opacity: 1;
}

.bw-device.iphone::after { top: calc(9px + 0.6%); }
html[data-platform="ios"] .bw-shot::after { top: calc(9px + 0.6%); }

/* Store buttons: Google Play ready, App Store still in development */
.bw-store.soon {
  position: relative;
  overflow: hidden;
  background: rgba(31, 33, 51, 0.38);
  color: rgba(255, 255, 255, 0.82);
  box-shadow: inset 0 0 0 1.5px rgba(31, 33, 51, 0.25);
  padding-right: 14px;
}

.bw-store.soon svg,
.bw-store.soon > span { opacity: 0.7; }

.bw-store.soon::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, 0.28) 50%, transparent 70%);
  transform: translateX(-100%);
  animation: bw-shimmer 3.2s ease-in-out infinite;
  pointer-events: none;
}

.bw-wip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 4px;
  font-style: normal;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--bee-yellow);
  background: rgba(31, 33, 51, 0.55);
  padding: 4px 9px;
  border-radius: 999px;
  white-space: nowrap;
}

.bw-wip::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--bee-yellow);
  animation: bw-pulse 1.6s ease-in-out infinite;
}

.bw-cta .bw-store.soon { background: rgba(31, 33, 51, 0.12); color: var(--muted); box-shadow: inset 0 0 0 1.5px var(--border); }
.bw-cta .bw-store.soon::after { background: linear-gradient(100deg, transparent 30%, rgba(255, 207, 51, 0.25) 50%, transparent 70%); }
.bw-cta .bw-wip { background: var(--bee-navy); }

@media (prefers-color-scheme: dark) {
  .bw-cta .bw-store.soon { background: rgba(255, 255, 255, 0.06); }
}

@keyframes bw-shimmer {
  0%, 35% { transform: translateX(-100%); }
  75%, 100% { transform: translateX(100%); }
}
