/*
 * Bahariom public site — cumulative Dana, studio visuals and site quality (V131)
 * One source of truth for layout, light theme, dark theme and responsiveness.
 * No legacy stage CSS is imported or embedded in this file.
 */

@font-face {
  font-family: "Dana";
  src: url("../fonts/dana-light.ttf") format("truetype");
  font-style: normal;
  font-weight: 300;
  font-display: swap;
}

@font-face {
  font-family: "Dana";
  src: url("../fonts/dana-regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Dana";
  src: url("../fonts/dana-medium.ttf") format("truetype");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Dana";
  src: url("../fonts/dana-demibold.ttf") format("truetype");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "Dana";
  src: url("../fonts/dana-bold.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  --green: #58cc02;
  --green-hover: #61df00;
  --green-deep: #46a302;
  --green-soft: #d7ffb8;
  --green-soft-2: #efffe4;
  --blue: #1cb0f6;
  --blue-deep: #168fc8;
  --blue-soft: #ddf4ff;
  --purple: #ce82ff;
  --yellow: #ffc800;
  --coral: #ff6b6b;
  --page: #ffffff;
  --surface: #ffffff;
  --surface-soft: #f7f7f7;
  --surface-raised: #ffffff;
  --ink: #3c3c3c;
  --ink-soft: #5f5f5f;
  --muted: #777777;
  --line: #e5e5e5;
  --line-strong: #d3d3d3;
  --header-bg: rgba(255, 255, 255, 0.96);
  --footer-bg: #123524;
  --footer-ink: #f2fff5;
  --footer-muted: #bde5c8;
  --hero-overlay: linear-gradient(180deg, rgba(7, 34, 20, 0.14), rgba(3, 25, 15, 0.52));
  --shadow-sm: 0 7px 22px rgba(34, 65, 48, 0.08);
  --shadow-md: 0 16px 42px rgba(34, 65, 48, 0.1);
  --shadow-float: 0 18px 50px rgba(34, 65, 48, 0.12);
  --radius-sm: 18px;
  --radius-md: 26px;
  --radius-lg: 36px;
  --header-height: 78px;
  --shell: 1180px;
  --section-space: clamp(4rem, 7vw, 6rem);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --green: #58cc02;
  --green-hover: #6ee817;
  --green-deep: #3f9108;
  --green-soft: #28481d;
  --green-soft-2: #1c3022;
  --blue: #32b8f5;
  --blue-deep: #168fc8;
  --blue-soft: #173b4b;
  --purple: #d99bff;
  --yellow: #ffd43b;
  --coral: #ff8585;
  --page: #131d18;
  --surface: #1b2821;
  --surface-soft: #17231c;
  --surface-raised: #223128;
  --ink: #f3f7f4;
  --ink-soft: #d7e0da;
  --muted: #aebbb3;
  --line: #314238;
  --line-strong: #455a4d;
  --header-bg: rgba(19, 29, 24, 0.96);
  --footer-bg: #0a2116;
  --footer-ink: #f2fff5;
  --footer-muted: #a8d4b5;
  --hero-overlay: linear-gradient(180deg, rgba(3, 18, 11, 0.2), rgba(2, 15, 9, 0.62));
  --shadow-sm: 0 8px 24px rgba(0, 0, 0, 0.22);
  --shadow-md: 0 18px 46px rgba(0, 0, 0, 0.25);
  --shadow-float: 0 20px 54px rgba(0, 0, 0, 0.3);
}

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

html {
  min-width: 320px;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 1.25rem);
  background: var(--page);
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background: var(--page);
  color: var(--ink);
  font-family: "Dana", Tahoma, Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
  font-synthesis: none;
  line-height: 1.85;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  transition: background-color 180ms ease, color 180ms ease;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

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

figure,
h1,
h2,
p,
blockquote {
  margin: 0;
}

::selection {
  background: var(--green-soft);
  color: var(--ink);
}

:focus-visible {
  outline: 4px solid color-mix(in srgb, var(--blue) 65%, transparent);
  outline-offset: 4px;
}

.shell {
  width: min(calc(100% - 40px), var(--shell));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: fixed;
  z-index: 50;
  top: 0;
  width: 100%;
  min-height: var(--header-height);
  background: var(--header-bg);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  transition: min-height 180ms ease, background-color 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

body:not(.home-page) main {
  padding-top: var(--header-height);
}

.home-page .site-header:not(.is-scrolled) {
  background: linear-gradient(180deg, rgba(4, 24, 14, 0.42), transparent);
  border-bottom-color: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.home-page .site-header:not(.is-scrolled) .brand {
  color: #fff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.34);
}

.home-page .site-header:not(.is-scrolled) .brand img {
  filter: drop-shadow(0 3px 9px rgba(0, 0, 0, 0.24));
}

.home-page .site-header:not(.is-scrolled) .theme-toggle,
:root[data-theme="dark"] .home-page .site-header:not(.is-scrolled) .theme-toggle {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.13);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.site-header.is-scrolled {
  min-height: 66px;
  border-bottom-color: var(--line-strong);
  box-shadow: 0 8px 24px rgba(31, 60, 44, 0.09);
}

.header-inner {
  min-height: inherit;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  width: max-content;
  color: var(--green-deep);
  font-weight: 900;
  line-height: 1;
}

.site-header .brand img {
  width: 58px;
  height: 58px;
  object-fit: contain;
  transition: width 180ms ease, height 180ms ease, transform 180ms ease;
}

.site-header.is-scrolled .brand img {
  width: 50px;
  height: 50px;
}

.site-header .brand:hover img {
  transform: translateY(-2px);
}

.brand-wordmark {
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  letter-spacing: 0.02em;
}

.header-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.theme-toggle {
  width: 46px;
  height: 46px;
  padding: 0;
  display: grid;
  place-items: center;
  cursor: pointer;
  color: var(--blue-deep);
  background: var(--surface-raised);
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
  transition: transform 140ms ease, border-color 140ms ease, background-color 180ms ease;
}

.theme-toggle:hover {
  border-color: var(--blue);
  transform: translateY(-2px);
}

.theme-toggle:active {
  box-shadow: none;
  transform: translateY(2px);
}

.theme-toggle svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.theme-toggle .b87-moon {
  display: none;
}

:root[data-theme="dark"] .theme-toggle {
  color: var(--yellow);
}

:root[data-theme="dark"] .theme-toggle .b87-sun {
  display: none;
}

:root[data-theme="dark"] .theme-toggle .b87-moon {
  display: block;
}

/* Hero */
.b81-hero {
  position: relative;
  isolation: isolate;
  min-height: clamp(580px, 100svh, 760px);
  overflow: hidden;
  display: grid;
  place-items: center;
  padding: clamp(6rem, 12vw, 8.5rem) 20px clamp(4.5rem, 9vw, 6.5rem);
  border-bottom: 0;
  background: #183b22 url("../images/hero-day-poster-v127.webp") center / cover no-repeat;
}

.b81-hero::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  background: var(--hero-overlay);
}

.b81-hero-video {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.b81-hero-copy {
  width: min(100%, 720px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  color: #fff;
  text-align: center;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.46);
}

.b81-hero-copy h1,
.b81-hero-copy p {
  flex-basis: 100%;
}

.b81-hero-copy h1 {
  line-height: 1.3;
}

.b81-title-primary {
  display: inline-block;
  color: #fff;
  font-size: clamp(2.2rem, 5.2vw, 4rem);
  font-weight: 900;
  letter-spacing: -0.035em;
}

.b81-hero-copy p {
  margin-bottom: 0.55rem;
  color: #fff;
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  font-weight: 700;
}

.b81-primary,
.b81-secondary {
  min-width: 210px;
  min-height: 54px;
  padding: 0.75rem 1.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  border: 1px solid transparent;
  border-radius: 20px;
  font-size: 0.95rem;
  font-weight: 900;
  line-height: 1.25;
  text-shadow: none;
  backdrop-filter: blur(10px) saturate(135%);
  -webkit-backdrop-filter: blur(10px) saturate(135%);
  transition: transform 130ms ease, box-shadow 130ms ease, background-color 150ms ease;
}

.b81-primary {
  color: #fff;
  background: rgba(88, 204, 2, 0.78);
  border-color: rgba(188, 255, 139, 0.72);
  box-shadow: 0 10px 30px rgba(18, 86, 10, 0.28);
}

.b81-primary:hover {
  background: rgba(97, 223, 0, 0.9);
  transform: translateY(-2px);
}

.b81-secondary {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.64);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.14);
}

.b81-secondary:hover {
  background: rgba(255, 255, 255, 0.27);
  transform: translateY(-2px);
}

.b81-primary:active,
.b81-secondary:active {
  box-shadow: none;
  transform: translateY(2px);
}

/* Shared headings */
.b81-section {
  padding-block: var(--section-space);
}

.b81-heading {
  max-width: 760px;
  margin: 0 auto clamp(2.2rem, 5vw, 3.6rem);
  text-align: center;
}

.b81-heading h2,
.b81-copy h2,
.b81-mini h2,
.b81-download h2 {
  color: var(--ink);
  font-weight: 900;
  line-height: 1.45;
  letter-spacing: -0.025em;
}

.b81-heading h2 {
  font-size: clamp(1.7rem, 3.5vw, 2.55rem);
}

.b81-heading p {
  margin-top: 0.55rem;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 600;
}

/* Seven learning formats */
.b81-content-strip {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.85rem;
}

.b81-content-strip article {
  position: relative;
  min-width: 0;
  padding: 0.55rem 0.55rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--ink);
  background: var(--surface-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: transform 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}

.b81-content-strip article:hover {
  z-index: 1;
  border-color: var(--green);
  box-shadow: 0 16px 36px color-mix(in srgb, var(--green-deep) 16%, transparent);
  transform: translateY(-4px);
}

.b81-content-thumb {
  position: relative;
  width: 100%;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border-radius: 20px;
  background: var(--surface-soft);
}

.b81-content-thumb::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, transparent 42%, rgba(0, 0, 0, 0.34));
}

.b81-content-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 350ms ease;
}

.b81-content-strip article:hover img {
  transform: scale(1.045);
}

.b81-content-thumb svg {
  position: absolute;
  z-index: 2;
  inset: 50% auto auto 50%;
  width: 38px;
  height: 38px;
  padding: 9px;
  color: #fff;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
  border-radius: 50%;
  background: rgba(15, 69, 42, 0.78);
  transform: translate(-50%, -50%);
}

.b81-content-thumb svg path:first-child:last-child {
  fill: currentColor;
  stroke: currentColor;
}

.b81-content-strip article > i {
  position: relative;
  z-index: 3;
  width: 30px;
  height: 30px;
  margin: -15px 0 0.35rem;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--green-deep);
  border: 3px solid var(--surface-raised);
  border-radius: 50%;
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 800;
}

.b81-content-strip article > strong {
  min-height: 2.75rem;
  display: grid;
  place-items: center;
  font-size: clamp(0.73rem, 1vw, 0.9rem);
  line-height: 1.45;
}

/* Alternating feature sections */
.b81-feature {
  padding-block: var(--section-space);
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 5.5rem);
}

.b81-planner-wrap {
  width: 100%;
  background: var(--blue-soft);
  border-block: 1px solid color-mix(in srgb, var(--blue) 24%, var(--line));
}

.b81-planner {
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
}

.b81-ai-visual {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1200 / 591;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.b81-ai-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease;
}

.b81-ai-visual:hover img {
  transform: scale(1.025);
}

.b81-neural {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  padding: 0.65rem 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 99px;
  background: rgba(9, 39, 25, 0.72);
  backdrop-filter: blur(8px);
}

.b81-neural i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green-hover);
  box-shadow: 0 0 0 4px rgba(88, 204, 2, 0.15);
  animation: neural-pulse 1.6s ease-in-out infinite alternate;
}

.b81-neural i:nth-child(2) { animation-delay: 160ms; }
.b81-neural i:nth-child(3) { animation-delay: 320ms; }
.b81-neural i:nth-child(4) { animation-delay: 480ms; }
.b81-neural i:nth-child(5) { animation-delay: 640ms; }

@keyframes neural-pulse {
  to { opacity: 0.42; transform: translateY(-3px); }
}

.b81-copy {
  max-width: 520px;
}

.b81-name,
.b81-mini span,
.b81-download > div:first-child > span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0.25rem 0.85rem;
  color: var(--green-deep);
  background: var(--green-soft);
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 900;
}

.b81-copy h2 {
  margin-top: 1rem;
  font-size: clamp(1.9rem, 3.7vw, 2.85rem);
}

.b81-copy p {
  margin-top: 1.15rem;
  color: var(--ink-soft);
  font-size: clamp(1rem, 1.7vw, 1.14rem);
  font-weight: 500;
}

/* Community and programming cards */
.b81-mini-grid {
  padding-block: var(--section-space);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.2rem, 3vw, 2rem);
}

.b81-mini {
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr;
  background: var(--surface-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: transform 160ms ease, border-color 160ms ease;
}

.b81-mini:hover {
  border-color: var(--green);
  transform: translateY(-4px);
}

.b81-mini-image {
  overflow: hidden;
  aspect-ratio: 1200 / 592;
  background: var(--surface-soft);
}

.b81-mini-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 450ms ease;
}

.b81-mini:hover img {
  transform: scale(1.025);
}

.b81-mini > div:last-child {
  padding: clamp(1.3rem, 3vw, 2rem);
}

.b81-mini span {
  min-height: 30px;
  padding-inline: 0.7rem;
  color: var(--blue-deep);
  background: var(--blue-soft);
  font-size: 0.76rem;
}

.b81-mini h2 {
  margin-top: 0.8rem;
  font-size: clamp(1.45rem, 2.8vw, 2rem);
}

.b81-mini p {
  margin-top: 0.55rem;
  color: var(--muted);
  font-weight: 500;
}

/* Download */
.b81-download {
  margin-bottom: var(--section-space);
  padding: clamp(1.8rem, 4vw, 2.7rem);
  display: grid;
  grid-template-columns: minmax(250px, 0.78fr) minmax(0, 1.22fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
  color: #14350c;
  background: linear-gradient(135deg, #d7ffb8, #b9f383);
  border: 1px solid #91d65c;
  border-radius: var(--radius-lg);
  box-shadow: 0 18px 44px rgba(77, 154, 32, 0.16);
}

:root[data-theme="dark"] .b81-download {
  color: var(--ink);
  background: linear-gradient(135deg, #25481a, #1d3a17);
  border-color: #3c702c;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.22);
}

.b81-download > div:first-child > span {
  color: #326d0e;
  background: rgba(255, 255, 255, 0.55);
}

:root[data-theme="dark"] .b81-download > div:first-child > span {
  color: #b9f58d;
  background: rgba(255, 255, 255, 0.08);
}

.b81-download h2 {
  margin-top: 0.8rem;
  color: inherit;
  font-size: clamp(1.65rem, 3vw, 2.4rem);
}

.b81-store-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.b81-store-row button {
  min-width: 0;
  min-height: 68px;
  padding: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  cursor: pointer;
  color: var(--ink);
  background: var(--surface-raised);
  border: 1px solid var(--line-strong);
  border-radius: 22px;
  box-shadow: var(--shadow-sm);
  transition: transform 130ms ease, border-color 130ms ease, box-shadow 130ms ease;
}

.b81-store-row button:hover {
  border-color: var(--green-deep);
  transform: translateY(-2px);
}

.b81-store-row button:active {
  box-shadow: none;
  transform: translateY(2px);
}

.b81-store-row img,
.b81-store-row svg {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.b81-store-row svg {
  fill: none;
  stroke: var(--green-deep);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.b81-store-row strong {
  min-width: 0;
  font-size: clamp(0.72rem, 1.2vw, 0.88rem);
  line-height: 1.5;
}

/* Reviews */
.b81-reviews {
  overflow: hidden;
  padding-block: var(--section-space);
  background: var(--surface-soft);
  border-block: 1px solid var(--line);
}

.b81-review-viewport {
  overflow: hidden;
  width: 100%;
  padding-block: 0.4rem 0.75rem;
}

.b81-review-track {
  width: max-content;
  display: flex;
  gap: 1rem;
  animation: review-marquee 38s linear infinite;
}

.b81-review-track:hover {
  animation-play-state: paused;
}

.b81-review-track blockquote {
  width: min(78vw, 340px);
  min-height: 210px;
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  color: var(--ink);
  background: var(--surface-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.b81-review-track blockquote > b {
  color: var(--green);
  font-size: 3.3rem;
  line-height: 0.75;
}

.b81-review-track blockquote > p {
  flex: 1;
  color: var(--ink-soft);
}

.b81-review-track footer {
  margin-top: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
}

.b81-review-track footer small {
  color: var(--muted);
}

@keyframes review-marquee {
  to { transform: translateX(50%); }
}

/* Footer */
.site-footer {
  padding: clamp(3.8rem, 7vw, 6rem) 0 1.4rem;
  color: var(--footer-ink);
  background: var(--footer-bg);
  border-top: 3px solid var(--green);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr 0.9fr;
  align-items: start;
  gap: clamp(2rem, 6vw, 5rem);
}

.site-footer .brand {
  align-items: flex-start;
  flex-direction: column;
  color: var(--footer-ink);
}

.site-footer .brand img {
  width: 118px;
  height: 136px;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.2));
}

.site-footer .brand span {
  color: var(--green);
  font-size: 1.25rem;
  font-weight: 900;
}

.footer-primary-links,
.footer-community {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.7rem;
}

.site-footer h2 {
  margin: 0 0 0.35rem;
  color: var(--footer-ink);
  font-size: 1.05rem;
  font-weight: 900;
}

.footer-primary-links a,
.footer-primary-links button {
  padding: 0;
  cursor: pointer;
  color: var(--footer-muted);
  background: transparent;
  border: 0;
  font-weight: 600;
  transition: color 140ms ease, transform 140ms ease;
}

.footer-primary-links a:hover,
.footer-primary-links button:hover {
  color: #fff;
  transform: translateX(-3px);
}

.social-row {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.social-row a,
.footer-enamad {
  display: grid;
  place-items: center;
  background: #fff;
  border: 2px solid rgba(255, 255, 255, 0.24);
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.23);
  transition: transform 140ms ease;
}

.social-row a {
  width: 46px;
  height: 46px;
  border-radius: 14px;
}

.social-row img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.footer-enamad {
  width: 74px;
  height: 74px;
  margin-top: 0.45rem;
  border-radius: 16px;
}

.footer-enamad img {
  max-width: 62px;
  max-height: 62px;
  object-fit: contain;
}

.social-row a:hover,
.footer-enamad:hover {
  transform: translateY(-3px);
}

.footer-bottom {
  margin-top: 3rem;
  padding-top: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--footer-muted);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.86rem;
}

/* Story dialog */
.story-dialog {
  width: min(calc(100% - 32px), 760px);
  max-height: min(88vh, 820px);
  padding: 0;
  overflow: visible;
  color: var(--ink);
  background: transparent;
  border: 0;
}

.story-dialog::backdrop {
  background: rgba(5, 18, 11, 0.72);
  backdrop-filter: blur(6px);
}

.story-letter {
  position: relative;
  max-height: min(88vh, 820px);
  overflow: auto;
  padding: clamp(1.4rem, 4vw, 2.8rem);
  color: var(--ink);
  background: var(--surface-raised);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.32);
}

.story-letter > header {
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--line);
}

.story-letter > header span {
  color: var(--green-deep);
  font-weight: 900;
}

.story-letter > header h2 {
  margin: 0.3rem 0 0;
  color: var(--ink);
  font-size: clamp(1.6rem, 4vw, 2.35rem);
}

.story-close {
  position: sticky;
  z-index: 2;
  top: 0;
  float: left;
  width: 43px;
  height: 43px;
  padding: 0;
  display: grid;
  place-items: center;
  cursor: pointer;
  color: var(--ink);
  background: var(--surface-soft);
  border: 2px solid var(--line-strong);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
  font-size: 1.6rem;
  line-height: 1;
}

.story-letter-body {
  padding-top: 1.25rem;
}

.story-letter-body p + p {
  margin-top: 1rem;
}

.story-highlight {
  padding: 0.9rem 1rem;
  color: var(--ink);
  background: var(--green-soft);
  border-right: 5px solid var(--green);
  border-radius: 12px;
  font-weight: 800;
}

.story-author,
.story-date {
  color: var(--muted);
  text-align: center;
}

.story-author-soft {
  color: var(--ink-soft);
  font-weight: 700;
}

.story-signatures {
  margin: 1.25rem auto 0.7rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: 1rem;
}

.story-signatures img {
  width: 100%;
  height: 90px;
  object-fit: contain;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.1));
}

:root[data-theme="dark"] .story-signatures img {
  filter: brightness(1.15) drop-shadow(0 2px 5px rgba(0, 0, 0, 0.3));
}

/* Toast */
.b81-toast {
  position: fixed;
  z-index: 100;
  right: 50%;
  bottom: 1.25rem;
  max-width: calc(100% - 32px);
  padding: 0.85rem 1.2rem;
  pointer-events: none;
  color: #fff;
  background: #2f3b34;
  border: 2px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.25);
  opacity: 0;
  transform: translate(50%, 18px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.b81-toast.is-visible {
  opacity: 1;
  transform: translate(50%, 0);
}

/* Tablet */
@media (max-width: 1050px) {
  .b81-content-strip {
    width: calc(100vw - max(20px, (100vw - var(--shell)) / 2));
    padding: 0.25rem 0 0.8rem 20px;
    overflow-x: auto;
    grid-template-columns: repeat(7, 158px);
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
    scrollbar-color: var(--line-strong) transparent;
  }

  .b81-content-strip article {
    scroll-snap-align: start;
  }

  .b81-feature,
  .b81-planner {
    gap: clamp(1.5rem, 4vw, 3rem);
  }

  .b81-store-row button {
    min-height: 62px;
  }
}

/* Mobile */
@media (max-width: 760px) {
  :root {
    --header-height: 70px;
    --section-space: 4.25rem;
  }

  .shell {
    width: min(calc(100% - 28px), var(--shell));
  }

  .site-header,
  .site-header.is-scrolled {
    min-height: 70px;
  }

  .site-header .brand img,
  .site-header.is-scrolled .brand img {
    width: 49px;
    height: 49px;
  }

  .brand-wordmark {
    font-size: 1.12rem;
  }

  .theme-toggle {
    width: 44px;
    height: 44px;
    border-radius: 14px;
  }

  .b81-hero {
    min-height: clamp(540px, 100svh, 680px);
    padding-inline: 14px;
  }

  .b81-title-primary {
    font-size: clamp(2.1rem, 11vw, 3.35rem);
  }

  .b81-hero-copy {
    gap: 0.85rem;
  }

  .b81-primary,
  .b81-secondary {
    min-width: min(100%, 260px);
  }

  .b81-content-strip {
    width: calc(100vw - 14px);
    grid-template-columns: repeat(7, min(43vw, 170px));
    padding-left: 14px;
  }

  .b81-feature,
  .b81-planner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .b81-feature .b81-copy {
    order: 2;
  }

  .b81-feature .b81-ai-visual {
    order: 1;
  }

  .b81-copy {
    max-width: none;
    text-align: center;
  }

  .b81-copy h2 {
    font-size: clamp(1.8rem, 8vw, 2.5rem);
  }

  .b81-mini-grid {
    grid-template-columns: 1fr;
  }

  .b81-download {
    margin-bottom: 4.25rem;
    padding: 1.5rem;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    text-align: center;
  }

  .b81-store-row {
    width: min(100%, 400px);
    margin-inline: auto;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2.5rem 1.4rem;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .site-footer .brand {
    align-items: center;
    margin-inline: auto;
  }

  .footer-primary-links,
  .footer-community {
    align-items: center;
    text-align: center;
  }

  .footer-bottom {
    flex-direction: column;
    justify-content: center;
    text-align: center;
  }
}

/*
 * V124 header, typography and single-sheet story refinement.
 * This final layer deliberately preserves the V121/V122 rounded geometry.
 */

/* Keep the logo/wordmark pair on the physical centre of the header. */
.public-header-inner > .brand {
  position: absolute;
  left: 50%;
  direction: rtl;
  white-space: nowrap;
  transform: translateX(-50%);
}

.site-header .brand-wordmark {
  font-size: clamp(1.38rem, 2.35vw, 1.82rem);
  font-weight: 950;
  letter-spacing: 0.035em;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.38), 0 4px 14px rgba(29, 92, 27, 0.18);
}

.home-page .site-header:not(.is-scrolled) .brand-wordmark {
  color: #efd49a;
  background: linear-gradient(135deg, #fff2bf 0%, #e4c27a 52%, #b9853f 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: none;
  filter: drop-shadow(0 2px 5px rgba(12, 31, 16, 0.55));
}

.site-header.is-scrolled .brand-wordmark {
  color: var(--green-deep);
  -webkit-text-fill-color: currentColor;
}

/* The theme switch belongs to the compact/scrolled header only. */
.header-tools {
  transition: opacity 180ms ease, visibility 180ms ease, transform 220ms ease;
}

.home-page .site-header:not(.is-scrolled) .header-tools {
  visibility: hidden;
  pointer-events: none;
  opacity: 0;
  transform: translate(-8px, -50%);
}

.home-page .site-header.is-scrolled .header-tools {
  visibility: visible;
  pointer-events: auto;
  opacity: 1;
  transform: translateY(-50%);
}

.theme-toggle,
.theme-toggle:hover,
:root[data-theme="dark"] .theme-toggle,
:root[data-theme="dark"] .theme-toggle:hover {
  border-color: transparent;
}

.theme-toggle:focus-visible {
  outline: 0;
  border-color: transparent;
  box-shadow: 0 0 0 3px rgba(227, 194, 125, 0.38), var(--shadow-sm);
}

/* Give the supporting hero sentence less visual weight than the headline. */
.b81-hero-copy p {
  color: rgba(255, 255, 255, 0.76);
  font-weight: 500;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.36);
}

/* Testimonials remain centred but use a quieter, more compact type scale. */
.b81-reviews .b81-heading h2 {
  font-size: clamp(1.25rem, 2.25vw, 1.7rem);
}

.b81-review-track blockquote > b {
  font-size: 2.35rem;
}

.b81-review-track blockquote > p {
  font-size: 0.88rem;
  line-height: 1.85;
}

.b81-review-track footer strong {
  font-size: 0.82rem;
}

.b81-review-track footer small {
  font-size: 0.72rem;
}

/* The green line was the old footer border underneath the curved cap. */
.site-footer {
  border-top: 0;
}

.site-footer .brand span {
  font-size: 1rem;
}

.site-footer h2 {
  font-size: 0.88rem;
}

.footer-primary-links a,
.footer-primary-links button {
  font-size: 0.82rem;
}

.footer-bottom {
  font-size: 0.72rem;
}

/* One compact sheet: no internal scrollbar, with stacked close signatures. */
.story-dialog {
  width: min(calc(100% - 24px), 720px);
  max-height: none;
  overflow: visible;
}

.story-letter {
  width: 100%;
  max-height: calc(100dvh - 20px);
  padding: clamp(0.85rem, 2.2vh, 1.55rem) clamp(0.9rem, 3vw, 2rem);
  overflow: hidden;
  border-radius: 24px;
}

.story-close {
  position: absolute;
  top: 12px;
  left: 12px;
  width: 36px;
  height: 36px;
  margin: 0;
  border-width: 1px;
  border-radius: 12px;
  font-size: 1.25rem;
}

.story-letter > header {
  padding-bottom: 0.55rem;
}

.story-letter > header span {
  font-size: 0.78rem;
}

.story-letter > header h2 {
  margin-top: 0.12rem;
  font-size: clamp(1.3rem, 3.1vh, 1.9rem);
}

.story-letter-body {
  padding-top: 0.55rem;
}

.story-letter-body p {
  font-size: clamp(0.7rem, 1.55vh, 0.88rem);
  line-height: 1.58;
}

.story-letter-body p + p {
  margin-top: 0.38rem;
}

.story-highlight {
  padding: 0.5rem 0.65rem;
  border-bottom-width: 3px;
  border-radius: 10px;
}

.story-author small,
.story-date {
  font-size: 0.68rem;
}

.story-signatures {
  width: min(210px, 64vw);
  margin: 0.35rem auto 0.15rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.story-signatures img {
  width: 100%;
  height: 54px;
}

.story-signatures .bahariom-signature {
  margin-top: -20px;
}

@media (max-width: 600px) {
  .site-header .brand-wordmark,
  .site-header.is-scrolled .brand-wordmark {
    font-size: 1.18rem;
  }

  .public-header-inner > .brand {
    gap: 9px;
  }

  .b81-reviews .b81-heading h2 {
    font-size: 1.22rem;
  }

  .b81-review-track blockquote > p {
    font-size: 0.8rem;
    line-height: 1.78;
  }

  .site-footer h2 {
    font-size: 0.84rem;
  }

  .footer-primary-links a,
  .footer-primary-links button {
    font-size: 0.78rem;
  }

  .story-dialog {
    width: min(calc(100% - 14px), 720px);
  }

  .story-letter {
    max-height: calc(100dvh - 12px);
    padding: 0.78rem 0.82rem;
    border-radius: 18px;
  }

  .story-close {
    top: 9px;
    left: 9px;
    width: 32px;
    height: 32px;
  }

  .story-letter > header h2 {
    font-size: 1.22rem;
  }

  .story-letter-body p {
    font-size: clamp(0.66rem, 1.48vh, 0.75rem);
    line-height: 1.5;
  }

  .story-letter-body p + p {
    margin-top: 0.3rem;
  }

  .story-signatures {
    width: min(172px, 58vw);
  }

  .story-signatures img {
    height: 48px;
  }

  .story-signatures .bahariom-signature {
    margin-top: -18px;
  }
}

/* V132 definitive download and mobile artwork overrides. */
.b81-hero-copy .b81-secondary {
  font-weight: 300;
  color: rgba(255, 255, 255, .78);
}

#download.b81-download,
:root[data-theme="dark"] #download.b81-download {
  grid-template-columns: 1fr;
  justify-items: center;
  text-align: center;
  border: 1px solid #d8b66f;
}

#download .b81-download-copy,
#download .b81-download-actions {
  width: min(100%, 600px);
  margin-inline: auto;
  text-align: center;
}

#download.b81-download h2,
:root[data-theme="dark"] #download.b81-download h2 {
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: .28em;
  color: var(--ink);
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
  -webkit-text-fill-color: currentColor;
  animation: none;
}

#download.b81-download h2 span {
  color: var(--ink);
}

#download.b81-download h2 strong {
  color: #c79a45;
  font: inherit;
}

:root[data-theme="dark"] #download.b81-download h2 span {
  color: var(--ink);
}

:root[data-theme="dark"] #download.b81-download h2 strong {
  color: #e2c17d;
}

@media (max-width: 760px) {
  #python .b81-mini-image img {
    object-position: 64% center;
    transform: none;
  }
}

/* V132: centred download card, logo-gold accents and corrected mobile crop. */
.b81-hero-copy .b81-secondary {
  font-weight: 300;
  color: rgba(255, 255, 255, .78);
}

.b81-download,
:root[data-theme="dark"] .b81-download {
  grid-template-columns: 1fr;
  justify-items: center;
  text-align: center;
  border: 1px solid #d8b66f;
}

.b81-download-copy,
.b81-download-actions {
  width: min(100%, 600px);
  margin-inline: auto;
  text-align: center;
}

.b81-download h2,
:root[data-theme="dark"] .b81-download h2 {
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: .28em;
  color: var(--ink);
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
  -webkit-text-fill-color: currentColor;
  animation: none;
}

.b81-download h2 span {
  color: var(--ink);
}

.b81-download h2 strong {
  color: #c79a45;
  font: inherit;
}

:root[data-theme="dark"] .b81-download h2 span {
  color: var(--ink);
}

:root[data-theme="dark"] .b81-download h2 strong {
  color: #e2c17d;
}

@media (max-width: 760px) {
  #python .b81-mini-image img {
    object-position: 64% center;
    transform: none;
  }
}

/* V131 definitive card and download overrides — scoped by section ID. */
#library .b81-content-thumb {
  aspect-ratio: 16 / 10;
  background: #eef5ed;
}

#library .b81-content-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#download.b81-download,
:root[data-theme="dark"] #download.b81-download {
  isolation: auto;
  padding: clamp(1.6rem, 3.6vw, 2.45rem);
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  color: var(--ink);
  background: var(--surface-raised);
  border: 1px solid color-mix(in srgb, var(--green) 34%, var(--line));
  border-radius: 30px;
  box-shadow: 0 14px 38px rgba(38, 91, 47, 0.11);
}

#download.b81-download::before,
#download.b81-download::after {
  display: none;
}

#download .b81-download-kicker,
:root[data-theme="dark"] #download .b81-download-kicker {
  color: var(--green-deep);
  background: var(--green-soft-2);
  border: 1px solid color-mix(in srgb, var(--green) 26%, var(--line));
  box-shadow: none;
}

#download h2,
:root[data-theme="dark"] #download h2 {
  width: auto;
  margin: 0.72rem 0 0;
  color: var(--ink);
  background: none;
  font-size: clamp(1.7rem, 3vw, 2.45rem);
  animation: none;
  -webkit-background-clip: initial;
  background-clip: initial;
  -webkit-text-fill-color: currentColor;
}

#download .b81-store-row button,
:root[data-theme="dark"] #download .b81-store-row button {
  min-height: 72px;
  justify-content: flex-start;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  color: var(--ink);
  background: var(--surface-soft);
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  box-shadow: none;
  text-align: right;
}

#download .b81-store-row button strong,
:root[data-theme="dark"] #download .b81-store-row button strong {
  color: var(--ink);
}

@media (max-width: 760px) {
  #download.b81-download,
  :root[data-theme="dark"] #download.b81-download {
    padding: 1.35rem;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.25rem;
    border-radius: 24px;
    text-align: center;
  }

  #download h2,
  :root[data-theme="dark"] #download h2 {
    font-size: clamp(1.6rem, 7.4vw, 2rem);
  }
}

.b81-content-thumb {
  aspect-ratio: 16 / 10;
  background: #eef5ed;
}

.b81-content-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.b81-content-strip article > h3 {
  min-height: 2.75rem;
  margin: 0;
  display: grid;
  place-items: center;
  color: var(--ink);
  font-size: clamp(0.78rem, 1vw, 0.92rem);
  font-weight: 600;
  line-height: 1.45;
}

.b81-download,
:root[data-theme="dark"] .b81-download {
  isolation: auto;
  padding: clamp(1.6rem, 3.6vw, 2.45rem);
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  color: var(--ink);
  background: var(--surface-raised);
  border: 1px solid color-mix(in srgb, var(--green) 34%, var(--line));
  border-radius: 30px;
  box-shadow: 0 14px 38px rgba(38, 91, 47, 0.11);
}

:root[data-theme="dark"] .b81-download {
  border-color: color-mix(in srgb, var(--green) 42%, var(--line));
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.24);
}

.b81-download::before,
.b81-download::after {
  display: none;
}

.b81-download .b81-download-kicker,
:root[data-theme="dark"] .b81-download .b81-download-kicker {
  min-height: 30px;
  padding: 0.28rem 0.72rem;
  color: var(--green-deep);
  background: var(--green-soft-2);
  border: 1px solid color-mix(in srgb, var(--green) 26%, var(--line));
  border-radius: 999px;
  box-shadow: none;
  font-size: 0.78rem;
  font-weight: 600;
}

:root[data-theme="dark"] .b81-download .b81-download-kicker {
  color: #c9f6aa;
  background: rgba(88, 204, 2, 0.1);
}

.b81-download h2,
:root[data-theme="dark"] .b81-download h2 {
  width: auto;
  margin: 0.72rem 0 0;
  color: var(--ink);
  background: none;
  font-size: clamp(1.7rem, 3vw, 2.45rem);
  font-weight: 700;
  line-height: 1.35;
  animation: none;
  -webkit-background-clip: initial;
  background-clip: initial;
  -webkit-text-fill-color: currentColor;
}

.b81-download-copy > p {
  max-width: 34rem;
  margin: 0.55rem 0 0;
  color: var(--muted);
  font-size: clamp(0.88rem, 1.3vw, 1rem);
  font-weight: 400;
  line-height: 1.85;
}

.b81-store-row button,
:root[data-theme="dark"] .b81-store-row button {
  min-height: 72px;
  justify-content: flex-start;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  color: var(--ink);
  background: var(--surface-soft);
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  box-shadow: none;
  text-align: right;
}

.b81-store-row button:hover,
:root[data-theme="dark"] .b81-store-row button:hover {
  border-color: var(--green);
  background: var(--surface-raised);
  box-shadow: 0 9px 22px rgba(42, 92, 50, 0.09);
}

.b81-store-row button > span {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 0.08rem;
}

.b81-store-row button small {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 400;
}

.b81-store-row button strong,
.b81-store-row .b81-store-bazaar strong,
.b81-store-row .b81-store-myket strong,
:root[data-theme="dark"] .b81-store-row .b81-store-bazaar strong,
:root[data-theme="dark"] .b81-store-row .b81-store-myket strong {
  color: var(--ink);
  font-size: clamp(0.82rem, 1.25vw, 0.96rem);
  font-weight: 600;
  line-height: 1.55;
}

.b81-download-note {
  margin: 0.72rem 0 0;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 400;
  line-height: 1.7;
  text-align: center;
}

@media (max-width: 760px) {
  .b81-download,
  :root[data-theme="dark"] .b81-download {
    padding: 1.35rem;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.25rem;
    border-radius: 24px;
    text-align: center;
  }

  .b81-download-copy {
    align-items: center;
  }

  .b81-download h2,
  :root[data-theme="dark"] .b81-download h2 {
    font-size: clamp(1.6rem, 7.4vw, 2rem);
  }
}

@media (max-width: 460px) {
  .b81-store-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .b81-store-row button {
    min-height: 66px;
  }
}

/*
 * V131 site quality layer
 * One calm final treatment for accessibility, cartoon cards and app download.
 */
.skip-link {
  position: fixed;
  z-index: 1000;
  top: 10px;
  right: 10px;
  padding: 0.7rem 1rem;
  color: #173b11;
  background: #fff;
  border: 2px solid var(--green);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
  font-weight: 600;
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

#library,
#bahara,
#baharyar,
#club,
#python,
#download,
#reviews,
#contact {
  scroll-margin-top: calc(var(--header-height) + 18px);
}

.b81-content-strip article {
  overflow: hidden;
}

.b81-content-thumb {
  aspect-ratio: 16 / 10;
  background: #eef5ed;
}

.b81-content-thumb::after {
  opacity: 0.12;
}

.b81-content-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.b81-content-strip article > h3 {
  min-height: 2.75rem;
  margin: 0;
  display: grid;
  place-items: center;
  color: var(--ink);
  font-size: clamp(0.78rem, 1vw, 0.92rem);
  font-weight: 600;
  line-height: 1.45;
}

/* The final download card deliberately removes the older decorative layers. */
.b81-download,
:root[data-theme="dark"] .b81-download {
  position: relative;
  isolation: auto;
  overflow: hidden;
  padding: clamp(1.6rem, 3.6vw, 2.45rem);
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  color: var(--ink);
  background: var(--surface-raised);
  border: 1px solid color-mix(in srgb, var(--green) 34%, var(--line));
  border-radius: 30px;
  box-shadow: 0 14px 38px rgba(38, 91, 47, 0.11);
}

:root[data-theme="dark"] .b81-download {
  border-color: color-mix(in srgb, var(--green) 42%, var(--line));
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.24);
}

.b81-download::before,
.b81-download::after {
  display: none;
}

.b81-download-copy {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  flex-direction: column;
  justify-content: center;
}

.b81-download .b81-download-kicker,
:root[data-theme="dark"] .b81-download .b81-download-kicker {
  min-height: 30px;
  padding: 0.28rem 0.72rem;
  color: var(--green-deep);
  background: var(--green-soft-2);
  border: 1px solid color-mix(in srgb, var(--green) 26%, var(--line));
  border-radius: 999px;
  box-shadow: none;
  font-size: 0.78rem;
  font-weight: 600;
}

:root[data-theme="dark"] .b81-download .b81-download-kicker {
  color: #c9f6aa;
  background: rgba(88, 204, 2, 0.1);
}

.b81-download h2,
:root[data-theme="dark"] .b81-download h2 {
  width: auto;
  margin: 0.72rem 0 0;
  color: var(--ink);
  background: none;
  font-size: clamp(1.7rem, 3vw, 2.45rem);
  font-weight: 700;
  line-height: 1.35;
  animation: none;
  -webkit-background-clip: initial;
  background-clip: initial;
  -webkit-text-fill-color: currentColor;
}

.b81-download-copy > p {
  max-width: 34rem;
  margin: 0.55rem 0 0;
  color: var(--muted);
  font-size: clamp(0.88rem, 1.3vw, 1rem);
  font-weight: 400;
  line-height: 1.85;
}

.b81-download-actions {
  min-width: 0;
}

.b81-store-row {
  gap: 0.75rem;
}

.b81-store-row button,
:root[data-theme="dark"] .b81-store-row button {
  min-height: 72px;
  justify-content: flex-start;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  color: var(--ink);
  background: var(--surface-soft);
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  box-shadow: none;
  text-align: right;
}

.b81-store-row button:hover,
:root[data-theme="dark"] .b81-store-row button:hover {
  border-color: var(--green);
  background: var(--surface-raised);
  box-shadow: 0 9px 22px rgba(42, 92, 50, 0.09);
  transform: translateY(-2px);
}

.b81-store-row button:active {
  box-shadow: none;
  transform: translateY(0);
}

.b81-store-row button:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--green) 42%, transparent);
  outline-offset: 3px;
}

.b81-store-row button > img {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
}

.b81-store-row button > span {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 0.08rem;
}

.b81-store-row button small {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 400;
}

.b81-store-row button strong,
.b81-store-row .b81-store-bazaar strong,
.b81-store-row .b81-store-myket strong,
:root[data-theme="dark"] .b81-store-row .b81-store-bazaar strong,
:root[data-theme="dark"] .b81-store-row .b81-store-myket strong {
  overflow: hidden;
  color: var(--ink);
  font-size: clamp(0.82rem, 1.25vw, 0.96rem);
  font-weight: 600;
  line-height: 1.55;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.b81-download-note {
  margin: 0.72rem 0 0;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 400;
  line-height: 1.7;
  text-align: center;
}

@media (max-width: 760px) {
  .b81-download,
  :root[data-theme="dark"] .b81-download {
    padding: 1.35rem;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.25rem;
    border-radius: 24px;
    text-align: center;
  }

  .b81-download-copy {
    align-items: center;
  }

  .b81-download h2,
  :root[data-theme="dark"] .b81-download h2 {
    font-size: clamp(1.6rem, 7.4vw, 2rem);
  }

  .b81-download-copy > p {
    max-width: 30rem;
  }
}

@media (max-width: 460px) {
  .b81-store-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .b81-store-row button {
    min-height: 66px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .b81-hero-video {
    display: none;
  }

  .skip-link,
  .b81-content-thumb img,
  .b81-store-row button {
    transition: none;
  }
}

.b81-content-thumb:not(:has(img)) {
  background: linear-gradient(145deg, color-mix(in srgb, var(--green) 13%, var(--surface)), var(--surface));
}

.b81-content-thumb:not(:has(img)) svg {
  display: block;
  width: 42px;
  height: 42px;
  color: var(--green-deep);
}

@media (max-height: 680px) {
  .story-letter {
    padding-block: 0.55rem;
  }

  .story-letter > header {
    padding-bottom: 0.3rem;
  }

  .story-letter > header h2 {
    font-size: 1.08rem;
  }

  .story-letter-body {
    padding-top: 0.34rem;
  }

  .story-letter-body p {
    font-size: 0.62rem;
    line-height: 1.42;
  }

  .story-letter-body p + p {
    margin-top: 0.2rem;
  }

  .story-highlight {
    padding: 0.32rem 0.5rem;
  }

  .story-signatures img {
    height: 39px;
  }

  .story-signatures .bahariom-signature {
    margin-top: -15px;
  }
}

/* Keep the trust link useful if the remote seal image is temporarily blocked. */
.footer-enamad-fallback {
  display: none;
  place-items: center;
  color: #f1d499;
  font-size: 0.7rem;
  font-weight: 900;
  line-height: 1.55;
  text-align: center;
}

.footer-enamad.is-unavailable img {
  display: none;
}

.footer-enamad.is-unavailable .footer-enamad-fallback {
  display: grid;
}

@media (max-width: 480px) {
  .shell {
    width: min(calc(100% - 24px), var(--shell));
  }

  .brand-wordmark {
    font-size: 1rem;
  }

  .b81-hero-copy p {
    font-size: 0.93rem;
  }

  .b81-primary,
  .b81-secondary {
    width: 100%;
    min-height: 55px;
  }

  .b81-heading h2 {
    font-size: 1.65rem;
  }

  .b81-content-strip {
    grid-template-columns: repeat(7, 46vw);
  }

  .b81-store-row {
    grid-template-columns: 1fr;
  }

  .b81-ai-visual,
  .b81-mini {
    border-radius: 21px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-brand,
  .footer-primary-links,
  .footer-community {
    grid-column: 1;
  }

  .story-dialog {
    width: min(calc(100% - 20px), 760px);
  }

  .story-letter {
    padding: 1.15rem;
    border-radius: 20px;
  }

  .story-signatures {
    grid-template-columns: 1fr;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .b81-review-track {
    width: auto;
    padding-inline: 14px;
    overflow-x: auto;
  }
}

/*
 * V121 original-layout restoration
 *
 * Keep the compact spatial rhythm of the supplied Bahariom site: floating
 * centred header, curved hero edge, seven small learning tiles, capsule-shaped
 * alternating images and horizontal half-width cards. Only paint, interaction
 * and theme values remain from the clean Duolingo system above.
 */
.home-page {
  background: var(--surface-soft);
}

.home-page #main-content {
  background: var(--page);
}

.shell {
  width: min(1180px, calc(100% - 32px));
}

.site-header,
.site-header.is-scrolled {
  top: 14px;
  right: 50%;
  left: auto;
  width: min(1180px, calc(100% - 28px));
  min-height: 74px;
  border: 1px solid transparent;
  border-radius: 20px;
  transform: translateX(50%);
  transition: top 260ms ease, min-height 260ms ease, width 260ms ease,
    background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.home-page .site-header:not(.is-scrolled) {
  background: linear-gradient(180deg, rgba(5, 28, 16, 0.25), rgba(5, 28, 16, 0.04));
  border-color: rgba(255, 255, 255, 0.2);
  border-bottom-color: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(5px) saturate(120%);
  -webkit-backdrop-filter: blur(5px) saturate(120%);
}

.site-header.is-scrolled {
  top: 8px;
  width: min(1140px, calc(100% - 30px));
  min-height: 66px;
  background: var(--header-bg);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-sm);
}

.public-header-inner {
  position: relative;
  min-height: inherit;
  padding: 5px 14px;
  justify-content: center;
}

.public-header-inner > .brand {
  justify-content: center;
  gap: 12px;
  font-size: 2rem;
  transition: font-size 260ms ease, gap 260ms ease;
}

.site-header .brand img {
  width: 66px;
  height: 66px;
}

.site-header.is-scrolled .brand {
  gap: 9px;
}

.site-header.is-scrolled .brand img {
  width: 53px;
  height: 53px;
}

.header-tools {
  position: absolute;
  top: 50%;
  left: 12px;
  transform: translateY(-50%);
}

.home-page .site-header:not(.is-scrolled) .theme-toggle {
  background: rgba(255, 255, 255, 0.12);
}

.b81-hero {
  min-height: clamp(610px, 72vh, 760px);
  padding: 92px 20px 84px;
}

.b81-hero::after {
  position: absolute;
  z-index: 4;
  right: -8%;
  bottom: -66px;
  left: -8%;
  height: 124px;
  content: "";
  background: var(--page);
  border-radius: 50% 50% 0 0 / 70% 70% 0 0;
  pointer-events: none;
}

.b81-hero-copy {
  width: min(880px, 90%);
  margin-top: 62px;
  display: block;
}

.b81-title-primary {
  font-size: clamp(2.45rem, 4.2vw, 4.1rem);
}

.b81-hero-copy p {
  margin: 10px auto 18px;
}

.b81-hero-copy .b81-primary,
.b81-hero-copy .b81-secondary {
  width: min(276px, 100%);
  min-height: 54px;
  margin-inline: auto;
  display: flex;
  border-radius: 17px;
}

.b81-hero-copy .b81-primary {
  margin-top: 6px;
  background: rgba(88, 204, 2, 0.78);
  border-color: rgba(202, 255, 164, 0.7);
}

.b81-hero-copy .b81-secondary {
  margin-top: 8px;
  background: rgba(255, 255, 255, 0.16);
}

.b81-section {
  padding: 42px 0 58px;
}

.b81-heading {
  margin-bottom: 28px;
}

.b81-heading h2 {
  font-size: clamp(1.55rem, 3vw, 2.25rem);
}

.b81-heading p {
  margin-top: 6px;
  font-size: 0.82rem;
}

.b81-content-strip {
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 14px;
}

.b81-content-strip article {
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.b81-content-strip article:hover {
  border-color: transparent;
  box-shadow: none;
  transform: translateY(-3px);
}

.b81-content-thumb {
  height: 102px;
  aspect-ratio: auto;
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow-sm);
}

.b81-content-strip article > i {
  width: 29px;
  height: 29px;
  margin: -14px 0 6px;
  background: var(--green-deep);
}

.b81-content-strip article > strong {
  min-height: 0;
  font-size: 0.73rem;
  white-space: nowrap;
}

.b81-feature,
.b81-planner {
  min-height: 280px;
  padding: 24px 0 36px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  gap: 7%;
}

.b81-planner {
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
}

.b81-ai-visual {
  height: 260px;
  aspect-ratio: auto;
  margin: 0;
  border-radius: 0 130px 130px 0;
}

.b81-planner .b81-ai-visual {
  border-radius: 130px 0 0 130px;
}

.b81-copy {
  max-width: 540px;
  padding: 22px 0;
}

.b81-name {
  min-height: 0;
  padding: 0;
  background: transparent;
  font-size: 2rem;
}

.b81-copy h2 {
  margin-top: 2px;
  font-size: 1.3rem;
}

.b81-copy p {
  margin-top: 0;
  font-size: 0.82rem;
  line-height: 2;
}

.b81-planner-wrap {
  background: var(--blue-soft);
}

.b81-mini-grid {
  padding: 20px 0;
  gap: 14px;
}

.b81-mini {
  min-height: 200px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  grid-template-rows: 1fr;
  border-radius: 28px;
  box-shadow: var(--shadow-sm);
}

.b81-mini-image {
  min-height: 200px;
  aspect-ratio: auto;
  border-radius: 0 92px 92px 0;
}

.b81-mini > div:last-child {
  padding: 28px 22px;
  align-self: center;
}

.b81-mini span {
  min-height: 0;
  padding: 0;
  background: transparent;
  font-size: 0.68rem;
}

.b81-mini h2 {
  margin-top: 5px;
  font-size: 1.18rem;
}

.b81-mini p {
  font-size: 0.72rem;
  line-height: 1.9;
}

.b81-download {
  margin-top: 14px;
  margin-bottom: 30px;
  padding: 30px clamp(16px, 4vw, 30px);
  grid-template-columns: 1fr;
  gap: 18px;
  border-radius: 32px;
  text-align: center;
}

.b81-download > div:first-child > span {
  min-height: 0;
  padding: 0;
  background: transparent;
  font-size: 0.72rem;
}

.b81-download h2 {
  margin-top: 5px;
  font-size: 1.55rem;
}

.b81-store-row {
  width: min(520px, 100%);
  margin: auto;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.b81-store-row button {
  min-height: 58px;
  border-radius: 16px;
}

.b81-reviews {
  margin-top: 30px;
  padding: 38px 0 32px;
}

.b81-review-track blockquote {
  width: min(390px, 82vw);
  min-height: 0;
  padding: 18px;
  border-radius: 20px;
}

.site-footer {
  position: relative;
  margin-top: 82px;
  padding-top: 70px;
}

.site-footer::before {
  position: absolute;
  z-index: 0;
  top: -58px;
  right: -5%;
  width: 110%;
  height: 104px;
  content: "";
  background: var(--footer-bg);
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}

.site-footer > * {
  position: relative;
  z-index: 1;
}

@media (max-width: 900px) {
  .b81-content-strip {
    width: auto;
    padding: 0 0 10px;
    grid-template-columns: repeat(7, 118px);
    overflow-x: auto;
    scrollbar-width: none;
  }

  .b81-content-strip::-webkit-scrollbar {
    display: none;
  }

  .b81-feature,
  .b81-planner {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .b81-feature .b81-copy {
    order: 1;
  }

  .b81-feature .b81-ai-visual {
    order: 2;
    margin-top: 8px;
    border-radius: 95px 0 0 95px;
  }

  .b81-planner .b81-ai-visual {
    border-radius: 0 95px 95px 0;
  }

  .b81-mini-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .site-header,
  .site-header.is-scrolled {
    top: 9px;
    min-height: 62px;
  }

  .public-header-inner > .brand {
    gap: 8px;
  }

  .site-header .brand img,
  .site-header.is-scrolled .brand img {
    width: 49px;
    height: 49px;
  }

  .header-tools {
    left: 7px;
  }

  .theme-toggle {
    width: 36px;
    height: 36px;
  }

  .b81-hero {
    min-height: 630px;
    padding-inline: 14px;
  }

  .b81-hero-copy {
    width: min(92%, 340px);
    margin-top: 25px;
  }

  .b81-title-primary {
    font-size: clamp(2.1rem, 11vw, 2.55rem);
  }

  .b81-section {
    padding-top: 34px;
  }

  .b81-content-thumb {
    height: 88px;
  }

  .b81-feature,
  .b81-planner {
    padding-bottom: 28px;
  }

  .b81-ai-visual {
    height: 230px;
  }

  .b81-copy {
    padding-inline: 6px;
    text-align: center;
  }

  .b81-copy h2 {
    font-size: 1.3rem;
  }

  .b81-mini {
    min-height: 180px;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    border-radius: 24px;
  }

  .b81-mini-image {
    min-height: 180px;
    border-radius: 0 78px 78px 0;
  }

  .b81-mini > div:last-child {
    padding: 24px 17px;
  }

  .b81-download {
    padding: 30px 20px;
  }

  .b81-store-row {
    grid-template-columns: 1fr;
  }

  .site-footer {
    margin-top: 58px;
    padding-top: 48px;
  }

  .site-footer::before {
    top: -38px;
    height: 68px;
  }
}

@media print {
  .site-header,
  .site-footer,
  .b81-hero-video,
  .b81-toast {
    display: none;
  }

  body {
    color: #000;
    background: #fff;
  }
}

/*
 * V122 centred refinement
 * Preserve the soft V121 geometry while removing the visual left/right drift.
 */
html,
body,
.home-page #main-content {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

.home-page #main-content > .shell,
.home-page #main-content > section.shell,
.home-page .b81-feature.shell,
.home-page .b81-mini-grid.shell {
  margin-inline: auto;
}

/* The wordmark and its logo stay centred even with the absolute theme switch. */
.public-header-inner > .brand,
.brand-wordmark {
  text-align: center;
}

.brand-wordmark {
  display: block;
}

/* Testimonials: quotation, copy, author and role share one true centre axis. */
.b81-review-track blockquote {
  align-items: center;
  text-align: center;
}

.b81-review-track blockquote > b {
  align-self: center;
}

.b81-review-track blockquote > p {
  width: 100%;
  text-align: center;
}

.b81-review-track footer {
  width: 100%;
  flex-direction: column;
  justify-content: center;
  gap: 0.2rem;
  text-align: center;
}

/* Story letter: keep the close control available while centring all prose. */
.story-letter,
.story-letter > header,
.story-letter-body,
.story-letter-body p,
.story-highlight,
.story-author,
.story-date {
  text-align: center;
}

.story-letter-body p {
  margin-inline: auto;
}

.story-close {
  float: none;
  margin-right: auto;
  margin-bottom: -43px;
}

.story-highlight {
  border-right: 0;
  border-bottom: 4px solid var(--green);
}

.story-signatures {
  justify-items: center;
}

/* Download: vivid and friendly, but still compact and softly rounded. */
.b81-download {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: #173b11;
  background:
    radial-gradient(circle at 8% 12%, rgba(28, 176, 246, 0.22), transparent 28%),
    radial-gradient(circle at 92% 88%, rgba(255, 200, 0, 0.25), transparent 28%),
    linear-gradient(135deg, #efffe4 0%, #d7ffb8 52%, #e4f6ff 100%);
  border: 1px solid #96d768;
  box-shadow: 0 7px 0 #79bf49, 0 24px 52px rgba(72, 133, 37, 0.2);
}

.b81-download::before,
.b81-download::after {
  position: absolute;
  z-index: -1;
  content: "";
  border-radius: 999px;
  pointer-events: none;
}

.b81-download::before {
  top: -62px;
  right: -42px;
  width: 156px;
  height: 156px;
  background: rgba(88, 204, 2, 0.14);
  border: 22px solid rgba(255, 255, 255, 0.2);
}

.b81-download::after {
  bottom: -72px;
  left: -40px;
  width: 174px;
  height: 174px;
  background: rgba(28, 176, 246, 0.12);
  border: 24px solid rgba(255, 255, 255, 0.18);
}

.b81-download > div {
  position: relative;
  z-index: 1;
}

.b81-download > div:first-child > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0.85rem;
  color: #326d0e;
  background: rgba(255, 255, 255, 0.64);
  border: 1px solid rgba(88, 160, 40, 0.2);
  border-radius: 999px;
  box-shadow: 0 3px 10px rgba(63, 116, 31, 0.08);
}

.b81-store-row button {
  background: rgba(255, 255, 255, 0.9);
  border: 2px solid rgba(76, 138, 37, 0.3);
  box-shadow: 0 5px 0 rgba(80, 137, 44, 0.23), 0 12px 24px rgba(59, 110, 28, 0.1);
}

.b81-store-row button:hover {
  border-color: var(--green);
  box-shadow: 0 3px 0 rgba(80, 137, 44, 0.28), 0 10px 20px rgba(59, 110, 28, 0.12);
}

:root[data-theme="dark"] .b81-download {
  color: #f1ffe8;
  background:
    radial-gradient(circle at 8% 12%, rgba(28, 176, 246, 0.17), transparent 28%),
    radial-gradient(circle at 92% 88%, rgba(255, 200, 0, 0.12), transparent 28%),
    linear-gradient(135deg, #213f19 0%, #193517 54%, #172f38 100%);
  border-color: #47773a;
  box-shadow: 0 7px 0 #163312, 0 24px 52px rgba(0, 0, 0, 0.3);
}

:root[data-theme="dark"] .b81-download > div:first-child > span {
  color: #d9ffbd;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(204, 241, 177, 0.14);
}

:root[data-theme="dark"] .b81-store-row button {
  color: #f2f8ef;
  background: rgba(18, 38, 27, 0.88);
  border-color: rgba(151, 210, 112, 0.32);
  box-shadow: 0 5px 0 rgba(5, 18, 10, 0.58), 0 12px 26px rgba(0, 0, 0, 0.24);
}

/* Footer: restore the translucent original badges and centre every group. */
.footer-grid {
  align-items: start;
  justify-items: center;
  text-align: center;
}

.footer-brand,
.footer-primary-links,
.footer-community {
  width: 100%;
  align-items: center;
  text-align: center;
}

.site-footer .brand {
  margin-inline: auto;
  align-items: center;
  text-align: center;
}

.site-footer .brand span {
  color: #e3c27d;
  background: linear-gradient(135deg, #fff0be 0%, #dfbd76 50%, #bd8d42 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 2px 16px rgba(218, 178, 104, 0.16);
}

.footer-primary-links a:hover,
.footer-primary-links button:hover {
  transform: translateY(-2px);
}

.social-row {
  justify-content: center;
}

.site-footer .social-row a {
  width: 42px;
  height: 42px;
  padding: 7px;
  background: rgba(255, 252, 242, 0.09);
  border: 1px solid rgba(255, 247, 227, 0.2);
  border-radius: 15px;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.08);
}

.site-footer .social-row a:hover {
  background: rgba(255, 252, 242, 0.17);
  border-color: rgba(244, 213, 151, 0.42);
}

.site-footer .social-row img {
  width: 26px;
  height: 26px;
}

.site-footer .footer-enamad {
  width: 76px;
  height: 76px;
  min-height: 76px;
  margin-top: 18px;
  padding: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 250, 239, 0.1);
  border: 1px solid rgba(242, 212, 153, 0.34);
  border-radius: 16px;
  color: #fff8e8;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.08);
}

.site-footer .footer-enamad:hover {
  background: rgba(255, 250, 239, 0.16);
  border-color: rgba(242, 212, 153, 0.58);
}

.site-footer .footer-enamad img {
  width: 58px;
  height: 58px;
}

.footer-bottom {
  flex-direction: column;
  justify-content: center;
  gap: 0.25rem;
  text-align: center;
}

.site-footer::before {
  right: 0;
  left: 0;
  width: 100%;
}

@media (max-width: 760px) {
  .b81-download {
    padding: 28px 18px 30px;
    box-shadow: 0 6px 0 #79bf49, 0 18px 36px rgba(72, 133, 37, 0.18);
  }

  :root[data-theme="dark"] .b81-download {
    box-shadow: 0 6px 0 #163312, 0 18px 36px rgba(0, 0, 0, 0.28);
  }
}

/*
 * V125 final public layer
 * Gold centred wordmark, compact Duolingo footer, readable testimonials and
 * the optimised desktop Bahara artwork. This remains the final source of truth.
 */

/* The header intentionally contains only the centred wordmark. */
.public-header-inner > .brand {
  right: auto;
  left: 50%;
  gap: 0;
  justify-content: center;
  transform: translateX(-50%);
}

.site-header .brand-wordmark,
.site-header.is-scrolled .brand-wordmark,
.home-page .site-header:not(.is-scrolled) .brand-wordmark,
:root[data-theme="dark"] .site-header .brand-wordmark,
:root[data-theme="dark"] .site-header.is-scrolled .brand-wordmark {
  color: #e4c27a;
  background: linear-gradient(135deg, #fff1bd 0%, #e4c27a 48%, #b7843d 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: clamp(1.55rem, 2.65vw, 2.05rem);
  font-weight: 1000;
  letter-spacing: 0.045em;
  text-shadow: none;
  filter: drop-shadow(0 2px 4px rgba(18, 35, 23, 0.28));
}

.site-header.is-scrolled .brand-wordmark,
:root[data-theme="dark"] .site-header.is-scrolled .brand-wordmark {
  filter: drop-shadow(0 1px 2px rgba(77, 53, 20, 0.2));
}

/* The supplied character is kept intact and extended into a desktop canvas. */
.b125-bahara-visual {
  background: #ffba35;
}

.b125-bahara-visual img,
.b125-bahara-visual:hover img {
  object-fit: cover;
  object-position: center;
  transform: none;
}

/* Reviews: the section title is a title again, while the cards stay compact. */
.b81-reviews .b81-heading h2 {
  color: var(--green-deep);
  font-size: clamp(1.65rem, 3.1vw, 2.25rem);
  font-weight: 950;
  line-height: 1.45;
}

:root[data-theme="dark"] .b81-reviews .b81-heading h2 {
  color: #6ee817;
}

/* Compact, centred Duolingo footer. */
.site-footer {
  margin-top: 52px;
  padding: 40px 0 14px;
  border-top: 0;
}

.site-footer::before {
  top: -38px;
  right: 0;
  left: 0;
  width: 100%;
  height: 68px;
}

.site-footer .footer-grid {
  width: min(calc(100% - 40px), 820px);
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  justify-items: center;
  gap: clamp(1rem, 3vw, 2rem);
  text-align: center;
}

.footer-brand,
.footer-primary-links,
.footer-community {
  width: 100%;
  align-items: center;
  gap: 0.42rem;
  text-align: center;
}

.site-footer .brand {
  gap: 0.2rem;
  margin-inline: auto;
  align-items: center;
  text-align: center;
}

.site-footer .brand img {
  width: 76px;
  height: 86px;
}

.site-footer .brand span {
  font-size: 0.92rem;
  line-height: 1.4;
}

.site-footer h2 {
  margin-bottom: 0.18rem;
  font-size: 0.86rem;
}

.footer-primary-links a,
.footer-primary-links button {
  font-size: 0.76rem;
  line-height: 1.7;
}

.site-footer .social-row {
  gap: 0.5rem;
}

.site-footer .social-row a {
  width: 38px;
  height: 38px;
  padding: 6px;
  border-radius: 13px;
}

.site-footer .social-row img {
  width: 24px;
  height: 24px;
}

.site-footer .footer-enamad {
  width: 62px;
  height: 62px;
  min-height: 62px;
  margin-top: 7px;
  padding: 6px;
  border-radius: 14px;
}

.site-footer .footer-enamad img {
  width: 48px;
  height: 48px;
}

.footer-bottom {
  width: min(calc(100% - 40px), 820px);
  margin-top: 1rem;
  padding-top: 0.72rem;
  gap: 0.12rem;
  font-size: 0.68rem;
  text-align: center;
}

.footer-copyright {
  color: #e3c27d;
  background: linear-gradient(135deg, #fff0be 0%, #dfbd76 50%, #bd8d42 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 0.82rem;
  font-weight: 950;
  text-shadow: 0 2px 16px rgba(218, 178, 104, 0.16);
}

@media (max-width: 600px) {
  .site-header .brand-wordmark,
  .site-header.is-scrolled .brand-wordmark,
  .home-page .site-header:not(.is-scrolled) .brand-wordmark {
    font-size: 1.34rem;
  }

  .b81-reviews .b81-heading h2 {
    font-size: 1.62rem;
  }

  .site-footer {
    margin-top: 44px;
    padding-top: 30px;
  }

  .site-footer::before {
    top: -30px;
    height: 54px;
  }

  .site-footer .footer-grid {
    width: min(calc(100% - 28px), 420px);
    grid-template-columns: 1fr;
    gap: 0.9rem;
  }

  .footer-brand,
  .footer-primary-links,
  .footer-community {
    grid-column: 1;
  }

  .site-footer .brand img {
    width: 66px;
    height: 74px;
  }

  .footer-bottom {
    width: min(calc(100% - 28px), 420px);
    margin-top: 0.8rem;
  }
}

@media (forced-colors: active) {
  .site-header .brand-wordmark,
  .footer-copyright,
  .site-footer .brand span {
    color: CanvasText;
    background: none;
    -webkit-text-fill-color: currentColor;
  }
}

/*
 * V126 final visual layer
 * Solid logo-gold wordmark, deeper footer arc, brand-coloured store actions
 * and slightly calmer story rhythm. Theme dimensions and colours stay equal.
 */

/* A single solid colour in every theme and every header state. */
.site-header .brand-wordmark,
.site-header.is-scrolled .brand-wordmark,
.home-page .site-header:not(.is-scrolled) .brand-wordmark,
:root[data-theme="dark"] .site-header .brand-wordmark,
:root[data-theme="dark"] .site-header.is-scrolled .brand-wordmark,
:root[data-theme="dark"] .home-page .site-header:not(.is-scrolled) .brand-wordmark {
  color: #e3c27d;
  background: none;
  -webkit-background-clip: border-box;
  background-clip: border-box;
  -webkit-text-fill-color: #e3c27d;
  font-size: clamp(1.55rem, 2.65vw, 2.05rem);
  font-weight: 1000;
  letter-spacing: 0.045em;
  text-shadow: 0 1px 0 rgba(70, 43, 14, 0.26), 0 2px 7px rgba(24, 37, 27, 0.2);
  filter: none;
}

/* The day icon now uses the same logo-gold colour as the night icon. */
.theme-toggle,
.theme-toggle:hover,
:root[data-theme="dark"] .theme-toggle,
:root[data-theme="dark"] .theme-toggle:hover,
.home-page .site-header.is-scrolled .theme-toggle,
:root[data-theme="dark"] .home-page .site-header.is-scrolled .theme-toggle {
  color: #e3bd69;
}

/* Remove every possible straight separator and mirror the hero's deep arc. */
.site-footer,
:root[data-theme="dark"] .site-footer {
  margin-top: 78px;
  padding-top: 50px;
  border: 0 !important;
  border-top: 0 !important;
  outline: 0;
  box-shadow: none;
}

.site-footer::before,
:root[data-theme="dark"] .site-footer::before {
  top: -66px;
  right: -8%;
  left: -8%;
  width: auto;
  height: 124px;
  border: 0;
  outline: 0;
  border-radius: 50% 50% 0 0 / 70% 70% 0 0;
  box-shadow: none;
}

/* The app title carries the Bahariom gold palette with a horizontal flow. */
.b81-download h2,
:root[data-theme="dark"] .b81-download h2 {
  width: fit-content;
  margin-inline: auto;
  color: #d5ad62;
  background: linear-gradient(
    90deg,
    #9d6c2d 0%,
    #d8ae61 22%,
    #fff0b8 44%,
    #c18d42 66%,
    #efd590 84%,
    #9d6c2d 100%
  );
  background-size: 240% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: v126-logo-gold-flow 5.5s linear infinite;
}

@keyframes v126-logo-gold-flow {
  from { background-position: 0% 50%; }
  to { background-position: 240% 50%; }
}

.b81-store-row .b81-store-bazaar {
  border-color: rgba(38, 181, 75, 0.36);
  box-shadow: 0 5px 0 rgba(38, 181, 75, 0.22), 0 12px 24px rgba(32, 132, 60, 0.1);
}

.b81-store-row .b81-store-myket {
  border-color: rgba(0, 166, 221, 0.38);
  box-shadow: 0 5px 0 rgba(0, 166, 221, 0.22), 0 12px 24px rgba(0, 126, 177, 0.1);
}

.b81-store-row .b81-store-bazaar strong,
:root[data-theme="dark"] .b81-store-row .b81-store-bazaar strong {
  color: #26b54b;
}

.b81-store-row .b81-store-myket strong,
:root[data-theme="dark"] .b81-store-row .b81-store-myket strong {
  color: #00a6dd;
}

.b81-store-row .b81-store-bazaar:hover {
  border-color: #26b54b;
}

.b81-store-row .b81-store-myket:hover {
  border-color: #00a6dd;
}

/* A little more air without turning the one-sheet story into a scroller. */
.story-letter-body p {
  line-height: 1.64;
}

.story-letter-body p + p {
  margin-top: 0.48rem;
}

@media (max-width: 600px) {
  .site-header .brand-wordmark,
  .site-header.is-scrolled .brand-wordmark,
  .home-page .site-header:not(.is-scrolled) .brand-wordmark,
  :root[data-theme="dark"] .site-header .brand-wordmark,
  :root[data-theme="dark"] .site-header.is-scrolled .brand-wordmark {
    font-size: 1.34rem;
  }

  .site-footer,
  :root[data-theme="dark"] .site-footer {
    margin-top: 68px;
    padding-top: 39px;
  }

  .site-footer::before,
  :root[data-theme="dark"] .site-footer::before {
    top: -54px;
    right: -12%;
    left: -12%;
    height: 100px;
    border-radius: 50% 50% 0 0 / 74% 74% 0 0;
  }

  .story-letter-body p {
    line-height: 1.56;
  }

  .story-letter-body p + p {
    margin-top: 0.4rem;
  }
}

@media (max-height: 680px) {
  .story-letter-body p {
    line-height: 1.44;
  }

  .story-letter-body p + p {
    margin-top: 0.22rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .b81-download h2 {
    animation: none;
    background-position: 50% 50%;
  }
}

@media (forced-colors: active) {
  .site-header .brand-wordmark,
  .b81-download h2 {
    color: CanvasText;
    background: none;
    -webkit-text-fill-color: currentColor;
  }
}

/*
 * V127 story-spacing layer
 * Story copy receives more breathing room while the dialog stays a single
 * sheet without inner scroll.
 */

.story-letter-body p {
  line-height: 1.78;
}

.story-letter-body p + p {
  margin-top: 0.64rem;
}

@media (max-width: 600px) {
  .story-letter-body p {
    line-height: 1.66;
  }

  .story-letter-body p + p {
    margin-top: 0.52rem;
  }
}

@media (max-height: 680px) {
  .story-letter-body p {
    line-height: 1.5;
  }

  .story-letter-body p + p {
    margin-top: 0.3rem;
  }
}

/*
 * V130 Dana typography layer
 * Every supplied face has a semantic job: Light for secondary copy, Regular
 * for reading, Medium for navigation, DemiBold for actions and Bold for titles.
 */
body {
  font-weight: 400;
}

.b81-heading p,
.b81-copy p,
.b81-mini p,
.b81-review-track blockquote p,
.story-letter-body p,
.site-footer p {
  font-weight: 300;
}

.site-nav a,
.header-tools button,
.b81-store-row small,
.b81-content-strip span {
  font-weight: 500;
}

.btn,
button,
.b81-name,
.b81-store-row strong,
.b81-content-strip strong {
  font-weight: 600;
}

h1,
h2,
h3,
.b81-feature h3,
.b81-mini h3 {
  font-weight: 700;
}

.site-header .brand-wordmark,
.site-header.is-scrolled .brand-wordmark,
.home-page .site-header:not(.is-scrolled) .brand-wordmark,
:root[data-theme="dark"] .site-header .brand-wordmark,
:root[data-theme="dark"] .site-header.is-scrolled .brand-wordmark,
:root[data-theme="dark"] .home-page .site-header:not(.is-scrolled) .brand-wordmark {
  font-size: clamp(1.72rem, 3vw, 2.28rem);
  font-weight: 700;
  line-height: 1.2;
}

.b81-download h2,
:root[data-theme="dark"] .b81-download h2 {
  font-size: clamp(2.05rem, 4.5vw, 3.15rem);
  font-weight: 700;
  line-height: 1.35;
}

@media (max-width: 600px) {
  .site-header .brand-wordmark,
  .site-header.is-scrolled .brand-wordmark,
  .home-page .site-header:not(.is-scrolled) .brand-wordmark,
  :root[data-theme="dark"] .site-header .brand-wordmark,
  :root[data-theme="dark"] .site-header.is-scrolled .brand-wordmark {
    font-size: 1.5rem;
  }

  .b81-download h2,
  :root[data-theme="dark"] .b81-download h2 {
    font-size: clamp(1.82rem, 8.2vw, 2.28rem);
  }
}

/* V133 cumulative layer retained for compatibility. */
.b81-hero-copy .b81-secondary {
  font-weight: 300;
  color: rgba(255, 255, 255, .78);
}

#download.b81-download,
:root[data-theme="dark"] #download.b81-download {
  grid-template-columns: 1fr;
  justify-items: center;
  text-align: center;
  border: 1px solid #d8b66f;
}

#download .b81-download-copy,
#download .b81-download-actions {
  width: min(100%, 600px);
  margin-inline: auto;
  text-align: center;
}

#download.b81-download h2,
:root[data-theme="dark"] #download.b81-download h2 {
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: .28em;
  color: var(--ink);
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
  -webkit-text-fill-color: currentColor;
  animation: none;
}

#download.b81-download h2 span {
  color: var(--ink);
}

#download.b81-download h2 strong {
  color: #c79a45;
  font: inherit;
}

:root[data-theme="dark"] #download.b81-download h2 span {
  color: var(--ink);
}

:root[data-theme="dark"] #download.b81-download h2 strong {
  color: #e2c17d;
}

@media (max-width: 760px) {
  #python .b81-mini-image img {
    object-position: 64% center;
    transform: none;
  }
}

/* V134 final brand and mobile-footer source of truth. */
.site-header .brand-wordmark,
.site-header.is-scrolled .brand-wordmark,
.home-page .site-header:not(.is-scrolled) .brand-wordmark,
:root[data-theme="dark"] .site-header .brand-wordmark,
:root[data-theme="dark"] .site-header.is-scrolled .brand-wordmark,
:root[data-theme="dark"] .home-page .site-header:not(.is-scrolled) .brand-wordmark {
  display: inline-block;
  direction: rtl;
  white-space: nowrap;
  word-spacing: 0;
  letter-spacing: 0;
  font-kerning: normal;
  font-variant-ligatures: contextual;
  unicode-bidi: isolate;
}

:root[data-theme="dark"] .story-signatures .tree-signature {
  opacity: 1;
  filter: brightness(0) saturate(100%) invert(83%) sepia(30%) saturate(640%) hue-rotate(356deg) brightness(96%) contrast(88%) drop-shadow(0 2px 5px rgba(0, 0, 0, .34));
}

@media (max-width: 600px) {
  .footer-primary-links > h2 {
    display: none;
  }
}
