/* Budget Floosy site: the app's paper, ink and amber palette (Theme.kt, 1.54). */
:root {
  --bg: #FAF8F5; --surface: #FFFFFF; --line: #E8E3DC; --text: #14110E; --muted: #5E5A55;
  --accent: #423930; --on-accent: #FFFFFF; --amber: #9A5B0B; --amber-soft: #F7EEE1;
  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0C0B0B; --surface: #171615; --line: #2C2A27; --text: #F3F1EE; --muted: #B5B0A9;
    --accent: #EDEAE6; --on-accent: #14110E; --amber: #F0B354; --amber-soft: #2A2219;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: "Jost", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px; line-height: 1.6;
}
[dir="rtl"] body, body[dir="rtl"] { font-family: "Tajawal", "Jost", system-ui, sans-serif; line-height: 1.75; }
.wrap { max-width: 760px; margin: 0 auto; padding: 0 16px; }

/* Header */
.top { display: flex; align-items: center; gap: 12px; padding: 20px 0; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 600; font-size: 19px; min-height: 44px; }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.top nav { margin-inline-start: auto; display: flex; gap: 4px; flex-wrap: wrap; }
.top nav a {
  color: var(--muted); text-decoration: none; padding: 10px 12px; border-radius: 12px; font-size: 15px;
  min-height: 44px; display: inline-flex; align-items: center;
  transition: background-color 150ms var(--ease-out), color 150ms var(--ease-out);
}
.top nav a:hover, .top nav a[aria-current="page"] { color: var(--text); background: var(--amber-soft); }

/* Home */
.hero { padding: 40px 0 28px; }
.hero img { width: 88px; height: 88px; border-radius: 22px; }
.hero h1 { font-size: clamp(36px, 8vw, 54px); line-height: 1.05; margin: 20px 0 12px; letter-spacing: -0.02em; font-weight: 600; }
.hero p { font-size: 19px; color: var(--muted); margin: 0; max-width: 34em; }
.stores { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; }
.pill { display: inline-flex; align-items: center; min-height: 48px; padding: 0 18px; border-radius: 24px; border: 1px solid var(--line); color: var(--muted); font-size: 15px; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; margin: 24px 0 8px; }
.fact { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 18px 18px 16px; }
.fact b { display: block; font-size: 17px; margin-bottom: 4px; }
.fact span { color: var(--muted); font-size: 15px; }

/* Documents */
.doc h1 { font-size: clamp(30px, 6vw, 40px); line-height: 1.1; margin: 24px 0 6px; font-weight: 600; letter-spacing: -0.01em; }
.doc .meta { color: var(--muted); margin: 0 0 24px; font-size: 15px; }
.doc h2 { font-size: 21px; margin: 32px 0 8px; font-weight: 600; }
.doc p, .doc li { max-width: 40em; }
.doc ul { padding-inline-start: 22px; margin: 8px 0; }
.doc li { margin: 6px 0; }
.note { background: var(--amber-soft); border-radius: 16px; padding: 14px 18px; margin: 16px 0; }
.table { overflow-x: auto; margin: 12px 0; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 520px; }
th, td { text-align: start; padding: 12px 14px; vertical-align: top; }
tr + tr td { border-top: 1px solid var(--line); }
th { color: var(--muted); font-weight: 500; border-bottom: 1px solid var(--line); }
a { color: var(--amber); text-underline-offset: 3px; text-decoration-thickness: 1px; transition: color 150ms var(--ease-out); }
a:hover { text-decoration-thickness: 2px; }

/* Support */
.mail {
  display: inline-flex; align-items: center; min-height: 52px; padding: 0 24px; border-radius: 26px;
  background: var(--accent); color: var(--on-accent); text-decoration: none; font-weight: 500; margin: 8px 0 4px;
  transition: transform 100ms var(--ease-out);
}
.mail:active { transform: scale(0.96); }
details { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 0 18px; margin: 10px 0; }
summary { cursor: pointer; min-height: 52px; display: flex; align-items: center; font-weight: 500; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; margin-inline-start: auto; color: var(--muted); font-size: 20px; transition: transform 200ms var(--ease-out); }
details[open] summary::after { transform: rotate(45deg); }
details p { margin: 0 0 16px; color: var(--muted); }

footer { border-top: 1px solid var(--line); margin-top: 48px; padding: 20px 0 40px; color: var(--muted); font-size: 14px; display: flex; gap: 16px; flex-wrap: wrap; }
footer a { color: var(--muted); }

.brand { white-space: nowrap; }
@media (max-width: 600px) {
  .top { flex-wrap: wrap; padding-bottom: 8px; }
  .top nav { margin-inline-start: -12px; width: calc(100% + 12px); }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
