/* معمر — muamer.net · warm-paper ledger aesthetic
   Palette from brand logo: charcoal ink, sand-gold roofline, warm paper. */

@font-face {
  font-family: "Rubik";
  src: url("fonts/Rubik-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Rubik";
  src: url("fonts/Rubik-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #faf8f4;
  --paper-deep: #f1e9dc;
  --ink: #23272e;
  --ink-soft: #4a4f58;
  --sand: #b08d57;
  --sand-soft: #d8c39d;
  --line: #e7dfd2;
  --card: #ffffff;
  --radius: 14px;
  --max: 1060px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "Rubik", "Segoe UI", "Helvetica Neue", "Noto Kufi Arabic", sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.wrap { max-width: var(--max); margin-inline: auto; padding-inline: 20px; }

a { color: var(--sand); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Header ─────────────────────────────────── */
.site-header {
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper) 88%, white);
  position: sticky; top: 0; z-index: 20;
  backdrop-filter: blur(6px);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  padding-block: 10px;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.brand img { height: 44px; width: auto; display: block; }
.brand strong { font-size: 1.15rem; letter-spacing: 0; }
.header-cta {
  display: inline-block; padding: 8px 18px; border-radius: 999px;
  background: var(--ink); color: #fff; font-weight: 700; font-size: 0.95rem;
}
.header-cta:hover { background: #000; text-decoration: none; }

/* ── Hero ───────────────────────────────────── */
.hero {
  position: relative;
  padding-block: 72px 84px;
  background:
    linear-gradient(to bottom, transparent, var(--paper) 92%),
    repeating-linear-gradient(0deg, transparent 0 31px, rgba(176, 141, 87, 0.10) 31px 32px),
    repeating-linear-gradient(90deg, transparent 0 31px, rgba(176, 141, 87, 0.10) 31px 32px),
    var(--paper);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.hero .wrap { max-width: 880px; text-align: center; }
.hero h1 {
  font-size: clamp(2rem, 5.4vw, 3.4rem);
  font-weight: 700; line-height: 1.28;
  margin-bottom: 18px;
}
.hero h1 em { font-style: normal; color: var(--sand); }
.hero .lede {
  font-size: clamp(1.05rem, 2.4vw, 1.3rem);
  color: var(--ink-soft);
  max-width: 620px; margin-inline: auto;
}
.trial-line {
  display: inline-block; margin-top: 26px;
  background: var(--card); border: 1px solid var(--sand-soft);
  border-radius: 999px; padding: 10px 22px;
  font-weight: 700; color: var(--ink);
  box-shadow: 0 6px 18px rgba(35, 39, 46, 0.06);
}
.trial-line span { color: var(--sand); }
.hero-actions {
  margin-top: 30px;
  display: flex; gap: 14px; justify-content: center; flex-wrap: wrap;
}

.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 28px; border-radius: 12px;
  font-weight: 700; font-size: 1.02rem;
  border: 1.5px solid transparent;
  transition: transform 120ms ease, box-shadow 120ms ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--ink); color: #fff; box-shadow: 0 8px 22px rgba(35, 39, 46, 0.18); }
.btn-primary:hover { background: #000; }
.btn-ghost { background: var(--card); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--sand); }
.btn svg { flex: none; }

/* ── Sections ───────────────────────────────── */
section { padding-block: 64px; }
.section-title {
  font-size: clamp(1.5rem, 3.4vw, 2.1rem);
  font-weight: 700; margin-bottom: 8px;
}
.section-sub { color: var(--ink-soft); margin-bottom: 36px; max-width: 640px; }
.kicker {
  display: inline-block; color: var(--sand); font-weight: 700;
  font-size: 0.9rem; letter-spacing: 0.02em; margin-bottom: 10px;
}

/* Features */
.features-grid {
  display: grid; gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(235px, 1fr));
}
.feature {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 22px;
  box-shadow: 0 2px 10px rgba(35, 39, 46, 0.04);
}
.feature .glyph {
  width: 44px; height: 44px; border-radius: 11px;
  background: var(--paper-deep); color: var(--sand);
  display: grid; place-items: center;
  margin-bottom: 14px;
}
.feature h3 { font-size: 1.08rem; margin-bottom: 6px; }
.feature p { color: var(--ink-soft); font-size: 0.96rem; }

/* Screenshots strip (activated when real captures are added) */
.shots {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  align-items: start;
}
.shot {
  border: 1px solid var(--line); border-radius: 22px;
  overflow: hidden; background: var(--card);
  box-shadow: 0 10px 28px rgba(35, 39, 46, 0.10);
}
.shot img { display: block; width: 100%; height: auto; }

/* Contact strip */
.contact-strip {
  background: var(--ink); color: #fff;
  border-radius: 20px;
  padding: 44px 32px;
  text-align: center;
}
.contact-strip h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); margin-bottom: 10px; }
.contact-strip p { color: #c9cdd4; max-width: 560px; margin-inline: auto; }
.contact-strip .hero-actions { margin-top: 24px; }
.contact-strip .btn-primary { background: var(--sand); color: #1d2025; box-shadow: none; }
.contact-strip .btn-primary:hover { background: var(--sand-soft); }
.contact-strip .btn-ghost { background: transparent; color: #fff; border-color: #4a4f58; }
.contact-strip .btn-ghost:hover { border-color: var(--sand); }
.email-plain { margin-top: 18px; font-size: 0.95rem; color: #c9cdd4; }
.email-plain code {
  font-family: inherit; user-select: all;
  background: rgba(255, 255, 255, 0.08);
  padding: 3px 10px; border-radius: 8px; color: #fff;
}

/* ── Footer ─────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 34px;
  color: var(--ink-soft); font-size: 0.94rem;
  background: var(--paper-deep);
}
.site-footer .wrap { display: grid; gap: 14px; }
.footer-links { display: flex; gap: 8px 22px; flex-wrap: wrap; }
.footer-links a { color: var(--ink); }
.footer-note { color: var(--ink-soft); }

/* ── Legal pages ────────────────────────────── */
.legal main.wrap { max-width: 780px; padding-block: 48px 72px; }
.legal h1 { font-size: clamp(1.6rem, 4vw, 2.3rem); margin-bottom: 8px; }
.legal .meta { color: var(--ink-soft); font-size: 0.92rem; margin-bottom: 34px; }
.legal h2 { font-size: 1.25rem; margin: 34px 0 10px; }
.legal h3 { font-size: 1.05rem; margin: 22px 0 8px; }
.legal p, .legal li { color: var(--ink-soft); }
.legal ul, .legal ol { padding-inline-start: 22px; margin-block: 10px; }
.legal .callout {
  background: var(--card); border: 1px solid var(--sand-soft);
  border-inline-start: 4px solid var(--sand);
  border-radius: 10px; padding: 16px 18px; margin-block: 18px;
  color: var(--ink);
}
.lang-switch { font-size: 0.92rem; }

@media (max-width: 560px) {
  .hero { padding-block: 52px 60px; }
  section { padding-block: 46px; }
  .brand strong { display: none; }
}
