/* yatrini.com (GH-624). Every colour, radius, space and type size is a token of core/designsystem
   (internal/Palette.kt, theme/YatriniShapes, YatriniSpacing). design/DESIGN_RULES.md has the roles. */

@font-face { font-family: "Noto Sans"; src: url("/assets/fonts/noto-sans.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "Noto Sans Arabic"; src: url("/assets/fonts/noto-sans-arabic.woff2") format("woff2"); font-weight: 400 700; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFF; }

:root {
  --grey10: #0E0F12; --grey15: #14151A; --grey20: #1B1C21; --grey25: #26272D; --grey30: #333640;
  --text: #E3E4EA; --text2: #A0A4B2; --text3: #8C8F9B;
  --blue30: #0941B2; --blue20: #073693; --blue-content: #6690FF;
  --on-accent: #FFFFFF; --black: #000000; --error: #FF6B61;
  --r-chip: 8px; --r-button: 12px; --r-card: 16px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--grey10); color: var(--text);
  font: 400 16px/1.6 "Noto Sans", "Noto Sans Arabic", system-ui, sans-serif;
  font-variant-numeric: tabular-nums lining-nums;
}
:lang(ar) body, body:lang(ar) { font-family: "Noto Sans Arabic", "Noto Sans", system-ui, sans-serif; line-height: 1.8; }
a { color: var(--blue-content); text-underline-offset: 3px; }
a:focus-visible, .button:focus-visible { outline: 2px solid var(--blue-content); outline-offset: 2px; border-radius: 4px; }
img { max-width: 100%; height: auto; }

.top, main, .foot { max-width: 760px; margin: 0 auto; padding-inline: 16px; }
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 16px; }
.brand { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 20px; }
.brand img { width: 32px; height: 32px; object-fit: contain; }
.langs { display: flex; gap: 4px; }
.langs a { display: inline-flex; align-items: center; min-height: 48px; padding-inline: 12px; border-radius: var(--r-chip); color: var(--text2); text-decoration: none; font-size: 14px; }
.langs a[aria-current] { color: var(--text); background: var(--grey20); }

.hero { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 16px 24px; }
.hero h1 { margin: 0; font-size: 24px; line-height: 30px; font-weight: 700; }
.hero .zid { width: 128px; height: 128px; flex: none; object-fit: contain; }
.updated { margin: 4px 0 0; color: var(--text3); font-size: 14px; }
.lead { margin: 12px 0 0; color: var(--text2); }

.card { background: var(--grey20); border-radius: var(--r-card); padding: 20px; margin-bottom: 12px; }
.card h2 { margin: 0 0 8px; font-size: 16px; line-height: 22px; font-weight: 700; }
.card p, .card li { margin: 8px 0; color: var(--text2); }
.card p:last-child, .card ul:last-child, .card ol:last-child { margin-bottom: 0; }
.card strong { color: var(--text); font-weight: 700; }
.card .note { color: var(--text3); font-size: 14px; }
.list, .steps { padding-inline-start: 20px; margin: 8px 0; }
.steps li { padding-inline-start: 4px; }
.steps li::marker { color: var(--blue-content); font-weight: 700; }

.facts { width: 100%; border-collapse: collapse; margin-top: 8px; }
.facts th { text-align: start; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text3); padding: 8px 0; }
.facts td { vertical-align: top; padding: 12px 0; border-top: 1px solid var(--grey30); color: var(--text2); }
.facts td:first-child { color: var(--text); width: 46%; padding-inline-end: 16px; }

.shot { display: block; width: 100%; max-width: 360px; margin: 16px auto 4px; border-radius: var(--r-card); border: 1px solid var(--grey30); }

.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 20px; border-radius: var(--r-button); background: var(--blue30); color: var(--on-accent); font-weight: 700; text-decoration: none; }
.button:active { background: var(--blue20); }
.button.ghost { background: transparent; border: 1px solid var(--grey30); color: var(--text); }
.hero .button { margin-top: 16px; }

.page-home { position: relative; overflow-x: hidden; }
.page-home .top, .page-home .foot, .home { position: relative; z-index: 1; }
.home { display: flex; flex-direction: column; align-items: center; text-align: center; padding-block: 24px 48px; }
.home .zid-big { width: 260px; height: 260px; object-fit: contain; animation: zid-in 600ms cubic-bezier(.2, 0, 0, 1) both; }
.home { min-height: 560px; justify-content: center; }

/* The wall: real app screens drifting in 3D behind Zid (GH-624, concept C). */
.wall { position: absolute; inset: 0 0 auto 0; height: 860px; overflow: hidden; z-index: 0; pointer-events: none; }
.wall::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 50% 58% at 50% 46%, rgba(14, 15, 18, .95) 32%, rgba(14, 15, 18, .45) 72%, rgba(14, 15, 18, .15)), linear-gradient(to bottom, transparent 70%, var(--grey10)); }
.wall-tilt { position: absolute; left: 56%; top: -240px; display: flex; gap: 24px; transform: translateX(-50%) perspective(2000px) rotateX(24deg) rotateZ(-12deg); opacity: .7; }
.wall .col { flex: none; display: flex; flex-direction: column; gap: 24px; animation: drift 90s linear infinite; }
.wall .col:nth-child(even) { animation-direction: reverse; margin-top: -160px; }
.wall img { max-width: none; width: 180px; height: auto; border-radius: 28px; border: 5px solid var(--black); display: block; }
@keyframes drift { from { transform: translateY(0); } to { transform: translateY(calc(-50% - 12px)); } }
@keyframes zid-in { from { transform: translateY(24px) scale(.92); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .wall .col, .home .zid-big { animation: none; } }
.home h1 { margin: 16px 0 0; font-size: 36px; line-height: 40px; text-wrap: balance; }
.home .lead { max-width: 420px; }
.stores { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 24px; }

.foot { padding-block: 24px 48px; color: var(--text2); font-size: 14px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.foot nav a, .foot p a { display: inline-flex; align-items: center; min-height: 48px; }
.foot p { margin: 0; }
.quiet { color: var(--text3); }

@media (max-width: 560px) {
  .wall img { width: 120px; border-radius: 20px; border-width: 4px; }
  .wall .col { gap: 16px; }
  .wall-tilt { gap: 16px; top: -160px; }
  .home .zid-big { width: 200px; height: 200px; }
  .hero .zid { width: 96px; height: 96px; }
  .facts thead { display: none; }
  .facts tr { display: block; padding: 12px 0; border-top: 1px solid var(--grey30); }
  .facts td, .facts td:first-child { display: block; width: auto; padding: 0; border: 0; }
  .facts td + td { margin-top: 4px; }
}
