/* QalbNourish — design tokens lifted from the app */
:root {
  /* Surfaces */
  --bg: #F2EDE4;          /* warm cream — app background */
  --bg-soft: #EDE6D8;     /* slightly deeper cream for sections */
  --bg-deep: #2C342E;     /* deep forest for inverted sections */
  --card: #FFFFFF;
  --card-tint: #F8F4EC;   /* tinted card variant used inside the app */

  /* Ink */
  --ink: #25241F;
  --ink-2: #3D3B35;
  --muted: #7A746B;
  --muted-2: #A39C90;
  --hairline: rgba(60,55,45,0.10);
  --hairline-strong: rgba(60,55,45,0.18);

  /* Sage primary */
  --sage: #5C7A65;
  --sage-deep: #3F5648;
  --sage-soft: #E4ECE3;
  --sage-tint: #D7E2D6;

  /* Accents (used sparingly — match category chips in app) */
  --terracotta: #C97B5C;
  --terracotta-soft: #F2DDD2;
  --plum: #8B6B7A;
  --plum-soft: #ECE0E5;
  --gold: #B69658;

  /* Radii */
  --r-xs: 6px;
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-pill: 999px;

  /* Shadows — warm, not gray */
  --shadow-sm: 0 1px 2px rgba(80,60,30,0.05), 0 1px 1px rgba(80,60,30,0.04);
  --shadow-md: 0 4px 14px rgba(80,60,30,0.08), 0 1px 3px rgba(80,60,30,0.05);
  --shadow-lg: 0 24px 48px -16px rgba(60,50,30,0.18), 0 8px 20px rgba(80,60,30,0.08);
  --shadow-phone: 0 40px 80px -24px rgba(40,40,30,0.30), 0 12px 28px -8px rgba(40,40,30,0.18);

  /* Type */
  --serif: "Source Serif 4", "Source Serif Pro", "Lora", Georgia, serif;
  --sans:  "Inter", "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --arabic: "Amiri", "Scheherazade New", "Noto Naskh Arabic", serif;

  /* Layout */
  --container: 1200px;
  --container-tight: 960px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; letter-spacing: -0.01em; color: var(--ink); margin: 0; line-height: 1.1; text-wrap: balance; }
h1 { font-size: clamp(40px, 5.4vw, 72px); letter-spacing: -0.025em; }
h2 { font-size: clamp(32px, 3.6vw, 48px); letter-spacing: -0.02em; }
h3 { font-size: clamp(22px, 1.9vw, 28px); }
h4 { font-size: 18px; font-family: var(--sans); font-weight: 600; letter-spacing: -0.005em; }
p  { margin: 0; text-wrap: pretty; }

a { color: inherit; text-decoration: none; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 28px; }
.container-tight { max-width: var(--container-tight); margin: 0 auto; padding: 0 28px; }

.eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--sage);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eyebrow::before {
  content: "";
  width: 18px; height: 1px;
  background: currentColor;
  opacity: 0.6;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 22px;
  border-radius: var(--r-pill);
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, border-color .15s ease, box-shadow .15s ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary { background: var(--sage-deep); color: #fff; }
.btn-primary:hover { background: #344a3c; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--hairline-strong); }
.btn-ghost:hover { background: rgba(0,0,0,0.03); }
.btn-store {
  background: #1B1F1C;
  color: #fff;
  padding: 12px 20px 12px 18px;
  border-radius: 14px;
  gap: 12px;
}
.btn-store:hover { background: #000; transform: translateY(-1px); }
.btn-store small { display:block; font-size: 10px; letter-spacing: 0.08em; opacity: 0.75; text-transform: uppercase; line-height: 1; margin-bottom: 3px; font-weight: 500; }
.btn-store strong { display:block; font-size: 17px; font-weight: 600; line-height: 1; }
.btn-store .store-text { text-align: left; }

/* "Notify me" inline form */
.notify {
  display: flex;
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: var(--r-pill);
  padding: 6px 6px 6px 22px;
  align-items: center;
  gap: 8px;
  max-width: 460px;
  box-shadow: var(--shadow-sm);
}
.notify input {
  flex: 1;
  border: none; outline: none; background: transparent;
  font: inherit; color: var(--ink);
  padding: 10px 0;
  min-width: 0;
}
.notify input::placeholder { color: var(--muted-2); }
.notify button {
  border: none;
  background: var(--sage-deep);
  color: #fff;
  padding: 12px 22px;
  border-radius: var(--r-pill);
  font: inherit; font-weight: 500; font-size: 14px;
  cursor: pointer;
  transition: background .15s ease;
}
.notify button:hover { background: #344a3c; }

/* Tag chip — matches app's category pills */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px;
  background: var(--sage-soft);
  color: var(--sage-deep);
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  border-radius: var(--r-pill);
}
.chip.terracotta { background: var(--terracotta-soft); color: #8a4a30; }
.chip.plum { background: var(--plum-soft); color: #6b4858; }

/* Section spacing */
section { padding: 96px 0; }
section.tight { padding: 64px 0; }

/* hairline divider */
.rule { height: 1px; background: var(--hairline); border: 0; margin: 0; }

/* Arabic */
.ar { font-family: var(--arabic); direction: rtl; line-height: 1.4; font-weight: 400; }

/* Card primitive */
.card {
  background: var(--card);
  border-radius: var(--r-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--hairline);
}
