/* ============================================================
   Yo'lDosh landing — hand-written CSS port of the Flutter landing.
   Tokens mirror yd_client/lib/shared/theme (light/dark), resolved
   in the 2026-07-27 pixel spec. Theme is driven by html[data-theme],
   set pre-paint by the boot script in main.server.dart.
   ============================================================ */

:root {
  /* light theme (default) */
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-default: #1e293b;
  --icon-primary: #0f172a;
  --icon-secondary: #334155;
  --stroke-light: #e2e8f0;
  --stroke-strong: #334155;
  --shadow-card: 0 4px 10px rgba(51, 65, 85, 0.016);
  --shadow-search: 0 4px 10px rgba(226, 232, 240, 0.016);
  --shadow-news: 0 4px 10px rgba(0, 0, 0, 0.04);
  --hero-scrim-edge: rgba(248, 250, 252, 0.196);
  --hero-scrim-mid: rgba(255, 255, 255, 0);
  --menu-hover: rgba(15, 23, 42, 0.06);
  --hero-h: 60vh;
}

html[data-theme='dark'] {
  --bg-primary: #000000;
  --bg-secondary: #1c1c1e;
  --text-primary: #ffffff;
  --text-secondary: #c2c2ca;
  --text-default: #f1f5f9;
  --icon-primary: #f8fafc;
  --icon-secondary: #e2e8f0;
  --stroke-light: #212326;
  --stroke-strong: #cbd5e1;
  --shadow-card: 0 4px 10px rgba(203, 213, 225, 0.016);
  --shadow-search: 0 4px 10px rgba(33, 35, 38, 0.016);
  --hero-scrim-edge: rgba(28, 28, 30, 0.196);
  --hero-scrim-mid: rgba(0, 0, 0, 0);
  --menu-hover: rgba(248, 250, 252, 0.08);
}

/* ---------- base ---------- */

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
}

body {
  background: var(--bg-primary);
  color: var(--text-default);
  font-family: 'Roboto', sans-serif;
  font-size: 14px;
  line-height: 20px;
}

h1,
h2,
h3,
p {
  margin: 0;
}

button {
  font: inherit;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: inherit;
}

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

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

/* Material Symbols glyphs */
.ms {
  font-family: 'Material Symbols Outlined';
  font-weight: normal;
  font-style: normal;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  flex: none;
  color: var(--icon-primary);
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

.ms-fill {
  font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* theme-dependent images */
.only-dark {
  display: none;
}

html[data-theme='dark'] .only-dark {
  display: block;
}

html[data-theme='dark'] .only-light {
  display: none;
}

/* theme-toggle icon/label: show the variant of the *chosen mode* */
.t-system,
.t-light,
.t-dark {
  display: none !important;
}

html[data-theme-mode='system'] .t-system,
html[data-theme-mode='light'] .t-light,
html[data-theme-mode='dark'] .t-dark {
  display: inline-block !important;
}

/* ResponsiveCenter: max-width per size class + 20px gutters */
.container {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  padding: 0 20px;
}

@media (min-width: 600px) {
  .container {
    max-width: 880px;
  }
  :root {
    --hero-h: 72vh;
  }
}

@media (min-width: 960px) {
  .container {
    max-width: 1180px;
  }
  :root {
    --hero-h: 80vh;
  }
}

@media (min-width: 1440px) {
  .container {
    max-width: 1440px;
  }
  :root {
    --hero-h: 85vh;
  }
}

/* horizontal scroller (no visible scrollbar, like Flutter) */
.lp-hscroll {
  display: flex;
  width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
}

.lp-hscroll::-webkit-scrollbar {
  display: none;
}

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

.lp-header {
  color: var(--text-primary);
}

.lp-tools {
  display: flex;
  align-items: center;
  padding: 8px 16px 8px 0;
}

.lp-tools-notice {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
  color: var(--text-primary);
}

.lp-tool-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  font-size: 12px;
  line-height: 16px;
  color: var(--text-primary);
}

.lp-theme-toggle {
  margin-left: 12px;
}

.lp-theme-toggle .timg {
  width: 16px;
  height: 16px;
}

/* sun/moon/auto svgs are dark strokes — invert them in dark theme */
html[data-theme='dark'] .lp-theme-toggle .timg {
  filter: invert(1);
}

.lp-header-main {
  display: flex;
  align-items: center;
  padding: 12px 0;
}

.lp-logo {
  flex: none;
  margin-right: 32px;
}

.lp-logo img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.lp-nav {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 16px;
  row-gap: 8px;
  margin-right: 16px;
}

.lp-nav-btn {
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  color: var(--text-primary);
  padding: 4px 0;
}

/* ---------- dropdowns (CSS-only, :focus-within) ---------- */

.lp-dd {
  position: relative;
}

.lp-dd-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: -50px;
  z-index: 30;
  min-width: 220px;
  max-width: 300px;
  padding: 8px 0;
  background: var(--bg-secondary);
  border: 1px solid var(--stroke-light);
  border-radius: 12px;
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.19), 0 3px 6px rgba(0, 0, 0, 0.1);
}

/* :hover keeps the menu usable in Safari, where links don't take focus on
   click and :focus-within alone would close the menu before navigation. */
.lp-dd:focus-within .lp-dd-menu,
.lp-dd:hover .lp-dd-menu {
  display: block;
}

.lp-nav-menu a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 24px;
  font-size: 14px;
  line-height: 20px;
  color: var(--text-primary);
  white-space: nowrap;
}

.lp-nav-menu a:hover {
  background: var(--menu-hover);
}

.lp-lang {
  margin-left: 12px;
}

.lp-lang-menu {
  left: auto;
  right: 0;
  min-width: 140px;
}

.lp-lang-menu a {
  display: block;
  padding: 10px 16px;
  font-size: 12px;
  line-height: 16px;
  color: var(--text-primary);
}

.lp-lang-menu a:hover,
.lp-lang-menu a.active {
  background: var(--menu-hover);
}

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

.lp-hero {
  position: relative;
  height: var(--hero-h);
  margin-bottom: 44px;
  background: var(--bg-primary);
}

.lp-hero-media {
  position: absolute;
  inset: 0;
  margin: 0 auto;
  width: 100%;
  max-width: calc(var(--hero-h) * 21 / 9);
  overflow: hidden;
}

.lp-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.lp-hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    var(--hero-scrim-edge) 0%,
    var(--hero-scrim-mid) 20%,
    var(--hero-scrim-mid) 80%,
    var(--hero-scrim-edge) 100%
  );
}

.lp-hero-header {
  position: relative;
  z-index: 10;
}

/* ---------- category tabs ---------- */

.lp-tabs {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -36px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  padding: 0 20px;
}

.lp-tabs-pill {
  display: flex;
  align-items: center;
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 12px 20px;
  background: var(--bg-secondary);
  border: 1px solid var(--stroke-light);
  border-radius: 16px;
}

.lp-tabs-pill::-webkit-scrollbar {
  display: none;
}

.lp-tab {
  flex: none;
  padding: 8px 12px;
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  white-space: nowrap;
}

.lp-tab.selected {
  font-weight: 700;
}

.lp-tabs-divider {
  flex: none;
  width: 1px;
  height: 32px;
  margin: 0 12px;
  background: var(--stroke-light);
}

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

.lp-sections {
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding-bottom: 40px;
}

.lp-sections h2 {
  font-size: 24px;
  line-height: 32px;
  font-weight: 700;
}

/* search */

.lp-search h2 {
  margin-bottom: 8px;
}

.lp-search-box {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  background: var(--bg-secondary);
  border: 1px solid var(--stroke-light);
  border-radius: 12px;
  box-shadow: var(--shadow-search);
}

.lp-search-box > .ms {
  color: var(--icon-secondary);
}

.lp-search-hint {
  flex: 1;
  margin-left: 12px;
  color: var(--text-secondary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lp-search-params {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: none;
  padding: 8px 12px;
  background: var(--bg-secondary);
  border: 1px solid var(--stroke-strong);
  border-radius: 10px;
  font-size: 12px;
  line-height: 16px;
}

/* promo cards */

.lp-promo h2 {
  margin-bottom: 16px;
}

.lp-promo-row {
  padding-left: 8px;
  gap: 12px;
}

.lp-promo-card {
  flex: none;
  display: flex;
  flex-direction: column;
  width: 220px;
  height: 220px;
  padding: 8px;
  background: var(--bg-secondary);
  border: 1px solid var(--stroke-light);
  border-radius: 12px;
  box-shadow: var(--shadow-card);
}

.lp-promo-img {
  flex: 1;
  min-height: 0;
  border-radius: 10px;
  overflow: hidden;
}

.lp-promo-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lp-promo-label {
  margin-top: 8px;
  padding: 4px;
  font-weight: 600;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* map / branches */

.lp-map {
  padding: 20px;
  background: var(--bg-secondary);
  border: 1px solid var(--stroke-light);
  border-radius: 16px;
  box-shadow: var(--shadow-card);
}

.lp-map h3 {
  font-size: 16px;
  line-height: 22px;
  font-weight: 700;
  margin-bottom: 8px;
}

.lp-map-subtitle {
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.lp-map-img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 16px;
}

.lp-branches {
  display: flex;
  gap: 16px;
}

.lp-branch {
  flex: 1;
  padding: 12px;
  background: var(--bg-primary);
  border: 1px solid var(--stroke-light);
  border-radius: 8px;
}

.lp-branch-title {
  font-weight: 600;
  margin-bottom: 4px;
}

.lp-branch-row {
  display: flex;
  align-items: flex-start;
  gap: 4px;
  margin-top: 4px;
  font-size: 12px;
  line-height: 16px;
  color: var(--text-secondary);
}

.lp-branch-row .ms {
  color: var(--icon-secondary);
}

/* news */

.lp-news h3 {
  font-size: 16px;
  line-height: 22px;
  font-weight: 500;
  margin-bottom: 12px;
}

.lp-news-row {
  gap: 12px;
}

.lp-news-card {
  flex: none;
  display: flex;
  flex-direction: column;
  width: 340px;
  height: 280px;
  padding: 16px 8px;
  background: var(--bg-secondary);
  border: 1px solid var(--stroke-light);
  border-radius: 12px;
  box-shadow: var(--shadow-news);
}

.lp-news-title {
  flex: 1;
  font-weight: 600;
}

.lp-news-date {
  margin-top: 4px;
  font-size: 12px;
  line-height: 16px;
  color: var(--text-secondary);
}

.lp-news-img {
  margin-top: 8px;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  overflow: hidden;
}

.lp-news-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* download */

.lp-download {
  background: var(--bg-secondary);
  border: 1px solid var(--stroke-light);
  border-radius: 16px;
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.lp-download img {
  width: 100%;
  border-radius: 12px;
}

/* contact */

.lp-contact {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 8px;
  background: var(--bg-secondary);
  border: 1px solid var(--stroke-light);
  border-radius: 12px;
  box-shadow: var(--shadow-card);
}

.lp-contact-text {
  flex: 2;
  padding: 16px;
  min-width: 0;
}

.lp-contact-text h3 {
  font-size: 16px;
  line-height: 22px;
  font-weight: 700;
  margin-bottom: 4px;
}

.lp-contact-text p {
  color: var(--text-secondary);
}

.lp-contact-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lp-contact-img {
  flex: 3;
  width: 100%;
  min-width: 0;
  height: 200px;
  object-fit: cover;
  border-radius: 12px;
}

@media (max-width: 599px) {
  .lp-contact {
    flex-direction: column;
    gap: 16px;
  }

  .lp-contact-img {
    width: 100%;
    flex: none;
  }
}

/* ---------- footer ---------- */

.lp-footer {
  width: 100%;
  padding: 16px;
  background: var(--bg-secondary);
  border-top: 1px solid var(--stroke-light);
  border-radius: 12px;
}

.lp-footer-cols {
  display: flex;
  flex-wrap: wrap;
  column-gap: 24px;
  row-gap: 24px;
}

.lp-footer-col {
  width: 220px;
  display: flex;
  flex-direction: column;
}

.lp-footer-col span {
  padding: 6px 0;
  color: var(--text-secondary);
}

.lp-footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--stroke-light);
  font-size: 12px;
  line-height: 16px;
  color: var(--text-secondary);
}

.lp-footer-legal a {
  color: var(--text-secondary);
  text-decoration: underline;
}

.lp-footer-legal a:hover {
  color: var(--text-primary);
}

/* ---------- coming soon ---------- */

.cs-appbar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 56px;
  color: var(--text-primary);
}

.cs-back {
  position: absolute;
  left: 16px;
  display: flex;
  align-items: center;
}

.cs-appbar-title {
  font-size: 16px;
  line-height: 22px;
  font-weight: 700;
}

.cs-body {
  min-height: calc(100vh - 56px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
}

.cs-title {
  margin-top: 32px;
  font-size: 16px;
  line-height: 22px;
  font-weight: 700;
  color: var(--text-primary);
}

.cs-message {
  margin-top: 16px;
  font-size: 16px;
  line-height: 24px;
  color: var(--text-secondary);
  max-width: 480px;
}

.cs-button {
  margin-top: 48px;
  padding: 16px 32px;
  background: var(--bg-secondary);
  color: var(--text-primary);
  border-radius: 12px;
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* ---------- legal pages ---------- */

.legal-header {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--stroke-light);
  margin-bottom: 40px;
}

.legal-article {
  min-height: 40vh;
}

.legal-article h1 {
  font-size: 24px;
  line-height: 32px;
  font-weight: 700;
  margin-bottom: 16px;
}

.legal-article p {
  font-size: 16px;
  line-height: 24px;
  color: var(--text-secondary);
}
