@font-face {
  font-family: "Lato";
  src: url("../fonts/lato-light.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Lato";
  src: url("../fonts/lato-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Lato";
  src: url("../fonts/lato-bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Lato";
  src: url("../fonts/lato-black.woff2") format("woff2");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Noto Sans Arabic";
  src: url("../fonts/noto-sans-arabic.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Noto Sans Devanagari";
  src: url("../fonts/noto-sans-devanagari.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}
:root {
  --outer-shell: #0a0a0a;
  --page-bg: #191919;
  --surface: #2a2a2a;
  --bar: #121212;
  --session-bar: #000;
  --accent: #ffca28;
  --accent-hover: #ffd45c;
  --accent-wash: rgba(255, 202, 40, 0.18);
  --text: #fff;
  --muted: #b0b0b0;
  --idle: #a0a0a0;
  --hair: #3a3a3a;
  --ink: #191919;
  --edge-gold: #897433;
  --backdrop: rgba(0, 0, 0, 0.52);
  --overlay: rgba(42, 42, 42, 0.65);
  --deep-shadow: 0 28px 64px rgba(0, 0, 0, 0.55);
  --radius-panel: 20px;
  --radius-control: 999px;
  --header-height-app: 72px;
  --dark_theme_text_color: var(--text);
  --dark_theme_background_color: var(--page-bg);
  --hyperlink_color: var(--accent);
  --button_background_color: var(--accent);
  --hover_color: var(--accent-hover);
  --blog_header_color: var(--text);
  --blog_image_text_color: var(--accent);
}

* {
  font-family: "Lato", Arial, sans-serif;
}

html[lang^="ar"] *,
html[lang^="fa"] * {
  font-family: "Noto Sans Arabic", "Lato", sans-serif;
}
html[lang^="hi"] * {
  font-family: "Noto Sans Devanagari", "Lato", sans-serif;
}
html[lang^="zh"] * {
  font-family: "Noto Sans SC", "Lato", sans-serif;
}

body.app-redesign {
  background: var(--page-bg);
  color: var(--text);
  font-weight: 400;
  min-height: 100vh;
  min-height: 100dvh;
}

/* Prevent fixed-header horizontal jump when scrollbars appear/disappear */
html {
  scrollbar-gutter: stable;
}

.app-redesign main {
  background: var(--page-bg);
  width: 100%;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.skip-link {
  position: fixed;
  inset-block-start: 0.75rem;
  inset-inline-start: 0.75rem;
  z-index: 20000;
  padding: 0.65rem 1rem;
  border-radius: var(--radius-control);
  background: var(--accent);
  color: var(--ink);
  font-weight: 700;
  transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(0); }

a:focus-visible,
button:focus-visible,
select:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

/* App bar — solid + fixed so page fades / scrollbar changes never nudge it */
body.app-redesign .app-header.header {
  position: fixed;
  top: 0;
  inset-inline: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: var(--header-height-app);
  min-height: var(--header-height-app);
  max-height: var(--header-height-app);
  margin: 0;
  padding: 0;
  z-index: 1100;
  background: #121212;
  border-bottom: 1px solid var(--hair);
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transform: none;
}
.app-header .header-content {
  width: min(1180px, calc(100% - 2rem));
  max-width: none;
  height: 100%;
  margin-inline: auto;
  padding: 0;
  /* Equal side columns keep center nav fixed regardless of logo/lang width */
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 1.5rem;
  flex-direction: unset;
}
.app-header .logo,
.app-header .nav-shell,
.app-header .header_nav_menu,
.app-header .language-picker,
.app-header .nav-toggle {
  align-self: center;
}
.app-header .nav-shell {
  display: flex;
  align-items: center;
  justify-content: center;
  justify-self: center;
  grid-column: 2;
  position: relative;
  height: 100%;
  margin: 0;
}
.app-header .logo {
  display: flex;
  align-items: center;
  justify-self: start;
  min-width: 0;
  height: 100%;
  margin: 0;
  line-height: 1;
}
.brand-link {
  display: inline-flex;
  align-items: center;
  height: 100%;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
  line-height: 1;
}
.brand-name {
  display: inline-flex;
  align-items: center;
  font-size: 1.386rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1;
}
.brand-name span {
  display: inline-block;
  margin: 0;
  letter-spacing: inherit;
  line-height: 1;
  /* opacity-only; never animate transform/width */
  animation: brandLetterFade 0.15s cubic-bezier(0.19, 1, 0.22, 1) 1 calc(0.2s + var(--index) * 0.03s) forwards;
  opacity: 1;
}
.brand-name span.space {
  display: inline-block;
  width: 0.22em;
  margin-inline: 0;
  letter-spacing: 0;
  overflow: hidden;
}
@keyframes brandLetterFade {
  0% { opacity: 1; }
  50% { opacity: 0.3; }
  100% { opacity: 1; }
}
.brand-name.brand-name--static span,
html.brand-static .brand-name span {
  animation: none !important;
  opacity: 1 !important;
}
.app-header .header_nav_menu {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  margin: 0;
}
.app-header .header_nav_menu ul {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
  height: 100%;
}
.app-header .header_nav_menu a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.25rem;
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-control);
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
}
.app-header .header_nav_menu a:hover,
.app-header .header_nav_menu a[aria-current="page"] {
  color: var(--text);
  background: var(--accent-wash);
}
.app-header .header_nav_menu a[aria-current="page"]::after { display: none; }
/* Language pill — face is flex-centered; native select is an invisible hit target */
.language-picker {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: end;
  align-self: center;
  grid-column: 3;
  min-width: 7.75rem;
  width: max-content;
  max-width: 100%;
  height: 2.25rem;
  min-height: 2.25rem;
  box-sizing: border-box;
  padding: 0 0.75rem;
  border: 1px solid var(--hair);
  border-radius: var(--radius-control);
  color: var(--accent);
  background: var(--surface);
  direction: ltr;
  unicode-bidi: isolate;
  line-height: 1;
  overflow: hidden;
  cursor: pointer;
}
.language-picker-face {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  height: 100%;
  pointer-events: none;
}
.language-picker-globe {
  flex-shrink: 0;
  width: 15px;
  height: 15px;
  display: block;
}
.language-picker-label {
  display: block;
  color: var(--text);
  font-size: 0.79rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  transition: opacity 280ms ease-in-out;
}
.language-picker-label.is-fading {
  opacity: 0;
}
.language-picker select {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  opacity: 0;
  cursor: pointer;
  appearance: none;
  background: transparent;
  font-size: 1rem;
}
.language-picker.is-lang-flashing {
  border-color: var(--edge-gold);
  box-shadow: 0 0 0 1px rgba(255, 202, 40, 0.25);
}
.language-picker select option { background: var(--surface); color: var(--text); }
html[dir="rtl"] .language-picker {
  flex-direction: row;
}
.nav-toggle { display: none; }

/* Hero */
.app-redesign .hero {
  min-height: calc(100svh - var(--header-height-app));
  height: auto;
  padding: calc(var(--header-height-app) + clamp(2.5rem, 6vw, 5.5rem)) 1rem 4rem;
  background: var(--page-bg);
}
.app-redesign .hero-content {
  width: min(1240px, 100%);
  margin-inline: auto;
}
.app-redesign .danko-demo {
  direction: ltr;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(1080px, 100%);
  margin: 0.75rem auto 0;
  padding: clamp(1.25rem, 3vw, 2.25rem);
  border: 1px solid var(--edge-gold);
  border-radius: var(--radius-panel);
  background: var(--surface);
  box-shadow: var(--deep-shadow);
}
.app-redesign .demo-person {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  z-index: 2;
}
.app-redesign .demo-person .person-label {
  margin-top: 0.45rem;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  opacity: 1;
  transition: opacity 280ms ease;
}
.app-redesign .demo-person svg path:first-child { fill: #5b5b5b; }
.app-redesign .demo-person svg circle { fill: #707070; }
.app-redesign .demo-person svg rect:last-child { fill: var(--accent); opacity: 0.45 !important; }
.app-redesign .demo-translation-area {
  position: relative;
  flex: 1;
  min-width: 180px;
  height: 180px;
  overflow: visible;
}
.app-redesign .flow-paths {
  overflow: visible;
}
.app-redesign .flow-paths ellipse {
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}
.app-redesign .flow-paths-base {
  stroke: rgba(255, 202, 40, 0.16) !important;
}
.app-redesign .flow-paths-dash {
  stroke: rgba(255, 202, 40, 0.34) !important;
}

/* Flowing arc bubbles — dark surfaces for amber text contrast */
.app-redesign .text-bubble {
  display: grid;
  place-items: center;
  z-index: 5;
}
.app-redesign .text-bubble .text-source,
.app-redesign .text-bubble .text-target {
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--hair);
  border-radius: var(--radius-control);
  background: #121212;
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1.35;
  white-space: nowrap;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
}
.app-redesign .text-bubble .text-target {
  border-color: var(--edge-gold);
  background: #000000;
  color: var(--accent);
}

/* Clean circular Danko app icon — shell centered on the ellipse midpoint */
.app-redesign .danko-badge {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  display: grid;
  place-items: center;
  width: fit-content;
  height: fit-content;
  margin: 0;
  padding: 0;
  background: none;
  border: none;
  box-shadow: none;
  pointer-events: none;
}
body.app-redesign .danko-icon-shell {
  display: grid;
  place-items: center;
  box-sizing: border-box;
  width: 84px;
  height: 84px;
  padding: 8px;
  border: 1px solid var(--edge-gold);
  border-radius: 50%;
  background: var(--bar);
  box-shadow: none;
}
body.app-redesign .danko-logo {
  width: 64px !important;
  height: 64px !important;
  object-fit: contain !important;
  object-position: 50% 48% !important; /* optical center for fist-bump mark */
  border-radius: 50% !important;
  box-shadow: none !important;
}
.app-redesign .danko-badge-label {
  position: absolute;
  top: calc(100% + 0.35rem);
  left: 50%;
  transform: translateX(-50%);
  display: block;
  width: max-content;
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-align: center;
  text-indent: 0.14em; /* optical center with letter-spacing */
  text-transform: uppercase;
  opacity: 1;
  white-space: nowrap;
}
.danko-tagline {
  display: grid;
  gap: 0.1rem;
  margin: 1.5rem auto 1.1rem;
  color: var(--text);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
}
.app-redesign .store-buttons {
  gap: 0.75rem;
  margin-top: 1.15rem;
  animation: fadeInUp 0.9s ease-out 2.45s both;
}
html.home-intro-done .danko-tagline,
html.home-intro-done .app-redesign .how-to-cta-wrap,
html.home-intro-done .app-redesign .store-buttons,
html.home-intro-done .store-buttons {
  animation: none !important;
  opacity: 1 !important;
  transform: none !important;
}
.app-redesign .store-badge {
  border: 1px solid var(--hair);
  border-radius: var(--radius-control);
  background: var(--bar);
  color: var(--text);
}
.app-redesign .store-badge:hover { border-color: var(--edge-gold); transform: translateY(-2px); }

/* How-to CTA fades in after the tagline (tagline: 0.8s delay + 1s) */
.app-redesign .how-to-cta-wrap {
  display: grid;
  justify-items: center;
  gap: 0.45rem;
  margin: 0 auto;
  animation: fadeInUp 0.9s ease-out 1.9s both;
}
body.app-redesign .how-to-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 52px;
  margin: 0;
  padding: 0.8rem 1.5rem;
  border: 1.5px solid var(--accent);
  border-radius: var(--radius-control);
  background: transparent;
  color: var(--accent);
  text-decoration: none;
  cursor: pointer;
  animation: none;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}
body.app-redesign .how-to-cta:hover,
body.app-redesign .how-to-cta:focus-visible {
  background: var(--accent-wash);
  color: var(--accent);
  text-decoration: none;
  outline: none;
  transform: translateY(-1px);
}
.app-redesign .how-to-cta-play {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--ink);
  flex-shrink: 0;
}
.app-redesign .how-to-cta-label {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.app-redesign .how-to-cta-hint {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 400;
  text-align: center;
}

/* Sheets and modals — animate blur on the backdrop itself (not via parent opacity) */
.how-to-modal-backdrop,
.modal-backdrop { background: var(--backdrop); }
.app-redesign .how-to-modal {
  opacity: 1;
  transition: none;
}
.app-redesign .how-to-modal-backdrop {
  background: rgba(0, 0, 0, 0);
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  opacity: 1;
  transition:
    background-color 0.5s ease,
    backdrop-filter 0.5s ease,
    -webkit-backdrop-filter 0.5s ease;
}
.app-redesign .how-to-modal.is-open .how-to-modal-backdrop {
  background: rgba(0, 0, 0, 0.52);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.app-redesign .how-to-modal-dialog {
  transition: opacity 0.45s ease, transform 0.45s ease;
}
.how-to-modal-dialog,
.modal-dialog {
  background: var(--surface);
  border: 1px solid var(--edge-gold);
  border-radius: var(--radius-panel);
  color: var(--text);
  box-shadow: var(--deep-shadow);
}
.how-to-lang-btn,
.store-choice {
  border: 1px solid var(--hair);
  border-radius: var(--radius-control);
  background: var(--bar);
  color: var(--text);
  font-weight: 700;
}
.how-to-lang-btn:hover,
.how-to-lang-btn:focus-visible,
.store-choice:hover,
.store-choice:focus-visible {
  border-color: var(--accent);
  background: var(--accent-wash);
  color: var(--accent);
}
.how-to-modal-close:hover,
.how-to-modal-close:focus-visible,
.how-to-back { color: var(--accent); }
/* X opposite text start: right in LTR, left in RTL */
body.app-redesign .how-to-modal-close {
  top: 0.5rem;
  right: auto;
  left: auto;
  inset-inline-end: 0.65rem;
  inset-inline-start: auto;
  display: grid;
  place-items: center;
}
.app-redesign .how-to-back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  line-height: 1;
  padding: 0.35rem 0;
}
.app-redesign .how-to-back-icon {
  display: block;
  flex-shrink: 0;
  width: 1em;
  height: 1em;
  /* optical align with cap-height of label text */
  transform: translateY(0.02em);
}
.app-redesign .how-to-back-label {
  line-height: 1.2;
}
html[dir="rtl"] .app-redesign .how-to-back-icon {
  transform: translateY(0.02em) scaleX(-1);
}
.modal-shell[hidden] { display: none; }
.modal-shell {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: 1rem;
  opacity: 0;
  transition: opacity 260ms ease;
}
.modal-shell.is-open { opacity: 1; }
.modal-backdrop { position: absolute; inset: 0; }
.modal-dialog {
  position: relative;
  z-index: 1;
  width: min(92vw, 520px);
  padding: 2rem;
  text-align: center;
  transform: translateY(10px) scale(0.98);
  transition: transform 260ms ease;
}
.modal-shell.is-open .modal-dialog { transform: none; }
.modal-dialog h2 { margin: 0 2rem 0.35rem; color: var(--text); }
.modal-dialog p { margin: 0 0 1.25rem; color: var(--muted); }
.modal-close {
  position: absolute;
  inset-block-start: 0.65rem;
  inset-inline-end: 0.75rem;
  width: 38px;
  height: 38px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 1.75rem;
  cursor: pointer;
}
.store-choice-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.store-choice { padding: 0.85rem 1rem; text-decoration: none; }
.modal-open { overflow: hidden; }

/* Inner pages */
.app-redesign .non_home_page-content.parent_div {
  width: 100%;
  min-height: calc(100svh - var(--header-height-app));
  padding: calc(var(--header-height-app) + clamp(1.25rem, 3vw, 2.5rem)) 1rem 3rem;
  background: var(--page-bg);
  display: block;
}
.app-redesign .non_home_page-content.article,
.app-redesign .non_home_page-content.list_article {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  width: min(820px, 100%);
  margin-inline: auto;
  padding: clamp(1.75rem, 4vw, 3.25rem) clamp(1.25rem, 4vw, 3rem);
  border: 1px solid var(--hair);
  border-radius: var(--radius-panel);
  background: var(--surface);
  box-shadow: var(--deep-shadow);
}
.app-redesign .non_home_page-content.article_content_gap {
  display: none;
}
.app-redesign .non_home_page-content.title {
  display: block;
  width: 100%;
  margin: 0 0 0.35rem;
  color: var(--text);
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1.05;
  text-align: start;
}
.app-redesign .non_home_page-content.content,
.app-redesign .non_home_page-content.list_content {
  width: 100%;
  max-width: 68ch;
  margin-inline: auto;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.75;
  justify-content: flex-start;
  text-align: start;
  align-items: stretch;
}
.app-redesign .non_home_page-content.list_content.list_item,
.app-redesign .non_home_page-content.list_item {
  justify-content: flex-start;
  text-align: start;
  align-items: stretch;
}
.app-redesign .blog-list-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.39rem 0.53rem; /* 30% tighter than prior 0.55 / 0.75 */
}
.app-redesign .blog-list-item .hyperlink {
  line-height: 1.3;
}
.app-redesign .blog-list-note {
  display: inline-flex;
  align-items: center;
  margin: 0;
  color: var(--idle);
  font-size: 0.88rem;
  font-weight: 400;
  line-height: 1.35;
}
.app-redesign .non_home_page-content.content h2,
.app-redesign .non_home_page-content.content h3 {
  margin-block: 2rem 0.75rem;
  color: var(--text);
  text-align: start;
}
.app-redesign .non_home_page-content.content p,
.app-redesign .non_home_page-content.content li {
  text-align: start;
}
.app-redesign .non_home_page-content.content ul,
.app-redesign .non_home_page-content.content ol {
  margin-inline-start: 1.25rem !important;
  margin-inline-end: 0 !important;
  padding-inline-start: 1.25rem !important;
  padding-inline-end: 0 !important;
  list-style-position: outside;
  list-style-type: disc;
}
.app-redesign .non_home_page-content.content ul ul,
.app-redesign .non_home_page-content.content ol ol {
  margin-inline-start: 1rem !important;
  padding-inline-start: 1rem !important;
}
html[dir="rtl"] .app-redesign .non_home_page-content.content,
html[dir="rtl"] .app-redesign .non_home_page-content.content ul,
html[dir="rtl"] .app-redesign .non_home_page-content.content ol,
html[dir="rtl"] .app-redesign .non_home_page-content.content li {
  direction: rtl;
}
.app-redesign .non_home_page-content.content strong { color: var(--text); }
.app-redesign .non_home_page-content.content a,
.app-redesign .non_home_page-content.hyperlink { color: var(--accent); }
.app-redesign .non_home_page-content.content hr { border-color: var(--hair); }
.app-redesign .list_item {
  padding: 1rem 0;
  border-bottom: 1px solid var(--hair);
  color: var(--idle);
}
.legal-language-notice {
  display: grid;
  gap: 0.35rem;
  max-width: 68ch;
  width: 100%;
  margin: 1.75rem 0 1.5rem;
  padding: 1.15rem 1.2rem;
  border: 1px solid var(--edge-gold);
  border-radius: 14px;
  background: var(--accent-wash);
  color: var(--text);
  line-height: 1.55;
  box-sizing: border-box;
}
.legal-language-notice strong { color: var(--accent); }
.error-page { text-align: center; }
.error-code {
  margin: 0;
  color: var(--accent);
  font-size: clamp(4rem, 14vw, 8rem);
  font-weight: 900;
  line-height: 0.9;
}
.error-page .non_home_page-content.title { margin-block: 1rem 2rem; text-align: center; }
.error-home { display: inline-flex; align-items: center; text-decoration: none; }

/* Poster */
.poster-redirect {
  min-height: 100svh;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 1rem;
  padding: 2rem;
  background: var(--page-bg);
  color: var(--text);
  text-align: center;
}
.poster-redirect a {
  padding: 0.8rem 1.25rem;
  border-radius: var(--radius-control);
  background: var(--accent);
  color: var(--ink);
  font-weight: 900;
}

/* Footer */
.app-redesign .footer {
  background: var(--bar);
  border-top: 1px solid var(--hair);
  color: var(--muted);
  padding: 1.35rem 1.25rem calc(1.5rem + env(safe-area-inset-bottom, 0px));
  box-shadow: none;
  position: relative;
  z-index: 1;
}
.app-redesign .footer-content {
  display: grid;
  justify-items: center;
  gap: 1rem;
  max-width: min(1180px, 100%);
  margin-inline: auto;
}
.app-redesign .footer-social {
  margin: 0;
  gap: 1.1rem;
}
.app-redesign .footer-social a { color: var(--idle); }
.app-redesign .footer-social a:hover,
.app-redesign .footer-social a:focus-visible { color: var(--accent); }
.app-redesign .footer-social svg { fill: currentColor !important; }
.app-redesign .footer p {
  margin: 0;
  max-width: 52ch;
  color: var(--idle);
  font-size: 0.88rem;
  line-height: 1.45;
  text-wrap: balance;
}

html[dir="rtl"] .how-to-back { direction: rtl; }
html[dir="rtl"] .danko-demo,
html[dir="rtl"] .store-buttons,
html[dir="rtl"] .brand-link { direction: ltr; unicode-bidi: isolate; }

@media (max-width: 767px) {
  body.app-redesign .app-header.header {
    padding: 0;
    height: var(--header-height-app);
    max-height: var(--header-height-app);
    overflow: visible;
  }
  .app-header .header-content {
    grid-template-columns: minmax(0, 1fr) auto auto;
    width: min(100% - 1rem, 1180px);
    gap: 0.55rem;
    flex-direction: unset;
    overflow: visible;
  }
  .app-header .logo {
    grid-column: 1;
    grid-row: 1;
    display: flex;
    align-items: center;
    height: 100%;
  }
  .brand-name {
    display: inline-flex;
    align-items: center;
    font-size: 1.166rem;
    max-width: 52vw;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1;
  }
  .nav-shell {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
    position: relative;
    z-index: 1101;
  }
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin: 0;
    padding: 0;
    border: 1px solid var(--hair);
    border-radius: 50%;
    background: var(--surface);
    color: var(--text);
    z-index: 1101;
    -webkit-appearance: none;
    appearance: none;
    transition: background 180ms ease, border-color 180ms ease;
  }
  .nav-toggle-icon {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    width: 18px;
    height: 14px;
    pointer-events: none;
  }
  .nav-toggle-icon > span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: currentColor;
    flex: 0 0 auto;
    transform-origin: center;
    transition: transform 220ms ease, opacity 160ms ease;
  }
  .nav-toggle[aria-expanded="true"] .nav-toggle-icon > span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }
  .nav-toggle[aria-expanded="true"] .nav-toggle-icon > span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
  }
  .nav-toggle[aria-expanded="true"] .nav-toggle-icon > span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }
  /* Full-width strip under header (content height only — not a full-screen fill) */
  .app-header .header_nav_menu {
    position: fixed;
    top: var(--header-height-app);
    left: 0;
    right: 0;
    inset-inline: 0;
    inset-block-start: var(--header-height-app);
    z-index: 1090;
    grid-column: unset;
    grid-row: unset;
    display: block;
    width: 100%;
    max-width: none;
    height: auto;
    max-height: none;
    margin: 0;
    padding: 0.85rem 1rem 1.15rem;
    background: #121212;
    border: 0;
    border-bottom: 1px solid var(--hair);
    border-radius: 0;
    box-shadow: none;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-0.4rem);
    transition:
      opacity 0.28s ease,
      transform 0.28s ease,
      visibility 0.28s ease;
  }
  .app-header .header_nav_menu.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }
  .app-header .header_nav_menu ul {
    display: grid;
    gap: 0.35rem;
  }
  .app-header .header_nav_menu a {
    display: flex;
    justify-content: center;
    width: 100%;
    padding: 0.85rem 1rem;
    white-space: nowrap;
  }
  .language-picker {
    grid-column: 3;
    grid-row: 1;
    align-self: center;
    justify-content: center;
    min-width: 6.5rem;
    width: max-content;
    height: 42px;
    min-height: 42px;
    padding: 0 0.55rem;
  }
  .language-picker-globe {
    width: 14px;
    height: 14px;
  }
  .language-picker-label {
    font-size: 0.66rem;
  }
  body.nav-open {
    /* Do not lock/blank the page behind the menu strip */
    overflow: visible;
  }
  .app-redesign .person-svg { width: 72px; height: 108px; }
  .app-redesign .demo-translation-area { min-width: 110px; height: 140px; }
  body.app-redesign .danko-icon-shell { width: 64px; height: 64px; padding: 7px; }
  body.app-redesign .danko-logo { width: 48px !important; height: 48px !important; }
  /* Keep DANKO label inside the demo panel on small screens */
  .app-redesign .danko-demo {
    margin-top: 0.35rem;
    padding: 0.85rem 0.75rem 1.65rem;
    overflow: hidden;
  }
  .app-redesign .danko-badge {
    top: 46%;
  }
  .app-redesign .danko-badge-label {
    top: calc(100% + 0.15rem);
    font-size: 0.62rem;
    letter-spacing: 0.1em;
    text-indent: 0.1em;
  }
  .app-redesign .demo-person .person-label {
    font-size: 0.75rem;
    max-width: 4.5rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .app-redesign .text-bubble .text-source,
  .app-redesign .text-bubble .text-target {
    font-size: 0.7rem;
    padding: 0.3rem 0.65rem;
  }
  body.app-redesign .how-to-cta {
    min-height: 44px;
    padding: 0.6rem 1.1rem;
  }
  .app-redesign .how-to-cta-label { font-size: 0.95rem; }
  .app-redesign .how-to-cta-hint { font-size: 0.82rem; padding-inline: 0.75rem; }
  .app-redesign .hero { padding-top: calc(var(--header-height-app) + 1.5rem); }
  .store-choice-actions { grid-template-columns: 1fr; }
  .app-redesign .non_home_page-content.article,
  .app-redesign .non_home_page-content.list_article {
    padding: 1.75rem 1.25rem;
  }
}

/* Scale hero up on large / ultrawide monitors instead of floating a narrow column */
@media (min-width: 1400px) {
  .app-header .header-content {
    width: min(1360px, calc(100% - 3rem));
  }
  .app-redesign .hero-content {
    width: min(1360px, 94vw);
  }
  .app-redesign .danko-demo {
    width: min(1200px, 92vw);
    padding: clamp(1.75rem, 2.5vw, 2.75rem);
  }
  .app-redesign .demo-translation-area {
    min-width: 260px;
    height: 220px;
  }
  .app-redesign .person-svg {
    width: 118px;
    height: 177px;
  }
  body.app-redesign .danko-icon-shell {
    width: 96px;
    height: 96px;
  }
  body.app-redesign .danko-logo {
    width: 76px !important;
    height: 76px !important;
  }
  .danko-tagline {
    font-size: clamp(1.2rem, 1.35vw, 1.45rem);
  }
}

@media (min-width: 1800px) {
  .app-header .header-content {
    width: min(1560px, calc(100% - 4rem));
  }
  .app-redesign .hero-content {
    width: min(1520px, 90vw);
  }
  .app-redesign .danko-demo {
    width: min(1340px, 88vw);
  }
  .app-redesign .demo-translation-area {
    min-width: 300px;
    height: 250px;
  }
  .app-redesign .person-svg {
    width: 132px;
    height: 198px;
  }
  body.app-redesign .danko-icon-shell {
    width: 104px;
    height: 104px;
  }
  body.app-redesign .danko-logo {
    width: 84px !important;
    height: 84px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .app-redesign .danko-demo.is-reduced-motion .text-bubble {
    animation: none !important;
    opacity: 0;
  }
  .app-redesign .danko-demo.is-reduced-motion .text-bubble--top:first-of-type {
    left: 50%;
    top: 12%;
    opacity: 1;
  }
  .app-redesign .danko-demo.is-reduced-motion .text-bubble--top:first-of-type .text-source {
    opacity: 0 !important;
    animation: none !important;
  }
  .app-redesign .danko-demo.is-reduced-motion .text-bubble--top:first-of-type .text-target {
    opacity: 1 !important;
    animation: none !important;
  }
}
