/* Sadri's site: sadri.app. Ink and water, the app's own palette; light and dark.
   Layout: one calm column; the landing page opens on the icon's deep teal. */
:root {
  --paper: #FBFBF9;
  --surface: #FFFFFF;
  --ink: #1C2326;
  --ink-2: #4E5856;
  --line: #DDE2E0;
  --water: #2F7F84;
  --deep: #054A54;
  --mist: #E6F1F1;
  --sand: #B67A30;
  --on-deep: #F3F8F8;
  --on-deep-2: #B9D3D4;
  --font-body: 'Alegreya Sans', 'Segoe UI', system-ui, sans-serif;
  --font-arabic: 'Amiri Quran', 'Amiri', 'Traditional Arabic', serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #101719; --surface: #172124; --ink: #E7ECEA; --ink-2: #A9B6B3; --line: #2A3639;
    --water: #6FB7BB; --mist: #18302F; --sand: #D9A35C; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #101719; --surface: #172124; --ink: #E7ECEA; --ink-2: #A9B6B3; --line: #2A3639;
  --water: #6FB7BB; --mist: #18302F; --sand: #D9A35C; color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 19px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--water); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
a:focus-visible { outline: 3px solid var(--water); outline-offset: 2px; border-radius: 4px; }
p { margin: 0; }
h1, h2, h3 { margin: 0; line-height: 1.15; text-wrap: balance; }

.wrap {
  max-width: 980px;
  margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
.narrow { max-width: 720px; }

/* ---------- top bar (legal pages and the landing page's footer nav) */
.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 22px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.brand img { width: 40px; height: 40px; border-radius: 9px; }
.brand b { font-size: 22px; font-weight: 800; letter-spacing: 0.01em; }
.brand .ar { font-family: var(--font-arabic); font-size: 22px; color: var(--ink-2); line-height: 1; }
.nav { display: flex; gap: 20px; font-size: 17px; }
.nav a { text-decoration: none; color: var(--ink-2); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); text-decoration: underline; }

/* ---------- landing hero: the icon's deep teal */
.hero { background: var(--deep); color: var(--on-deep); }
.hero .bar .brand b { color: var(--on-deep); }
.hero .bar .brand .ar, .hero .nav a { color: var(--on-deep-2); }
.hero .nav a:hover { color: var(--on-deep); }
.hero-body {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 40px;
  align-items: center;
  padding-block: 36px 72px;
}
.hero h1 { font-size: clamp(40px, 7vw, 68px); font-weight: 800; letter-spacing: -0.01em; }
.hero .lede { margin-top: 18px; font-size: clamp(19px, 2.4vw, 22px); color: var(--on-deep-2); max-width: 32ch; }
.hero .art { justify-self: center; width: min(100%, 340px); }
.hero .art img { width: 100%; height: auto; border-radius: 22.37%; display: block; box-shadow: 0 30px 60px rgba(0, 0, 0, 0.28); }
.soon {
  margin-top: 30px;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 20px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.22);
  font-size: 17px; color: var(--on-deep);
  max-width: 100%; flex-wrap: wrap;
}
.soon svg { flex-shrink: 0; }
.soon small { color: var(--on-deep-2); font-size: 15px; }

/* ---------- landing sections */
.section { padding-block: 64px; }
.section + .section { border-top: 1px solid var(--line); }
.eyebrow { font-size: 14px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--water); }
.section h2 { font-size: clamp(28px, 4vw, 38px); font-weight: 800; margin-top: 8px; }
.section .intro { margin-top: 12px; color: var(--ink-2); max-width: 60ch; }

.features { margin-top: 36px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.feature { display: flex; flex-direction: column; gap: 10px; }
.feature .mark { width: 44px; height: 44px; border-radius: 12px; background: var(--mist); display: grid; place-items: center; color: var(--water); }
.feature h3 { font-size: 22px; font-weight: 800; }
.feature p { color: var(--ink-2); }
.feature ul { margin: 0; padding-left: 18px; color: var(--ink-2); display: flex; flex-direction: column; gap: 4px; }

.revise { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 28px; margin-top: 36px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; }
.revise h3 { font-size: 24px; font-weight: 800; }
.revise p { color: var(--ink-2); margin-top: 8px; }
.controls { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.controls li { display: grid; grid-template-columns: 120px 1fr; gap: 12px; align-items: baseline; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.controls li:last-child { border-bottom: 0; padding-bottom: 0; }
.controls b { font-weight: 700; }
.controls span { color: var(--ink-2); }
.paid { display: inline-block; margin-left: 8px; font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--sand); vertical-align: middle; }

.name { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.name .dua { font-family: var(--font-arabic); font-size: clamp(34px, 6vw, 48px); line-height: 2.45; color: var(--ink); }
.name p { color: var(--ink-2); max-width: 58ch; }
.name cite { font-style: normal; color: var(--ink-2); font-size: 16px; }

.foot { border-top: 1px solid var(--line); padding-block: 28px 40px; font-size: 16px; color: var(--ink-2); display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; align-items: center; }
.foot nav { display: flex; gap: 20px; }

/* ---------- legal pages */
.doc { padding-block: 16px 56px; display: flex; flex-direction: column; gap: 28px; }
.doc h1 { font-size: clamp(32px, 5vw, 44px); font-weight: 800; }
.doc .lede { color: var(--ink-2); font-size: 20px; margin-top: 10px; }
.doc section { display: flex; flex-direction: column; gap: 10px; }
.doc h2 { font-size: 24px; font-weight: 800; margin-top: 6px; }
.doc ul { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }
.doc .contact { background: var(--mist); border-radius: 14px; padding: 18px 20px; }
.faq { margin: 0; display: flex; flex-direction: column; gap: 18px; }
.faq dt { font-weight: 800; }
.faq dd { margin: 4px 0 0; color: var(--ink-2); }

@media (max-width: 760px) {
  .hero-body { grid-template-columns: 1fr; padding-block: 12px 56px; }
  .hero .art { width: min(62%, 260px); grid-row: 1; justify-self: start; }
  .features { grid-template-columns: 1fr; }
  .revise { grid-template-columns: 1fr; padding: 22px; }
  .controls li { grid-template-columns: 1fr; gap: 2px; }
}
@media (prefers-reduced-motion: no-preference) {
  .hero .art img { transition: transform 0.6s ease; }
  .hero .art img:hover { transform: translateY(-4px); }
}
