/* PikTap links site — mobile-first, light theme, logical properties for RTL (ar / ckb). Tokens: packages/design-tokens (light). */
:root {
  --background: #fcf8fa;
  --surface: #ffffff;
  --foreground: #211820;
  --muted: #655961;
  --border: #eae2e5;
  --primary: #660033;
  --on-primary: #ffffff;
  --accent: #f6e8ee;
  --success: #10704f;
  --danger: #bb3854;
  --radius: 16px;
  /* Brand fonts are used when installed on the device; nothing is downloaded (no CDN, no bundled font files). */
  --font: "Inter", "Noto Sans Arabic", system-ui, -apple-system, "Segoe UI", Tahoma, Arial, sans-serif;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--background);
  color: var(--foreground);
  font: 16px/1.7 var(--font);
}
a { color: var(--primary); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; border-radius: 6px; }
h1 { font-size: 1.75rem; line-height: 1.3; margin: 1.5rem 0 0.5rem; }
h2 { font-size: 1.2rem; line-height: 1.4; margin: 1.5rem 0 0.5rem; }
h3 { font-size: 1.05rem; margin: 1.25rem 0 0.25rem; }
p { margin: 0.5rem 0; }
.wrap { width: 100%; max-width: 46rem; margin-inline: auto; padding-inline: 16px; }
.muted { color: var(--muted); }
.small { font-size: 0.875rem; }
.lead { font-size: 1.1rem; color: var(--muted); }

.skip { position: absolute; inset-inline-start: 1rem; top: -4rem; z-index: 10; padding: 0.5rem 1rem; border-radius: 8px; background: var(--primary); color: var(--on-primary); }
.skip:focus { top: 1rem; }

.site-header { background: var(--surface); border-bottom: 1px solid var(--border); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 64px; }
.brand img { display: block; height: 36px; width: auto; }
.langs { display: flex; gap: 0.25rem; flex-wrap: wrap; }
.langs a { padding: 0.35rem 0.6rem; border-radius: 999px; text-decoration: none; font-size: 0.9rem; color: var(--muted); }
.langs a[aria-current="true"] { background: var(--accent); color: var(--primary); font-weight: 600; }

main { flex: 1; padding-bottom: 2.5rem; outline: none; }

.site-footer { border-top: 1px solid var(--border); background: var(--surface); padding-block: 1.5rem; }
.footer-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; }
.footer-list a { display: inline-block; padding-block: 0.35rem; color: var(--muted); text-decoration: none; font-size: 0.9rem; }
.footer-list a:hover { color: var(--foreground); text-decoration: underline; }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; margin-block: 1rem; }
.card > h2:first-child { margin-top: 0; }
.card.accent { background: var(--accent); border-color: transparent; }
.notice h2 { margin-top: 0; }
.notice-inline { background: var(--accent); padding: 0.5rem 0.75rem; border-radius: 8px; font-size: 0.9rem; }

.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 48px; padding: 0.6rem 1.25rem; border-radius: 12px; border: 1px solid var(--primary);
  background: var(--primary); color: var(--on-primary); font: 600 1rem/1.2 var(--font); text-decoration: none; cursor: pointer;
}
.button:hover { filter: brightness(1.1); }
.button.secondary { background: var(--surface); color: var(--primary); }

.stores { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1rem; }
.store {
  display: inline-flex; flex-direction: column; justify-content: center; min-width: 160px; min-height: 52px;
  padding: 0.4rem 1rem; border-radius: 12px; background: var(--foreground); color: #fff; text-decoration: none; line-height: 1.2;
}
.store-small { font-size: 0.75rem; opacity: 0.85; }
.store-big { font-size: 1.1rem; font-weight: 600; }
.open-app .button { width: 100%; }

.hero { text-align: center; padding-block: 2rem 0.5rem; }
.hero-logo { width: 260px; max-width: 80%; height: auto; } /* lockup ≥ 180px wide (brand guideline) */
.hero .tagline { font-size: 1.5rem; }
.hero .stores { justify-content: center; }

.links, .policy-list, .contacts { list-style: none; margin: 0; padding: 0; }
.links li a { display: block; padding-block: 0.6rem; border-bottom: 1px solid var(--border); text-decoration: none; }
.links li:last-child a { border-bottom: 0; }
.link-card { display: flex; flex-direction: column; gap: 0.25rem; text-decoration: none; color: var(--foreground); }
.link-card:hover { border-color: var(--primary); }
.contacts { display: grid; gap: 0.75rem; margin-block: 1rem; }
.contact { display: flex; flex-direction: column; padding: 0.9rem 1.1rem; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); text-decoration: none; color: var(--foreground); }
.contact-value { font-weight: 600; text-align: start; }

.bullets { padding-inline-start: 1.25rem; margin: 0.5rem 0; }
.bullets li { margin-block: 0.35rem; }
.steps { padding-inline-start: 1.5rem; margin: 0.5rem 0; }
.steps li { margin-block: 0.5rem; padding-inline-start: 0.25rem; }
.steps li::marker { color: var(--primary); font-weight: 700; }
.back { display: inline-block; margin-top: 1.25rem; font-size: 0.9rem; }

.policy-body { overflow-wrap: anywhere; }
.policy-body h2 { border-top: 1px solid var(--border); padding-top: 1rem; }

.faq { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.faq details { border-bottom: 1px solid var(--border); padding-inline: 1.1rem; }
.faq details:last-child { border-bottom: 0; }
.faq summary { cursor: pointer; padding-block: 0.9rem; font-weight: 600; list-style-position: inside; }
.faq details p { margin-top: 0; padding-bottom: 1rem; color: var(--muted); }

.code-card { display: flex; flex-direction: column; align-items: center; gap: 0.75rem; text-align: center; }
.code { font: 700 2rem/1.2 ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; letter-spacing: 0.2em; color: var(--primary); }

.branch { display: flex; gap: 1rem; align-items: center; }
.branch h1 { margin: 0; font-size: 1.5rem; }
.branch-logo { width: 72px; height: 72px; flex-shrink: 0; border-radius: 16px; object-fit: cover; border: 1px solid var(--border); background: var(--surface); }
.pill { display: inline-block; margin: 0.35rem 0 0; padding: 0.15rem 0.7rem; border-radius: 999px; font-size: 0.85rem; font-weight: 600; }
.pill.open { background: #e3f3ec; color: var(--success); }
.pill.closed { background: #f9e6ea; color: var(--danger); }

@media (min-width: 640px) {
  h1 { font-size: 2.1rem; }
  .card { padding: 1.5rem 1.75rem; }
  .open-app .button { width: auto; }
  .contacts { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
