:root {
  --bg: #17122A;
  --raised: #221B3C;
  --text: #F5E6D3;
  --muted: #B9A9B8;
  --line: rgba(245, 230, 211, 0.12);
  --mark: #F2C79B;
  --ink: #1B1530;
  --dusk: linear-gradient(180deg, #3A2B5C 0%, #5E4775 45%, #B07A78 80%, #D9A184 100%);
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --arabic: "Noto Naskh Arabic", "Geeza Pro", serif;
  --gutter: clamp(20px, 5vw, 48px);
  --wide: 1120px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: inherit; text-decoration-color: rgba(245, 230, 211, 0.35); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--mark); }
a:focus-visible, .pill:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--mark); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.12; margin: 0; text-wrap: balance; }
p { margin: 0; }
[lang="ar"] { font-family: var(--arabic); letter-spacing: 0; }

.wrap { width: 100%; max-width: calc(var(--wide) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: var(--gutter); top: 12px; z-index: 10; background: var(--text); color: var(--ink); padding: 8px 14px; border-radius: 999px; }

/* Header */

.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }

.wordmark { display: inline-flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 25px; line-height: 1; text-decoration: none; color: var(--text); }
.wordmark img { width: 30px; height: 30px; border-radius: 8px; }

.site-nav { display: flex; gap: clamp(16px, 4vw, 30px); }
.site-nav a { color: var(--muted); text-decoration: none; font-size: 15px; padding: 8px 0; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--text); }

/* Buttons */

.pill {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 26px;
  background: var(--text); color: var(--ink);
  border-radius: 999px; font-weight: 500; font-size: 16px; text-decoration: none; text-align: center;
}
.pill.is-soon { cursor: default; user-select: none; }

/* Hero */

.hero { padding: clamp(56px, 10vw, 120px) 0 0; }
.hero h1 { font-size: clamp(42px, 8vw, 88px); line-height: 1.04; letter-spacing: -0.02em; max-width: 13ch; }
.hero h1 span { display: block; }
.hero h1 em { font-style: italic; color: var(--mark); }
.hero .lede { margin-top: 26px; font-size: clamp(18px, 2.2vw, 22px); line-height: 1.5; color: var(--muted); max-width: 32em; }
.hero .cta { margin-top: 36px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.hero .cta small { color: var(--muted); font-size: 15px; }

/* Phones */

.phones-outer { margin-top: clamp(48px, 8vw, 88px); position: relative; }
.phones-outer::before { content: ""; position: absolute; inset: 18% 0 0; background: var(--dusk); opacity: 0.35; filter: blur(60px); pointer-events: none; }
.phones-scroll {
  position: relative; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none;
  padding: 8px max(var(--gutter), calc((100vw - var(--wide)) / 2)) 40px;
}
.phones-scroll::-webkit-scrollbar { display: none; }
.phones { display: flex; gap: clamp(14px, 2.4vw, 28px); width: max-content; align-items: flex-start; }
.phone { flex: none; width: clamp(190px, 20vw, 236px); margin: 0; }
.phone:nth-child(even) { margin-top: 48px; }
.phone img { width: 100%; aspect-ratio: 1290 / 2796; object-fit: cover; border-radius: clamp(26px, 3vw, 34px); box-shadow: 0 0 0 1px rgba(245, 230, 211, 0.14), 0 28px 60px rgba(0, 0, 0, 0.5); }
.phone figcaption { margin-top: 14px; color: var(--muted); font-size: 14px; text-align: center; }

/* Sections */

.section { padding: clamp(72px, 12vw, 148px) 0 0; }
.section h2 { font-size: clamp(32px, 4.6vw, 52px); letter-spacing: -0.01em; }
.section .body { margin-top: 20px; color: var(--muted); font-size: clamp(17px, 1.6vw, 19px); max-width: 30em; }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(36px, 6vw, 88px); align-items: center; }
.split.flip > :first-child { order: 2; }

.card { background: var(--raised); border: 1px solid var(--line); border-radius: 22px; }

/* A single affirmation, as on the feed */
.quote { background: var(--dusk); border-radius: 22px; padding: clamp(36px, 6vw, 72px) clamp(24px, 4vw, 48px); text-align: center; min-height: 320px; display: flex; flex-direction: column; justify-content: center; gap: 22px; }
.quote .label { font-size: 12px; letter-spacing: 0.24em; text-transform: uppercase; color: rgba(245, 230, 211, 0.72); }
.quote .line { font-family: var(--serif); font-size: clamp(26px, 3.4vw, 38px); line-height: 1.3; color: #FFF7EC; }

/* Small facts list */
.facts { list-style: none; margin: 0; padding: clamp(10px, 2vw, 18px) clamp(22px, 3vw, 32px); }
.facts li { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.facts li:last-child { border-bottom: 0; }
.facts li span:last-child { color: var(--muted); text-align: end; }

/* Arabic specimen */
.specimen { background: var(--text); color: var(--ink); border-radius: 22px; padding: clamp(28px, 4.4vw, 52px); }
.specimen .ar { font-size: clamp(30px, 4.4vw, 50px); line-height: 1.8; font-weight: 500; }
.specimen .en { margin-top: 18px; padding-top: 18px; border-top: 1px solid rgba(27, 21, 48, 0.14); font-family: var(--serif); font-size: clamp(18px, 1.9vw, 22px); color: #4A3F5C; }

/* Two phones side by side inside a section */
.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(12px, 2vw, 22px); max-width: 480px; }
.pair img { width: 100%; aspect-ratio: 1290 / 2796; object-fit: cover; border-radius: clamp(20px, 2.6vw, 30px); box-shadow: 0 0 0 1px rgba(245, 230, 211, 0.14), 0 22px 48px rgba(0, 0, 0, 0.45); }
.pair img:last-child { margin-top: 40px; }

/* Private */

.private { margin-top: clamp(72px, 12vw, 148px); padding: clamp(56px, 9vw, 104px) 0; background: var(--raised); border-block: 1px solid var(--line); }
.private h2 { font-size: clamp(32px, 4.6vw, 52px); }
.private ul { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); }
.private li { color: var(--muted); font-size: 16px; }
.private li strong { display: block; margin-bottom: 8px; color: var(--text); font-weight: 500; font-size: 18px; }

/* Pricing */

.plans { margin-top: 36px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.plan { padding: clamp(24px, 3.4vw, 40px); }
.plan + .plan { border-inline-start: 1px solid var(--line); }
.plan h3 { font-size: 26px; }
.plan .price { margin-top: 12px; font-family: var(--serif); font-size: clamp(34px, 4vw, 44px); line-height: 1.1; }
.plan .price small { font-family: "Inter", system-ui, sans-serif; font-size: 16px; color: var(--muted); }
.plan .alt { margin-top: 8px; color: var(--muted); font-size: 15px; }
.plan ul { margin: 22px 0 0; padding-inline-start: 1.1em; color: var(--muted); font-size: 16px; }
.plan li + li { margin-top: 6px; }
.fine { margin-top: 22px; color: var(--muted); font-size: 14px; max-width: 52em; }

/* Closing */

.closing { padding: clamp(72px, 12vw, 148px) 0; text-align: center; }
.closing h2 { font-size: clamp(34px, 5vw, 58px); margin: 0 auto 30px; max-width: 16ch; }

/* Footer */

.site-footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: 14px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 22px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--text); }

/* Documents: privacy, terms, help */

.doc { padding: clamp(48px, 8vw, 96px) 0 clamp(64px, 10vw, 120px); }
.doc .col { max-width: 44em; }
.doc h1 { font-size: clamp(36px, 5.6vw, 58px); }
.doc .updated { margin-top: 14px; color: var(--muted); font-size: 14px; }
.doc .intro { margin-top: 24px; font-size: 19px; color: var(--muted); }
.doc h2 { margin-top: 48px; font-size: clamp(24px, 3vw, 30px); }
.doc h3 { margin-top: 30px; font-family: "Inter", system-ui, sans-serif; font-size: 18px; font-weight: 600; }
.doc p, .doc ul, .doc ol { margin-top: 14px; }
.doc ul, .doc ol { padding-inline-start: 1.2em; }
.doc li + li { margin-top: 8px; }
.doc li, .doc p { color: #E4D5C6; }
.doc strong { color: var(--text); font-weight: 600; }
.table-scroll { overflow-x: auto; margin-top: 16px; }
.doc table { width: 100%; border-collapse: collapse; font-size: 15px; }
.doc th, .doc td { text-align: start; padding: 12px 14px 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc th { color: var(--muted); font-weight: 500; }
.contact { margin-top: 36px; padding: clamp(22px, 3vw, 32px); }
.contact h2 { margin-top: 0; }
.contact .mail { display: inline-block; margin-top: 12px; font-family: var(--serif); font-size: clamp(24px, 3.2vw, 32px); text-decoration: none; color: var(--mark); }
.contact p { margin-top: 12px; color: var(--muted); }

@media (max-width: 820px) {
  .split, .plans { grid-template-columns: minmax(0, 1fr); }
  .split.flip > :first-child { order: 0; }
  .plan + .plan { border-inline-start: 0; border-top: 1px solid var(--line); }
  .private ul { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
