:root {
  /* Decision 69: plum-tinted charcoal + violet accent, not neutral
     black/gray + generic blue -- ties into the "Cameo" (gemstone made more
     precious by engraving) naming story without illustrating it literally. */
  --dark: #1e1b2e;
  --dark-soft: #2a2540;
  --cream: #fbf7f1;
  --cream-soft: #f3e9db;
  --accent: #6d28d9;
  --accent-hover: #a78bfa;
  --ink: #1e1b2e;
  --ink-soft: #6b6478;
  --on-dark: #f5f1fa;
  --on-dark-soft: #c7beda;
  --line: #e5ddec;
  --line-on-dark: rgba(245, 241, 250, 0.14);
  --radius: 14px;
  --shadow: 0 8px 30px rgba(30, 27, 46, 0.08);
  --shadow-dark: 0 8px 30px rgba(0, 0, 0, 0.28);
  --font-heading: 'Poppins', -apple-system, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --max-width: 1120px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.5;
}

h1, h2, h3, .nav__logo, .button {
  font-family: var(--font-heading);
}

img {
  max-width: 100%;
}

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

a {
  color: var(--accent);
}

/* --- Nav --- */
/* Solidroad-inspired structural idea (Decision 69): sticky minimal nav --
   not their exact palette. */

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  background: rgba(251, 247, 241, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.nav__logo-mark {
  height: 28px;
  width: auto;
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav__lang-toggle {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-soft);
  text-decoration: none;
}

.nav__lang-toggle:hover {
  color: var(--accent);
}

.button {
  display: inline-block;
  padding: 13px 24px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
}

.button--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 6px 20px rgba(109, 40, 217, 0.28);
}

.button--primary:hover {
  background: var(--accent-hover);
}

.button--ghost {
  background: transparent;
  color: var(--ink-soft);
  box-shadow: none;
}

.button--ghost:hover {
  color: var(--accent);
}

.button--block {
  display: block;
  width: 100%;
  text-align: center;
}

/* Nav on small screens: logo + lang toggle + 2 buttons was overflowing/
   wrapping awkwardly below ~480px. Shrink spacing and the button/lang-toggle
   footprint first; only let the row wrap as a last resort on very narrow
   phones, centered so it still reads as one cohesive header. */
@media (max-width: 640px) {
  .nav {
    padding: 14px 16px;
    gap: 10px 14px;
  }

  .nav__logo {
    font-size: 1.05rem;
    gap: 6px;
  }

  .nav__logo-mark {
    height: 22px;
  }

  .nav__actions {
    gap: 10px;
  }

  .nav__lang-toggle {
    font-size: 0.8rem;
  }

  .button {
    padding: 9px 14px;
    font-size: 0.85rem;
  }
}

@media (max-width: 400px) {
  .nav {
    flex-wrap: wrap;
    justify-content: center;
  }

  .nav__actions {
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* --- Hero --- */
/* Decision 69: dark plum-charcoal hero, alternating with lighter cream
   content sections below -- not one long dark page. */

.hero {
  padding: 104px 24px 80px;
  text-align: center;
  background: radial-gradient(circle at 50% 0%, var(--dark-soft), var(--dark) 60%);
  color: var(--on-dark);
}

.hero h1 {
  font-size: clamp(2.1rem, 4.5vw, 3.5rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 auto 20px;
  max-width: 820px;
  color: var(--on-dark);
}

.hero p {
  font-size: 1.2rem;
  color: var(--on-dark-soft);
  max-width: 640px;
  margin: 0 auto 36px;
}

.hero p.hero__subline {
  font-size: 0.9rem;
  color: var(--on-dark-soft);
  margin: 18px auto 0;
  max-width: 620px;
}

.hero p.hero__subline + p.hero__subline {
  margin-top: 6px;
}

/* Decision 69: real product screenshot as the hero visual -- credibility
   over stock photography/illustration. */
.hero__screenshot {
  margin: 48px auto 0;
  max-width: 820px;
}

.hero__screenshot img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius);
  border: 1px solid var(--line-on-dark);
  box-shadow: var(--shadow-dark);
}

.hero .button--primary:hover {
  background: var(--accent-hover);
  color: var(--dark);
}

/* --- Section shell --- */

section {
  padding: 80px 24px;
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}

.section-header h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  letter-spacing: -0.01em;
  margin: 0 0 12px;
}

.section-header p {
  color: var(--ink-soft);
  margin: 0;
  font-size: 1.02rem;
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

/* Dark-section variants -- .features and .signup opt in below */
.section--dark .section-header h2,
.section--dark .section-header p {
  color: var(--on-dark);
}

.section--dark .section-header p {
  color: var(--on-dark-soft);
}

.section--dark .eyebrow {
  color: var(--accent-hover);
}

/* --- Differentiators --- */

.differentiators {
  background: var(--cream);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}

.card h3 {
  margin: 0 0 10px;
  font-size: 1.05rem;
}

.card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.card p + p {
  margin-top: 10px;
}

/* --- Features --- */
/* Decision 69: dark section, alternating against the light Differentiators/
   Pricing sections either side of it. */

.features {
  background: var(--dark);
}

.feature-list {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
}

.feature-list h3 {
  margin: 0 0 8px;
  font-size: 1rem;
  color: var(--on-dark);
}

.feature-list p {
  margin: 0;
  color: var(--on-dark-soft);
  font-size: 0.92rem;
}

/* --- Pricing --- */

.pricing {
  background: var(--cream-soft);
  text-align: center;
}

.pricing .card {
  max-width: 480px;
  margin: 0 auto;
  text-align: center;
}

/* --- FAQ --- */

.faq {
  background: var(--cream);
}

.faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-list details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 20px;
  background: #fff;
}

.faq-list summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 0.98rem;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::before {
  content: '+';
  display: inline-block;
  width: 1em;
  color: var(--accent);
  font-weight: 700;
}

.faq-list details[open] summary::before {
  content: '\2212';
}

.faq-list details p {
  margin: 12px 0 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

/* --- Signup / CTA --- */

.signup {
  background: var(--dark);
  color: var(--on-dark);
}

.signup-form {
  max-width: 420px;
  margin: 0 auto;
  background: #fff;
  color: var(--ink);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-dark);
}

.field {
  margin-bottom: 16px;
  text-align: start;
}

.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.field input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 0.95rem;
  font-family: var(--font-body);
}

.field input:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.field small {
  display: block;
  margin-top: 4px;
  color: var(--ink-soft);
  font-size: 0.78rem;
}

.form-message {
  margin-top: 14px;
  font-size: 0.9rem;
  padding: 10px 12px;
  border-radius: 10px;
}

.form-message--error {
  background: #fee2e2;
  color: #991b1b;
}

.form-message--success {
  background: #dcfce7;
  color: #166534;
}

/* --- Footer --- */

footer {
  padding: 32px 24px;
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.85rem;
  background: var(--cream);
  border-top: 1px solid var(--line);
}

footer p {
  margin: 0 0 8px;
}

footer p:last-child {
  margin-bottom: 0;
}

.footer__contact a {
  color: var(--ink-soft);
  text-decoration: underline;
}

.footer__contact a:hover {
  color: var(--accent);
}

.footer__contact span {
  margin: 0 6px;
}

/* --- RTL / Arabic (Decision 71) ---
   One stylesheet handles both directions: dir="rtl" on <html> (set on
   /ar/index.html) flips every logical-property/flexbox rule above
   automatically (nav's justify-content: space-between mirrors correctly on
   its own, card/text centering is direction-neutral) -- the only actual
   LTR-specific rule in this file was .field's text-align, already fixed to
   the logical "start" above. This block is purely additive: the Arabic
   typeface swap, which only applies under dir="rtl" and never touches the
   English page. */

[dir='rtl'] body {
  font-family: 'IBM Plex Sans Arabic', var(--font-body);
}

[dir='rtl'] h1,
[dir='rtl'] h2,
[dir='rtl'] h3,
[dir='rtl'] .nav__logo,
[dir='rtl'] .button {
  font-family: 'IBM Plex Sans Arabic', var(--font-heading);
}
