/* Pockety website: the app's pocket identity (teal pocket, brass accents,
   stitched edges) on a warm paper background. */
@font-face { font-family: "Plex Arabic"; src: url("fonts/IBMPlexSansArabic-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plex Arabic"; src: url("fonts/IBMPlexSansArabic-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Plex Arabic"; src: url("fonts/IBMPlexSansArabic-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }

:root {
  --teal: #1e5c57;
  --teal-light: #2a7a72;
  --teal-deep: #174743;
  --brass: #d99a55;
  --brass-deep: #b8752f;
  --on-brass: #2a1a08;
  --stitch: #fff1de;
  --paper: #f6f1e8;
  --card: #fffdf9;
  --ink: #1f2523;
  --muted: #5d6662;
  --line: #e6ddcf;
  --radius: 22px;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Plex Arabic", system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--teal); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--brass); outline-offset: 3px; border-radius: 8px; }

/* Language switching: both languages are in the page; one is shown. */
html[lang="ar"] .en, html[lang="en"] .ar { display: none !important; }

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

/* Header */
.site-header { position: sticky; top: 0; z-index: 10; background: rgba(246, 241, 232, .9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.25rem; color: var(--ink); text-decoration: none; }
.brand img { width: 38px; height: 38px; border-radius: 11px; }
.nav { display: flex; gap: 22px; margin-inline-start: auto; }
.nav a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: .95rem; }
.nav a:hover { color: var(--teal); }
.lang-toggle { border: 1.5px solid var(--line); background: var(--card); color: var(--ink); border-radius: 999px; padding: 6px 14px; font: inherit; font-weight: 600; cursor: pointer; }
.lang-toggle:hover { border-color: var(--teal); }
@media (max-width: 760px) { .nav { display: none; } .lang-toggle { margin-inline-start: auto; } }

/* The pocket: a rounded top and a curved bottom with a stitched edge. */
.pocket {
  position: relative;
  background: linear-gradient(160deg, var(--teal-light), var(--teal) 60%, var(--teal-deep));
  color: #fff;
  border-radius: 34px 34px 50% 50% / 34px 34px 64px 64px;
  box-shadow: 0 24px 50px -24px rgba(23, 71, 67, .55);
}
.pocket::after {
  content: "";
  position: absolute;
  inset: 12px;
  border: 2px dashed rgba(255, 241, 222, .65);
  border-radius: 26px 26px 50% 50% / 26px 26px 56px 56px;
  pointer-events: none;
}

/* Hero */
.hero { padding: 56px 0 40px; }
.hero .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.hero-pocket { padding: 52px 48px 96px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; background: rgba(255, 255, 255, .14); border-radius: 999px; padding: 6px 14px; font-weight: 600; font-size: .9rem; }
.hero h1 { font-size: clamp(2.1rem, 4.4vw, 3.35rem); line-height: 1.15; margin: 18px 0 14px; letter-spacing: -.01em; }
html[lang="ar"] .hero h1 { line-height: 1.35; letter-spacing: 0; }
.hero p.lead { font-size: 1.15rem; opacity: .93; margin: 0 0 28px; max-width: 34em; }
.store-row { display: flex; flex-wrap: wrap; gap: 12px; position: relative; z-index: 1; }
.store-pill { display: inline-flex; align-items: center; gap: 10px; background: var(--brass); color: var(--on-brass); border-radius: 999px; padding: 12px 22px; font-weight: 700; text-decoration: none; }
.store-pill.ghost { background: rgba(255, 255, 255, .14); color: #fff; }
.store-pill small { display: block; font-weight: 600; font-size: .72rem; opacity: .8; line-height: 1.1; }
.store-pill span { line-height: 1.2; }
.hero-phone { justify-self: center; width: min(340px, 100%); }
.phone { border-radius: 34px; overflow: hidden; border: 8px solid #1d2422; background: #1d2422; box-shadow: 0 30px 60px -28px rgba(0, 0, 0, .45); }
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-pocket { padding: 40px 28px 84px; }
}

/* Sections */
section { padding: 64px 0; }
.section-head { max-width: 680px; margin: 0 auto 36px; text-align: center; }
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); line-height: 1.25; margin: 0 0 10px; }
.section-head p { color: var(--muted); font-size: 1.08rem; margin: 0; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 900px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid-3 { grid-template-columns: 1fr; } }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card h3 { margin: 14px 0 6px; font-size: 1.12rem; }
.card p { margin: 0; color: var(--muted); }
.icon-badge { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: #f4e3cf; color: var(--brass-deep); }
.icon-badge.teal { background: #d6ebe7; color: var(--teal); }
.icon-badge svg { width: 24px; height: 24px; }

/* Steps */
.steps { counter-reset: step; }
.step { position: relative; padding-top: 58px; }
.step::before { counter-increment: step; content: counter(step); position: absolute; top: 20px; inset-inline-start: 24px; width: 30px; height: 30px; border-radius: 50%; background: var(--teal); color: #fff; display: grid; place-items: center; font-weight: 700; }
html[lang="ar"] .step::before { content: counter(step, arabic-indic); }

/* Screens */
.screens { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.screens figure { margin: 0; }
.screens figcaption { text-align: center; color: var(--muted); font-weight: 600; margin-top: 12px; font-size: .95rem; }
@media (max-width: 900px) { .screens { grid-template-columns: repeat(2, 1fr); } }

/* Privacy band */
.band { padding: 56px 0; }
.band-pocket { padding: 48px 44px 88px; display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: center; }
.band-pocket h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1.25; margin: 0 0 12px; }
.band-pocket p { opacity: .92; margin: 0; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; position: relative; z-index: 1; }
.checks li { display: flex; gap: 12px; align-items: flex-start; background: rgba(255, 255, 255, .1); border-radius: 14px; padding: 12px 14px; }
.checks svg { flex: none; width: 22px; height: 22px; color: var(--brass); margin-top: 2px; }
@media (max-width: 800px) { .band-pocket { grid-template-columns: 1fr; padding: 36px 26px 80px; } }

/* Pricing */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 900px; margin: 0 auto; }
@media (max-width: 760px) { .plans { grid-template-columns: 1fr; } }
.plan { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.plan.pro { border: 2px solid var(--brass); position: relative; }
.plan h3 { margin: 0; font-size: 1.4rem; }
.plan .tag { color: var(--muted); margin: 4px 0 18px; }
.plan ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.plan li { display: flex; gap: 10px; align-items: flex-start; }
.plan li svg { flex: none; width: 20px; height: 20px; color: var(--teal); margin-top: 3px; }
.plan.pro li svg { color: var(--brass-deep); }
.badge { position: absolute; top: -13px; inset-inline-end: 22px; background: var(--teal); color: #fff; font-weight: 700; font-size: .82rem; border-radius: 999px; padding: 4px 12px; }
.plan-options { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.chip { border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; font-size: .88rem; font-weight: 600; color: var(--muted); background: var(--paper); }
.chip.best { border-color: var(--brass); color: var(--brass-deep); background: #fbefe1; }
.price-note { text-align: center; color: var(--muted); margin-top: 18px; font-size: .95rem; }

/* FAQ */
.faq { max-width: 780px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 4px 22px; }
.faq summary { cursor: pointer; font-weight: 700; padding: 16px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--brass-deep); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 18px; color: var(--muted); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 32px 0 44px; color: var(--muted); font-size: .95rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; }
.site-footer nav { display: flex; gap: 20px; margin-inline-start: auto; }
.site-footer a { color: var(--muted); }

/* Legal pages */
.legal { max-width: 780px; margin: 0 auto; padding: 48px 24px 72px; }
.legal-head { padding: 40px 36px 84px; margin-bottom: 36px; }
.legal-head h1 { margin: 0 0 6px; font-size: clamp(1.8rem, 3.5vw, 2.5rem); line-height: 1.25; }
.legal-head p { margin: 0; opacity: .9; }
.legal h2 { font-size: 1.3rem; margin: 36px 0 10px; }
.legal h3 { font-size: 1.05rem; margin: 22px 0 6px; }
.legal p, .legal li { color: #333b38; }
.legal ul { padding-inline-start: 22px; }
.legal .summary { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 24px; }
.legal .summary ul { margin: 8px 0 0; }
.legal table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: .95rem; }
.legal th, .legal td { text-align: start; border-bottom: 1px solid var(--line); padding: 10px 8px; vertical-align: top; }
.legal th { color: var(--ink); }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.sprite { position: absolute; }
.band-pocket .band-link { margin-top: 14px; }
.band-link a { color: #fff; font-weight: 700; }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: minmax(0, 1fr); } }
body { overflow-x: hidden; }
