/* Isma's site, in the app's Saffron palette (src/theme/colors.ts). */
:root {
  --bg: #fffbf3;
  --surface: #ffffff;
  --sand: #fff1d6;
  --line: #f0e4cc;
  --ink: #1e1a16;
  --muted: #6b6158;
  --accent: #ffc233;
  --accent-edge: #e0a21a;
  --learning: #c2410c;
  --known: #0f766e;
  --known-tint: #ddf2ec;
  --radius: 20px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 "Figtree", system-ui, -apple-system, sans-serif;
}
a { color: var(--ink); }
a:hover { color: var(--learning); }
img { max-width: 100%; height: auto; display: block; }
.ar { font-family: "Noto Naskh Arabic", serif; }

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

/* header */
.top { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 20px; }
.logo img { width: 36px; height: 36px; border-radius: 9px; }
.logo .ar { font-size: 24px; font-weight: 700; line-height: 1; }
.top nav { display: flex; gap: 20px; font-weight: 600; font-size: 15px; }
.top nav a { text-decoration: none; color: var(--muted); }
.top nav a:hover { color: var(--ink); }

/* hero */
.hero { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; padding: 40px 0 72px; }
.hero h1 { font-size: clamp(38px, 6vw, 60px); line-height: 1.05; letter-spacing: -0.03em; font-weight: 800; margin: 0; }
.hero h1 .ar { display: block; font-size: 0.8em; font-weight: 700; margin-bottom: 6px; }
.hero p { font-size: 19px; color: var(--muted); max-width: 30em; margin: 20px 0 28px; }
.art { justify-self: center; width: min(360px, 80vw); aspect-ratio: 1; border-radius: 50%; background: var(--accent); display: flex; align-items: flex-end; justify-content: center; overflow: hidden; }
.art img { width: 74%; margin-bottom: -2%; }

.button {
  display: inline-flex; align-items: center; justify-content: center; height: 56px; padding: 0 26px;
  border-radius: 16px; background: var(--accent); color: var(--ink); font-weight: 800; font-size: 17px;
  text-decoration: none; box-shadow: 0 4px 0 var(--accent-edge);
}
.button:hover { color: var(--ink); transform: translateY(1px); box-shadow: 0 3px 0 var(--accent-edge); }
.soon { display: block; margin-top: 12px; font-size: 14px; color: var(--muted); }

/* sections */
section { padding: 56px 0; }
h2 { font-size: clamp(28px, 4vw, 38px); letter-spacing: -0.02em; line-height: 1.15; margin: 0 0 12px; font-weight: 800; }
.lede { color: var(--muted); font-size: 18px; margin: 0 0 32px; max-width: 36em; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.card { background: var(--surface); border-radius: var(--radius); padding: 24px; box-shadow: 0 1px 2px rgba(30,26,22,.06), 0 8px 24px rgba(30,26,22,.08); }
.card h3 { margin: 0 0 6px; font-size: 20px; font-weight: 800; }
.card p { margin: 0; color: var(--muted); font-size: 16px; }
.step { width: 36px; height: 36px; border-radius: 50%; background: var(--sand); display: flex; align-items: center; justify-content: center; font-weight: 800; margin-bottom: 14px; }

.sample { background: var(--surface); border-radius: var(--radius); padding: 22px 24px; margin-top: 24px; box-shadow: 0 1px 2px rgba(30,26,22,.06), 0 8px 24px rgba(30,26,22,.08); }
.sample .ar { font-size: 30px; line-height: 1.9; text-align: right; }
.spoken { background: #ffd966; border-radius: 9px; padding: 0 6px; }
.learning { color: var(--learning); }
.known { color: var(--known); }
.sample .en { color: var(--muted); margin: 0; }

.dialects { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.dialect { border: 2px solid var(--line); border-radius: var(--radius); padding: 20px 22px; background: var(--surface); }
.dialect .ar { font-size: 26px; float: right; color: var(--muted); }
.dialect h3 { margin: 0; font-size: 19px; font-weight: 800; }
.dialect p { margin: 4px 0 0; color: var(--muted); font-size: 15px; }

.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; max-width: 720px; }
.plan { position: relative; border: 2px solid var(--line); border-radius: var(--radius); padding: 24px; background: var(--surface); }
.plan.best { border-color: var(--ink); background: var(--sand); }
.badge { position: absolute; top: -13px; right: 18px; background: var(--ink); color: var(--accent); font-size: 13px; font-weight: 800; padding: 3px 12px; border-radius: 999px; }
.plan h3 { margin: 0; font-size: 18px; font-weight: 800; }
.price { font-size: 34px; font-weight: 800; letter-spacing: -0.02em; margin: 6px 0 0; }
.price small { font-size: 16px; font-weight: 600; color: var(--muted); }
.plan p { margin: 6px 0 0; color: var(--known); font-weight: 700; font-size: 15px; }
.fine { color: var(--muted); font-size: 14px; margin-top: 16px; }

/* footer */
footer { border-top: 1px solid var(--line); padding: 28px 0 48px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; }
footer nav { display: flex; gap: 20px; }
footer a { color: var(--muted); }

/* legal pages */
.legal { max-width: 760px; padding-top: 24px; padding-bottom: 64px; }
.legal h1 { font-size: clamp(32px, 5vw, 44px); letter-spacing: -0.02em; line-height: 1.1; margin: 16px 0 8px; font-weight: 800; }
.legal .updated { color: var(--muted); margin: 0 0 32px; }
.legal h2 { font-size: 22px; margin: 36px 0 8px; }
.legal p, .legal li { color: #3a332c; }
.legal ul { padding-left: 22px; }
.legal li { margin: 6px 0; }
.legal .box { background: var(--sand); border-radius: 16px; padding: 18px 20px; }
.legal .box p { margin: 0; }
table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 12px 0; display: block; overflow-x: auto; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
th { font-weight: 800; }

@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; padding-top: 16px; text-align: center; }
  .hero p { margin-left: auto; margin-right: auto; }
  .art { grid-row: 1; width: min(280px, 72vw); }
  .cards, .dialects, .plans { grid-template-columns: 1fr; }
  .top nav { gap: 14px; }
}
