/* mybud.net — brand: Liquid Glass + Budget Ring (emerald + gold) */
:root {
  --bg: #f4faf7;
  --surface: #ffffff;
  --text: #10241c;
  --muted: #52705f;
  --primary: #0a9468;
  --primary-deep: #04513a;
  --gold: #d3a63f;
  --card: rgba(255, 255, 255, 0.72);
  --border: rgba(10, 148, 104, 0.14);
  --shadow: 0 24px 60px rgba(4, 81, 58, 0.12);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #07120d;
    --surface: #0c1a13;
    --text: #e7f5ee;
    --muted: #93b3a3;
    --primary: #17c88f;
    --primary-deep: #0a9468;
    --card: rgba(16, 34, 26, 0.72);
    --border: rgba(23, 200, 143, 0.16);
    --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  }
}
* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Inter", "IBM Plex Sans Arabic", system-ui, -apple-system,
    "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(52rem 34rem at 12% -8%, rgba(23, 200, 143, 0.16), transparent 60%),
    radial-gradient(44rem 30rem at 95% 12%, rgba(211, 166, 63, 0.10), transparent 60%);
}
.wrap { max-width: 62rem; margin: 0 auto; padding: 0 1.5rem; }
header.site {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 0;
}
.brand { display: flex; align-items: center; gap: 0.65rem; text-decoration: none; color: var(--text); }
.brand img { width: 40px; height: 40px; border-radius: 10px; }
.brand span { font-weight: 700; font-size: 1.2rem; letter-spacing: -0.02em; }
nav a {
  color: var(--muted);
  text-decoration: none;
  margin-inline-start: 1.1rem;
  font-size: 0.95rem;
}
nav a:hover { color: var(--primary); }
.hero { text-align: center; padding: 4.5rem 0 3rem; }
.hero img.mark {
  width: 108px; height: 108px; border-radius: 24px;
  box-shadow: var(--shadow);
  margin-bottom: 1.75rem;
}
.hero .app-name {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--primary);
  margin-bottom: 0.4rem;
}
.hero h1 {
  font-size: clamp(2.1rem, 6vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(120deg, var(--primary), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p.sub {
  color: var(--muted);
  font-size: 1.15rem;
  max-width: 34rem;
  margin: 1.1rem auto 0;
}
.badges { display: flex; gap: 0.75rem; justify-content: center; margin-top: 2.2rem; flex-wrap: wrap; }
.badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  border: 1px solid var(--border);
  background: var(--card);
  backdrop-filter: blur(10px);
  border-radius: 999px;
  padding: 0.7rem 1.3rem;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
}
.auth-form {
  display: grid;
  gap: 0.65rem;
  max-width: 24rem;
  margin: 2rem auto 0;
  text-align: start;
}
.auth-form label { font-weight: 600; font-size: 0.95rem; }
.auth-form input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  padding: 0.75rem 0.9rem;
  font: inherit;
}
.auth-form input:focus-visible, .auth-form button:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--primary) 45%, transparent);
  outline-offset: 2px;
}
.auth-form button { cursor: pointer; justify-content: center; margin-top: 0.5rem; }
.auth-form button:disabled { cursor: wait; opacity: 0.6; }
.form-message { color: var(--muted); font-size: 0.95rem; text-align: center; }
.form-message[role="alert"] { color: var(--primary-deep); }
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1rem;
  padding: 2.5rem 0 4rem;
}
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 1.5rem;
  backdrop-filter: blur(10px);
}
.card h3 { font-size: 1.05rem; margin-bottom: 0.4rem; letter-spacing: -0.01em; }
.card p { color: var(--muted); font-size: 0.95rem; }
.card .dot {
  width: 34px; height: 34px; border-radius: 10px;
  display: grid; place-items: center;
  background: linear-gradient(140deg, var(--primary), var(--primary-deep));
  color: #fff; font-size: 1rem; margin-bottom: 0.8rem;
}
.privacy-note {
  text-align: center;
  color: var(--muted);
  padding-bottom: 4rem;
  font-size: 0.98rem;
}
.privacy-note strong { color: var(--primary); }
main.doc { padding: 3rem 0 4rem; max-width: 46rem; margin: 0 auto; }
main.doc h1 { font-size: 2rem; letter-spacing: -0.02em; margin-bottom: 0.4rem; }
main.doc p.updated { color: var(--muted); font-size: 0.9rem; margin-bottom: 2rem; }
main.doc h2 { font-size: 1.2rem; margin: 1.8rem 0 0.5rem; }
main.doc p, main.doc li { color: var(--muted); }
main.doc ul { padding-inline-start: 1.2rem; }
main.doc a { color: var(--primary); }
footer.site {
  border-top: 1px solid var(--border);
  padding: 2rem 0 3rem;
  color: var(--muted);
  font-size: 0.9rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
footer.site a { color: var(--muted); text-decoration: none; margin-inline-end: 1rem; }
footer.site a:hover { color: var(--primary); }
[dir="rtl"] body, [dir="rtl"] { letter-spacing: 0; }
