/* Wabeely website. Colours and type follow the app (vocbee-app/docs/design.md, "Görsel dil"). */

@font-face {
  font-family: "Baloo 2";
  src: url("../fonts/baloo2.woff2") format("woff2");
  font-weight: 600 800;
  font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("../fonts/nunito.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
}

:root {
  --bg: #12141c;
  --surface: #1c2030;
  --surface2: #262b3d;
  --line: #33394f;
  --nav-bg: #161925;
  --honey: #f5b82e;
  --on-honey: #2a1e00;
  --success: #34c3a9;
  --text: #f3efe4;
  --muted: #a7adbf;
  --disabled: #6e7489;

  --head: "Baloo 2", "Nunito", system-ui, sans-serif;
  --body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1120px;
  --gutter: 20px;
  --radius: 22px;
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img,
video,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--honey);
}

h1,
h2,
h3 {
  font-family: var(--head);
  font-weight: 800;
  line-height: 1.1;
  margin: 0;
  letter-spacing: -0.01em;
}

p {
  margin: 0;
}

:focus-visible {
  outline: 3px solid var(--honey);
  outline-offset: 3px;
  border-radius: 8px;
}

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  background: var(--honey);
  color: var(--on-honey);
  padding: 10px 16px;
  border-radius: 12px;
  font-weight: 800;
  text-decoration: none;
}
.skip:focus {
  top: 12px;
}

/* ---------- header ---------- */

.top {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(18, 20, 28, 0.82);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid rgba(51, 57, 79, 0.6);
}

.top-row {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font: 800 1.45rem/1 var(--head);
  margin-right: auto;
}
.brand .logo {
  width: 40px;
  height: 35px;
}
.brand span {
  padding-top: 4px;
}
.brand-sm {
  font-size: 1.2rem;
}
.brand-sm .logo {
  width: 32px;
  height: 28px;
}

.nav {
  display: none;
  gap: 4px;
}
.nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 8px 12px;
  border-radius: 10px;
}
.nav a:hover {
  color: var(--text);
  background: var(--surface);
}

.ico {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* language menu */
.lang {
  position: relative;
}
.lang summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 6px;
  height: 44px;
  padding: 0 10px 0 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  color: var(--text);
  font-weight: 800;
  font-size: 0.92rem;
  cursor: pointer;
  user-select: none;
}
.lang summary::-webkit-details-marker {
  display: none;
}
.lang summary .ico {
  width: 18px;
  height: 18px;
  color: var(--honey);
}
.lang .chev {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: var(--muted);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.2s;
}
.lang[open] .chev {
  transform: rotate(180deg);
}
.lang ul {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  margin: 0;
  padding: 6px;
  list-style: none;
  min-width: 190px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}
.lang li a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  min-height: 44px;
  border-radius: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
}
.lang li a b {
  width: 28px;
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.lang li a:hover {
  background: var(--surface2);
}
.lang li a[aria-current] {
  color: var(--honey);
}
.lang li a[aria-current] b {
  color: var(--honey);
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 40px 0 64px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(520px 420px at 78% 38%, rgba(245, 184, 46, 0.16), transparent 70%),
    radial-gradient(400px 300px at 8% 0%, rgba(52, 195, 169, 0.07), transparent 70%);
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='97' viewBox='0 0 56 97'%3E%3Cpath d='M28 1 54 16v31L28 62 2 47V16zM28 62v35' fill='none' stroke='%23F5B82E' stroke-width='1.5'/%3E%3C/svg%3E");
  background-size: 56px 97px;
  -webkit-mask-image: radial-gradient(70% 70% at 70% 40%, #000, transparent);
  mask-image: radial-gradient(70% 70% at 70% 40%, #000, transparent);
}

.hero-grid {
  position: relative;
  display: grid;
  gap: 44px;
  justify-items: center;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(28, 32, 48, 0.7);
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
}
.hex-dot {
  width: 14px;
  height: 16px;
  background: var(--honey);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}

.hero h1 {
  margin-top: 18px;
  font-size: clamp(2.5rem, 9vw, 3.9rem);
  line-height: 1.04;
  text-wrap: balance;
}
.hero h1 em {
  font-style: normal;
  color: var(--honey);
  display: block;
}

.lead {
  margin: 18px auto 0;
  max-width: 34em;
  color: var(--muted);
  font-size: 1.08rem;
}

.stores {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
}
.store {
  display: block;
  border-radius: 10px;
}
.store img {
  height: 50px;
  width: auto;
}
.store.is-soon {
  cursor: default;
}
.soon {
  margin-top: 12px;
  font-size: 0.88rem;
  color: var(--muted);
}

/* phone frame: screenshots are 1080 x 2424 */
.phone {
  position: relative;
  width: 100%;
  aspect-ratio: 1080 / 2424;
  padding: 3.2%;
  border-radius: 13% / 5.9%;
  background: linear-gradient(160deg, #2b3044, #0c0e14 60%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    0 30px 60px -20px rgba(0, 0, 0, 0.7);
}
.phone .screen {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10.5% / 4.8%;
  background: var(--bg);
}

.hero-phone {
  position: relative;
  width: min(72vw, 300px);
}
.phone-lg {
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.1),
    0 40px 90px -30px rgba(245, 184, 46, 0.35),
    0 30px 60px -20px rgba(0, 0, 0, 0.8);
}

/* the bee that flies around the phone */
.bee .wing {
  fill: #f3efe4;
  transform-box: fill-box;
  transform-origin: 50% 100%;
}
.flyer {
  position: absolute;
  z-index: 2;
  width: 64px;
  height: 64px;
  left: -14%;
  top: 6%;
  animation: fly 11s ease-in-out infinite;
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.45));
  cursor: pointer; /* a click sends it elsewhere around the phone (site.js) */
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.flyer .wing,
.contact-bee .wing {
  animation: flap 0.12s ease-in-out infinite alternate;
}
@keyframes flap {
  to {
    opacity: 0.55;
    ry: 7px;
  }
}
@keyframes fly {
  0%,
  100% {
    transform: translate(0, 0) rotate(-6deg);
  }
  25% {
    transform: translate(10px, -18px) rotate(4deg);
  }
  50% {
    transform: translate(-6px, 14px) rotate(-10deg);
  }
  75% {
    transform: translate(14px, 6px) rotate(2deg);
  }
}

/* ---------- sections ---------- */

.section {
  padding: 72px 0;
}
.section-alt {
  background: linear-gradient(180deg, var(--nav-bg), var(--bg));
  border-top: 1px solid rgba(51, 57, 79, 0.5);
}

.section-head {
  max-width: 40em;
  margin-bottom: 32px;
}
.section-head h2 {
  font-size: clamp(1.9rem, 6vw, 2.6rem);
}
.section-head p {
  margin-top: 10px;
  color: var(--muted);
}
.section-head-row {
  max-width: none;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}
.section-head-row > div {
  max-width: 40em;
}

/* features */
.features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}
.feature {
  position: relative;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.feature h3 {
  font-size: 1.3rem;
  margin: 16px 0 6px;
}
.feature p {
  color: var(--muted);
  font-size: 0.98rem;
}
.hex-ico {
  display: grid;
  place-items: center;
  width: 48px;
  height: 54px;
  background: var(--honey);
  color: var(--on-honey);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}
.hex-ico .ico {
  width: 24px;
  height: 24px;
  stroke-width: 2.2;
}

/* the hint ladder: one step per row, numbered and joined like the app's sheet */
.ladder {
  list-style: none;
  counter-reset: step;
  margin: 16px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}
.ladder li {
  counter-increment: step;
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 30px;
  padding: 3px 0;
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.3;
}
.ladder li::before {
  content: counter(step);
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--surface2);
  border: 1px solid var(--line);
  color: var(--honey);
  font: 800 0.74rem/1 var(--head);
}
.ladder li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 11px;
  top: calc(50% + 11px);
  height: calc(100% - 22px);
  width: 1px;
  background: var(--line);
}
.ladder li:last-child {
  color: var(--honey);
}
.ladder li:last-child::before {
  background: var(--honey);
  border-color: var(--honey);
  color: var(--on-honey);
}

/* screenshots */
.scroller-nav {
  display: none;
  gap: 8px;
}
.round-btn {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}
.round-btn svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.round-btn:hover {
  border-color: var(--honey);
  color: var(--honey);
}
.round-btn:disabled {
  opacity: 0.35;
  cursor: default;
  border-color: var(--line);
  color: var(--text);
}

.shots {
  list-style: none;
  margin: 0;
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 4px max(var(--gutter), calc((100vw - var(--wrap)) / 2)) 12px;
  scroll-padding: 0 max(var(--gutter), calc((100vw - var(--wrap)) / 2));
}
.shots.can-drag {
  cursor: grab;
}
.shots.dragging {
  cursor: grabbing;
  scroll-snap-type: none;
  scroll-behavior: auto;
  user-select: none;
}
.shots img {
  -webkit-user-drag: none;
  user-select: none;
}
.shots::-webkit-scrollbar {
  display: none;
}
.shots li {
  flex: 0 0 auto;
  width: min(62vw, 236px);
  scroll-snap-align: start;
}
.shots figure {
  margin: 0;
}
.shots figcaption {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.4;
}
.shots .num {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  margin-top: -1px;
  border-radius: 50%;
  background: var(--honey);
  color: var(--on-honey);
  font: 800 0.8rem/1 var(--head);
}

/* contact */
.contact {
  position: relative;
  text-align: center;
  padding: 44px 22px;
  border-radius: 28px;
  background:
    radial-gradient(360px 200px at 50% 0%, rgba(245, 184, 46, 0.14), transparent 70%),
    var(--surface);
  border: 1px solid var(--line);
}
.contact-bee {
  width: 56px;
  height: 56px;
  margin: 0 auto 10px;
}
.contact h2 {
  font-size: clamp(1.8rem, 6vw, 2.4rem);
}
.contact p {
  max-width: 30em;
  margin: 10px auto 24px;
  color: var(--muted);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 16px;
  background: var(--honey);
  color: var(--on-honey);
  font-weight: 800;
  font-size: 1.05rem;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 10px 24px -10px rgba(245, 184, 46, 0.7);
  word-break: break-all;
}
.btn svg {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.btn:hover {
  transform: translateY(-2px);
}

/* social accounts, below the contact card */
.follow {
  margin-top: 36px;
  text-align: center;
}
.follow h3 {
  font-size: 1.15rem;
  color: var(--muted);
  font-weight: 700;
  margin-bottom: 16px;
}
.socials {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  max-width: 420px;
  margin-inline: auto;
}
.socials a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 14px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  transition: border-color 0.15s, color 0.15s;
}
.socials svg {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  fill: var(--honey);
}
.socials span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.socials a:hover {
  border-color: var(--honey);
  color: var(--honey);
}
.foot-social {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 4px;
}
.foot-social a {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  color: var(--muted);
}
.foot-social svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}
.foot-social a:hover {
  color: var(--honey);
  background: var(--surface);
}

/* footer */
.foot {
  background: var(--nav-bg);
  border-top: 1px solid rgba(51, 57, 79, 0.6);
  padding: 32px 0 40px;
  color: var(--muted);
  font-size: 0.9rem;
}
.foot-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  margin-bottom: 18px;
}
.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}
.foot-links a {
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
}
.foot-links a:hover {
  color: var(--honey);
}
.fine {
  font-size: 0.82rem;
}
.legal {
  margin-top: 6px;
  color: var(--disabled);
  font-size: 0.75rem;
  line-height: 1.5;
}

/* ---------- privacy, terms and imprint pages ---------- */

.doc {
  padding: 32px 0 72px;
}
.doc-wrap {
  max-width: calc(760px + 2 * var(--gutter));
}
.back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  color: var(--muted);
  font-weight: 700;
  text-decoration: none;
}
.back svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.back:hover {
  color: var(--honey);
}
.doc h1 {
  margin-top: 12px;
  font-size: clamp(2.1rem, 7vw, 3rem);
}
.doc-date {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.92rem;
}
.doc-summary {
  margin: 28px 0 12px;
  padding: 22px 22px 18px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
}
.doc-summary h2 {
  font-size: 1.25rem;
  margin: 0 0 6px;
}
.doc-summary li::marker {
  color: var(--honey);
}
.doc section {
  margin-top: 32px;
}
.doc section h2 {
  font-size: 1.45rem;
  margin-bottom: 8px;
}
.doc p,
.doc li {
  color: #d9d6cc;
}
.doc p + p,
.doc p + ul,
.doc ul + p {
  margin-top: 12px;
}
.doc ul {
  padding-left: 1.25em;
  margin: 8px 0 0;
}
.doc li + li {
  margin-top: 6px;
}
.doc strong {
  color: var(--text);
}

/* ---------- small phones ---------- */

@media (max-width: 420px) {
  .eyebrow {
    gap: 7px;
    padding: 5px 11px 5px 8px;
    font-size: 0.74rem;
    white-space: nowrap;
  }
  .hex-dot {
    width: 11px;
    height: 13px;
  }
  .stores {
    gap: 10px;
  }
  .store img {
    height: 44px;
  }
}

/* ---------- larger screens ---------- */

@media (min-width: 640px) {
  :root {
    --gutter: 32px;
  }
  .features {
    grid-template-columns: repeat(2, 1fr);
  }
  .feature-wide {
    grid-column: span 2;
  }
  .scroller-nav {
    display: flex;
  }
  .socials {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    max-width: 760px;
  }
  .socials a {
    justify-content: center;
  }
}

@media (min-width: 900px) {
  .nav {
    display: flex;
    margin-right: 8px;
  }
  .hero {
    padding: 72px 0 96px;
  }
  .hero-grid {
    grid-template-columns: 1.25fr 0.75fr;
    align-items: center;
    justify-items: start;
    text-align: left;
    gap: 56px;
  }
  .lead {
    margin-left: 0;
  }
  .stores {
    justify-content: flex-start;
  }
  .hero-phone {
    width: 320px;
    justify-self: center;
  }
  .section {
    padding: 96px 0;
  }
  .features {
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
  }
  .feature {
    padding: 26px;
  }
  .feature-wide {
    grid-column: span 1;
    grid-row: span 1;
  }
  .contact {
    padding: 56px 32px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .flyer,
  .flyer .wing,
  .contact-bee .wing {
    animation: none;
  }
  .btn {
    transition: none;
  }
}
