/*
 * Shared stylesheet for the static keyword landing pages under /public.
 *
 * These pages are deliberately plain HTML rather than React routes: they are
 * the pages search engines must read without running JavaScript, so they ship
 * their own styling and carry no bundle. The tokens below mirror src/index.css
 * so a visitor crossing from the SPA does not see a different brand.
 */

:root {
  --bg-color: #FEF6E6;
  --surface: #FFFBF1;
  --surface-sunken: #F7EDD9;
  --text-primary: #1D1C1A;
  --text-secondary: #5C564C;
  --accent: #A8552B;
  --accent-soft: #D98B5F;
  --border-color: #E7DAC2;
  --ink: #1D1C1A;
  --on-ink: #FEF6E6;
  --on-ink-muted: #B5ADA0;
  --font-serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg-color);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }

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

.wrap {
  max-width: 760px;
  margin: 0 auto;
  padding-inline: 20px;
}

/* --- Top bar ------------------------------------------------------------- */

.topbar {
  border-bottom: 1px solid var(--border-color);
  background: var(--surface);
}

.topbar .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  align-items: center;
  justify-content: space-between;
  padding-block: 18px;
}

.brand {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-primary);
}

.brand:hover { text-decoration: none; }

.topnav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 0.9rem;
}

.topnav a { color: var(--text-secondary); }

/* --- Page body ----------------------------------------------------------- */

main { padding-block: 56px 72px; }

.eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 18px;
}

h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.1rem, 6vw, 3.1rem);
  line-height: 1.12;
  font-weight: 600;
  margin: 0 0 22px;
  letter-spacing: -0.01em;
}

.lede {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin: 0 0 36px;
}

h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 600;
  line-height: 1.2;
  margin: 48px 0 16px;
}

h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 28px 0 8px;
}

p { margin: 0 0 18px; }

ul { margin: 0 0 20px; padding-left: 22px; }
li { margin-bottom: 8px; }

.card {
  background: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 24px 26px;
  margin: 28px 0;
}

.card h3 { margin-top: 0; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }

.faq {
  border-top: 1px solid var(--border-color);
  padding-top: 20px;
  margin-top: 8px;
}

.faq h3 { margin-top: 0; }

/* --- Call to action ------------------------------------------------------ */

.cta {
  background: var(--ink);
  color: var(--on-ink);
  border-radius: 16px;
  padding: 36px 32px;
  margin: 56px 0 0;
}

.cta h2 { margin-top: 0; color: var(--on-ink); }
.cta p { color: var(--on-ink-muted); }

.btn {
  display: inline-block;
  margin-top: 10px;
  padding: 13px 28px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--ink);
  font-weight: 600;
  font-size: 0.95rem;
}

.btn:hover { text-decoration: none; background: #e9a176; }

/* --- Cross links and footer --------------------------------------------- */

.also {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--border-color);
}

.also h2 { font-size: 1.2rem; margin: 0 0 12px; }

footer {
  border-top: 1px solid var(--border-color);
  margin-top: 64px;
  padding-block: 28px 40px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  main { padding-block: 36px 48px; }
  .cta { padding: 28px 22px; }
}

/* ---------------------------------------------------------------------------
   Right-to-left (Arabic)

   Only the properties that are genuinely side-bound need flipping; everything
   above is written with logical properties or symmetric values, so this block
   stays small. The font stack gains Arabic faces -- Cormorant Garamond has no
   Arabic coverage, so headings would otherwise fall back to whatever the
   device happens to have.
   --------------------------------------------------------------------------- */

[dir="rtl"] {
  --font-serif: 'Noto Kufi Arabic', 'Segoe UI', Tahoma, sans-serif;
  --font-sans: 'Noto Kufi Arabic', 'Segoe UI', Tahoma, sans-serif;
}

[dir="rtl"] body {
  line-height: 1.9;
}

[dir="rtl"] ul {
  padding-left: 0;
  padding-right: 22px;
}

[dir="rtl"] h1,
[dir="rtl"] h2,
[dir="rtl"] h3 {
  letter-spacing: 0;
}

[dir="rtl"] .eyebrow {
  letter-spacing: 0.06em;
}

/* Latin fragments inside Arabic prose -- product names, URLs, "AI IVR" --
   keep their own direction so punctuation does not jump to the wrong end. */
[dir="rtl"] .ltr {
  display: inline-block;
  direction: ltr;
  unicode-bidi: isolate;
}
