@font-face { font-family: Bricolage; src: url(/fonts/BricolageGrotesque-Variable.ttf); font-weight: 200 800; font-display: swap; }
@font-face { font-family: Kufi; src: url(/fonts/ReemKufi-Variable.ttf); font-weight: 400 700; font-display: swap; }
@font-face { font-family: Plex; src: url(/fonts/IBMPlexSansArabic-SemiBold-arabic.woff2) format('woff2'); font-weight: 600; font-display: swap; }

:root { --paper: #FFF6EC; --ink: #1A1613; --red: #C8372D; --teal: #1F7F7C; --saffron: #F2B233;
        --nile: #3F8F5A; --terracotta: #E8896B; --soft: #6E655C;
        --sage: #9FC98A; --sea: #8EC3C2; --butter: #FDE6A8; --lapis: #23367A; --linen: #FBF8F1; --mute: #6E6458; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; background: var(--paper); color: var(--ink); font-family: Bricolage, system-ui, sans-serif; -webkit-font-smoothing: antialiased; }

/* Our promises (built by scripts/build-privacy.mjs) */
main { max-width: 440px; margin: 0 auto; padding: 0 22px 48px; }
.mast { background: var(--red); color: var(--paper); padding: 40px 22px 26px; }
.mast .ar { font-family: Kufi; font-size: 44px; color: var(--saffron); line-height: 1; margin: 0; direction: rtl; text-align: left; }
.mast h1 { font-size: 40px; line-height: 1.02; margin: 10px 0 0; font-weight: 800; letter-spacing: -0.02em; }
.mast p { margin: 10px 0 0; font-weight: 600; font-size: 16px; }
.band { height: 22px; border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink);
  background: var(--saffron) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='18'%3E%3Cpath d='M11 1 L20 9 L11 17 L2 9 Z' fill='%23C8372D' stroke='%231A1613' stroke-width='1.5'/%3E%3Cpath d='M11 5 L16 9 L11 13 L6 9 Z' fill='%23FFF6EC'/%3E%3C/svg%3E") repeat-x center; }
footer { margin-top: 36px; font-size: 13px; color: var(--soft); }
footer a, a.link { color: var(--teal); font-weight: 700; }
h3 { margin: 28px 0 8px; font-size: 18px; }
ul.promises { padding-left: 20px; line-height: 1.5; font-weight: 600; }
ul.kept { padding-left: 20px; line-height: 1.5; color: var(--soft); }

/* The site: halaqa.club and the invite (Halaqa Web v2) */
.site { min-height: 100svh; }
.site a { color: var(--red); }
.wrap { max-width: 1200px; margin: 0 auto; padding-left: 22px; padding-right: 22px; }
.ar { font-family: Kufi; font-weight: 700; line-height: 1.1; direction: rtl; }
.ar-s { font-family: Plex, system-ui, sans-serif; font-weight: 600; direction: rtl; }
.svg { display: block; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.display { font-weight: 800; line-height: 0.95; letter-spacing: -0.04em; margin: 0; text-wrap: balance; }

.logo { display: flex; align-items: baseline; gap: 8px; text-decoration: none; }
.logo .ar { font-size: 28px; color: var(--saffron); }
.logo b { font-size: 18px; font-weight: 800; color: var(--paper); }

.btn { height: 56px; padding: 0 22px; border-radius: 28px; border: 2px solid var(--ink); display: inline-flex; align-items: center;
  justify-content: center; gap: 10px; font: 700 17px Bricolage, system-ui, sans-serif; text-decoration: none; white-space: nowrap;
  cursor: pointer; align-self: flex-start; }
.site .btn.saffron { background: var(--saffron); color: var(--ink); box-shadow: 3px 3px 0 var(--ink); }
.site .btn.red { background: var(--red); color: var(--paper); box-shadow: 3px 3px 0 var(--ink); }
.site .btn.ink { background: var(--ink); color: var(--paper); }
.site .btn.ghost { background: transparent; color: var(--paper); border-color: var(--paper); }
.btn.sm { height: 44px; font-size: 15px; padding: 0 16px; }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }

.tile { border: 2px solid var(--ink); display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--ink); }
.tile.s { width: 46px; height: 46px; border-radius: 14px; }
.tile.m { width: 52px; height: 52px; border-radius: 16px; }
.tile.l { width: 60px; height: 60px; border-radius: 18px; }
.bg-saffron { background: var(--saffron); } .bg-sage { background: var(--sage); } .bg-sea { background: var(--sea); }
.bg-terracotta { background: var(--terracotta); } .bg-paper { background: var(--paper); } .bg-white { background: #fff; }

/* The halaqa card */
.ring { background: #fff; color: var(--ink); border: 2px solid var(--ink); border-radius: 26px; padding: 20px; display: flex; flex-direction: column;
  gap: 12px; box-shadow: 6px 6px 0 var(--ink); }
.ring-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.ring-head .display { font-size: 34px; letter-spacing: -0.04em; overflow-wrap: anywhere; }
.ring-head .ar { font-size: 34px; color: var(--red); white-space: nowrap; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 14px; background: var(--butter);
  border: 1.5px solid var(--ink); font-size: 13.5px; font-weight: 700; }
.chip .ar-s { font-size: 12.5px; }
.chip i { font-style: normal; opacity: 0.45; }
.seats { display: flex; gap: 7px; flex-wrap: wrap; }
.seat { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 26px; font-size: 11.5px; font-weight: 700; }

/* Code tiles */
.code { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.code-tiles { display: flex; gap: 5px; cursor: copy; }
.code-tiles span { width: 36px; height: 44px; border-radius: 10px; border: 2px solid var(--ink); background: #fff; display: flex;
  align-items: center; justify-content: center; font: 800 21px system-ui, -apple-system, sans-serif; color: var(--ink); }
.copy { display: flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 800; text-decoration: none; background: none;
  border: 0; padding: 0; cursor: pointer; font-family: inherit; }

/* Home */
.home-top { background: var(--red); color: var(--paper); }
.nav { display: flex; justify-content: space-between; align-items: center; padding-top: 22px; padding-bottom: 22px; }
.nav-right { display: flex; gap: 22px; align-items: center; }
.nav-right a.link { color: var(--paper); font-size: 15px; }
.hero { display: flex; flex-wrap: wrap; gap: 40px 64px; align-items: center; padding-top: 18px; padding-bottom: 56px; }
.hero-text { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.hero-text > .ar { font-size: clamp(92px, 11vw, 136px); color: var(--saffron); }
.hero-text h1 { font-size: clamp(50px, 7vw, 84px); color: var(--paper); margin-top: -10px; }
.hero-text p { margin: 0; font-size: clamp(19px, 1.8vw, 22px); font-weight: 600; line-height: 1.4; }
.hero-text .btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 10px; }
.hero-text .note { font-size: 15px; font-weight: 600; opacity: 0.85; }
.hero-card { flex: 0 1 370px; min-width: 0; }
.demo { transform: rotate(1.5deg); box-shadow: 8px 8px 0 var(--ink); background: var(--paper); gap: 10px; padding: 22px; }
.demo .top { display: flex; justify-content: space-between; align-items: center; }
.demo .top b { font-size: 15px; }
.demo .when { display: flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 10px; background: var(--ink); color: var(--paper); font-size: 12px; font-weight: 700; }
.demo > .ar { font-size: 74px; color: var(--red); }
.demo .display { font-size: 36px; }
.invite-form { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 10px; }
.invite-form input { height: 56px; width: 200px; border-radius: 28px; border: 2px solid var(--ink); padding: 0 20px; background: var(--paper);
  font: 800 20px Bricolage, system-ui, sans-serif; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink); }

.promises-band { background: var(--teal); border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); }
.promises-band .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; padding-top: 26px; padding-bottom: 32px; }
.promise { display: flex; align-items: center; gap: 12px; color: var(--paper); }
.promise b { display: block; font-size: 16px; font-weight: 700; line-height: 1.3; }
.promise .ar-s { display: block; font-size: 12.5px; color: rgba(255, 246, 236, 0.75); margin-top: 2px; }

.how { padding-top: 44px; padding-bottom: 44px; display: flex; flex-direction: column; gap: 24px; }
.how-title { display: flex; align-items: baseline; gap: 14px; }
.how-title .display { font-size: clamp(36px, 4.4vw, 52px); }
.how-title .ar { font-size: clamp(30px, 3.5vw, 42px); color: var(--red); }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
.step { background: #fff; border: 2px solid var(--ink); border-radius: 24px; padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.step .row { display: flex; justify-content: space-between; align-items: flex-start; }
.step .n { font-size: 28px; font-weight: 800; color: rgba(26, 22, 19, 0.3); }
.step .display { font-size: 24px; }
.step .ar-s { font-size: 13.5px; color: var(--mute); }
.step p { margin: 0; font-size: 15.5px; font-weight: 500; line-height: 1.4; }
.alone { display: flex; align-items: center; gap: 18px; background: var(--linen); border: 1.5px solid var(--lapis); border-radius: 24px; padding: 20px 24px; }
.alone .tile { border: 1.5px solid var(--lapis); color: var(--lapis); background: #fff; }
.alone .t { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.alone .display { font-size: 26px; color: var(--lapis); }
.alone .ar { font-size: 30px; color: var(--lapis); }
.alone p { margin: 4px 0 0; font-size: 15.5px; font-weight: 500; line-height: 1.4; }

.site-foot { background: var(--ink); color: var(--paper); }
.site-foot .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; justify-content: space-between; align-items: center; padding-top: 26px; padding-bottom: 32px; }
.site-foot nav { display: flex; gap: 20px; flex-wrap: wrap; }
.site-foot nav a { color: var(--paper); font-size: 14px; font-weight: 700; }
.site-foot small { flex-basis: 100%; font-size: 13px; font-weight: 500; color: rgba(255, 246, 236, 0.6); }

/* The invite */
.inv-text { background: var(--red); color: var(--paper); padding: 18px 22px 64px; display: flex; flex-direction: column; gap: 6px;
  border-bottom: 2px solid var(--ink); }
.inv-text > .ar { font-size: 66px; color: var(--saffron); margin-top: 16px; }
.inv-text h1 { font-size: 52px; color: var(--paper); margin-top: -4px; }
.host { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 17px; font-weight: 700; }
.inv-card { padding: 0 22px; margin-top: -44px; position: relative; }
.away { display: flex; flex-direction: column; gap: 12px; margin-top: 12px; }
.away .line { display: flex; align-items: center; gap: 12px; font-size: 19px; font-weight: 700; }
.away .copy { color: var(--saffron); }
.do { padding: 30px 22px 28px; display: flex; flex-direction: column; gap: 26px; max-width: 560px; }
.do-step { display: flex; gap: 14px; align-items: flex-start; }
.do-step .body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 10px; padding-top: 4px; }
.do-step .t { display: flex; align-items: baseline; gap: 8px; }
.do-step .display { font-size: 22px; }
.do-step .ar-s { font-size: 13.5px; color: var(--mute); }
.do-step small, .do-step p { font-size: 13.5px; font-weight: 600; color: var(--mute); margin: 0; line-height: 1.4; }
.do-step p { font-size: 15.5px; }
.do .copy { color: var(--red); }
.fine { display: flex; align-items: center; gap: 10px; padding-top: 12px; border-top: 1.5px solid rgba(26, 22, 19, 0.12);
  font-size: 14px; font-weight: 600; color: var(--mute); }
.sorry { padding: 26px 22px; display: flex; flex-direction: column; gap: 18px; max-width: 560px; }
.sorry .line { display: flex; align-items: center; gap: 12px; font-size: 17px; font-weight: 700; }
.sorry .alone { padding: 18px; border-radius: 22px; }
.sorry .alone .display { font-size: 22px; }

@media (min-width: 720px) {
  .wrap { padding-left: 56px; padding-right: 56px; }
  .hero { padding-top: 40px; padding-bottom: 88px; }
  .how { padding-top: 80px; padding-bottom: 80px; gap: 28px; }
  .promises-band .wrap { grid-template-columns: repeat(4, 1fr); }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .inv-top { background: var(--red); border-bottom: 2px solid var(--ink); }
  .inv-in { max-width: 1000px; margin: 0 auto; padding: 40px 48px 48px; display: flex; flex-wrap: wrap; gap: 40px; align-items: center; }
  .inv-text { flex: 1 1 360px; padding: 0; border: 0; gap: 14px; }
  .inv-text > .ar { font-size: 76px; margin-top: 10px; }
  .inv-text h1 { font-size: 62px; }
  .inv-card { flex: 0 1 340px; padding: 0; margin: 0; }
  .do, .sorry { margin: 0 auto; padding-top: 44px; }
  body.away-only { background: var(--red); }
  body.away-only .inv-top { min-height: 100svh; display: flex; align-items: center; border-bottom: 0; }
  body.away-only .inv-in { width: 100%; }
}
@media (max-width: 719px) { .nav-right .btn { display: none; } }
