/* myrenttracker.com — the app's own palette (lib/core/theme/app_colors.dart)
   and font (Cairo). Logical properties only, so the Arabic page mirrors. */

@font-face {
  font-family: "Cairo";
  src: url(/assets/fonts/cairo.woff2) format("woff2");
  font-weight: 200 1000;
  font-display: swap;
}

:root {
  --green: #176b43;
  --green-dark: #0f5132;
  --green-soft: #e5f3eb;
  --navy: #17263d;
  --gray: #5d6b7c;
  --bg: #f4f7f6;
  --surface: #fcfdfc;
  --line: #dce4e1;
  --orange: #a8500a;
  --radius: 18px;
  --wrap: 1120px;
  color-scheme: light;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: "Cairo", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--navy);
  background: var(--bg);
}

img { max-inline-size: 100%; block-size: auto; }

a { color: var(--green); text-underline-offset: 3px; }
a:focus-visible, .store:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
  border-radius: 6px;
}

h1, h2, h3 { line-height: 1.25; margin: 0; }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.3rem); font-weight: 800; }
h3 { font-size: 1.35rem; font-weight: 800; }

.wrap { max-inline-size: var(--wrap); margin-inline: auto; padding-inline: 20px; }

.skip {
  position: absolute;
  inset-inline-start: 12px;
  inset-block-start: -60px;
  background: var(--navy);
  color: #fff;
  padding: 10px 16px;
  border-radius: 8px;
  z-index: 10;
}
.skip:focus { inset-block-start: 12px; }

/* Header */
.top {
  position: sticky;
  inset-block-start: 0;
  z-index: 5;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-block-end: 1px solid var(--line);
}
.top__row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-block-size: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; min-block-size: 44px; }
.brand img { display: block; }
.brand__word { inline-size: auto; block-size: 22px; }
.top nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.top nav a {
  color: var(--navy);
  text-decoration: none;
  font-weight: 700;
  padding: 10px 12px;
  border-radius: 10px;
  min-block-size: 44px;
  display: inline-flex;
  align-items: center;
}
.top nav a:hover { background: var(--green-soft); }
.top nav .lang { border: 1px solid var(--line); background: var(--surface); }

/* Hero */
.hero {
  color: #fff;
  background:
    radial-gradient(900px 500px at 85% 10%, rgba(255, 255, 255, 0.10), transparent 60%),
    linear-gradient(160deg, #1c7a4e 0%, var(--green) 45%, var(--green-dark) 100%);
  overflow: hidden;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.15fr minmax(240px, 340px);
  gap: 48px;
  align-items: center;
  padding-block: 64px 0;
}
.kicker {
  display: inline-block;
  margin: 0 0 14px;
  padding: 4px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  font-weight: 700;
  font-size: 0.95rem;
}
.hero h1 { font-size: clamp(2.6rem, 7vw, 4.6rem); font-weight: 900; letter-spacing: -0.01em; }
.lead { font-size: 1.2rem; max-inline-size: 36em; margin: 18px 0 28px; color: rgba(255, 255, 255, 0.92); }
.hero .phone { align-self: end; margin-block-end: -40px; }

.facts {
  list-style: none;
  padding: 0;
  margin: 26px 0 56px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.92);
}
.facts li, .ticks li { display: flex; gap: 8px; align-items: flex-start; }
.facts svg { flex: none; margin-block-start: 5px; }

/* Store buttons */
.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-block-size: 56px;
  padding: 8px 20px;
  border-radius: 14px;
  text-decoration: none;
  line-height: 1.15;
}
.store small { display: block; font-size: 0.78rem; font-weight: 600; opacity: 0.9; }
.store b { display: block; font-size: 1.2rem; font-weight: 800; }
.store--play { background: #0b1220; color: #fff; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22); }
.store--play:hover { background: #000; }
.store--soon {
  color: inherit;
  border: 1.5px dashed currentColor;
  opacity: 0.85;
  cursor: default;
}

/* Phone frame around a real capture */
.phone {
  margin: 0;
  justify-self: center;
  inline-size: min(100%, 320px);
  padding: 10px;
  border-radius: 40px;
  background: #0d1117;
  box-shadow: 0 30px 60px rgba(9, 30, 20, 0.35), inset 0 0 0 2px #2b3440;
}
.phone img { display: block; inline-size: 100%; border-radius: 31px; }

/* Sections */
section { padding-block: 72px; }
.sub { color: var(--gray); font-size: 1.1rem; margin: 10px 0 0; max-inline-size: 42em; }

.types { padding-block-start: 104px; }
.chips { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li {
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-weight: 700;
}

.features { background: var(--surface); border-block: 1px solid var(--line); }
.features h2 { text-align: center; max-inline-size: 22em; margin-inline: auto; }
.feature {
  display: grid;
  grid-template-columns: 1fr minmax(220px, 300px);
  gap: 56px;
  align-items: center;
  padding-block: 48px;
  border-block-end: 1px solid var(--line);
}
.feature:last-child { border-block-end: 0; }
.feature--flip .phone { order: -1; }
.feature__text { max-inline-size: 34em; }
.feature .phone { inline-size: min(100%, 280px); box-shadow: 0 18px 40px rgba(23, 38, 61, 0.18); }

.ticks { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 10px; }
.ticks svg { flex: none; color: var(--green); margin-block-start: 6px; }

.langs { background: var(--navy); color: #fff; }
.langs .sub { color: rgba(255, 255, 255, 0.82); }
.chips--light li { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.22); }

.trust__grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 20px; }
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}
.card h2 { font-size: 1.5rem; }
.card--muted { background: var(--green-soft); border-color: #cfe5d8; }
.card--muted p { margin: 12px 0 0; }
.links { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 20px 0 0; font-weight: 700; }
.links a { min-block-size: 44px; display: inline-flex; align-items: center; }

.cta { padding-block-start: 24px; }
.cta__box {
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 12px;
  padding-block: 56px;
  border-radius: 28px;
  background: linear-gradient(160deg, var(--green), var(--green-dark));
  color: #fff;
}
.cta__box img { border-radius: 18px; }
.cta__box p { margin: 0 0 10px; color: rgba(255, 255, 255, 0.9); }
.cta__box .stores { justify-content: center; }

.foot { padding-block: 40px 56px; color: var(--gray); font-size: 0.98rem; }
.foot__row { display: grid; gap: 6px; text-align: center; }
.foot p { margin: 0; }
.foot a { font-weight: 700; display: inline-block; padding-block: 6px; }
.small { font-size: 0.88rem; }

@media (max-width: 520px) {
  .top nav .nav-features { display: none; }
  .top nav a { padding-inline: 10px; }
}

@media (max-width: 860px) {
  .hero__grid, .feature, .trust__grid { grid-template-columns: 1fr; }
  .hero__grid { padding-block-start: 44px; gap: 36px; }
  .hero .phone { inline-size: min(78%, 300px); }
  .feature { gap: 28px; padding-block: 40px; }
  .feature--flip .phone { order: 0; }
  .feature .phone { inline-size: min(72%, 260px); }
  .brand .brand__word { display: none; }
  section { padding-block: 56px; }
  .types { padding-block-start: 88px; }
}
