/* ---------------------------------------------------------------------------
 * Shared stylesheet for the three STANDALONE pages App Store Connect points at
 * (/support, /privacy-policy, /marketing).
 *
 * Deliberately plain HTML + CSS rather than Next routes. An App Store reviewer
 * opens these cold, on an unknown network, signed out — they must render with
 * no JavaScript, no auth, no app shell and no service worker. The in-app
 * /privacy and /terms screens stay where they are for users inside the app;
 * these are the public, linkable versions of the same commitments.
 *
 * Palette and type mirror app/globals.css (Deep Plum + Coral, Cairo/Tajawal)
 * so the pages read as the same product, not as a legal annex someone bolted on.
 * ------------------------------------------------------------------------- */
:root {
  --plum: #2B1036;
  --fig: #3A1A47;
  --fig-2: #48265A;
  --cream: #FFEAD6;
  --clay: #C9B4D9;
  --coral: #FF6B6B;
  --peach: #FFB26B;
  --mint: #34D399;
  --hairline: #4C2E5B;
  --radius: 16px;
  --radius-sm: 13px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--plum);
  color: var(--cream);
  font-family: Tajawal, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.75;
  /* The notch, for the reviewer who opens this inside a WebView. */
  padding: env(safe-area-inset-top, 0) env(safe-area-inset-right, 0)
           env(safe-area-inset-bottom, 0) env(safe-area-inset-left, 0);
}

.wrap { max-width: 46rem; margin: 0 auto; padding: 2.5rem 1.25rem 4rem; }

h1, h2, h3, .display {
  font-family: Cairo, system-ui, -apple-system, sans-serif;
  font-weight: 800;
  line-height: 1.25;
  margin: 0;
}

h1 { font-size: clamp(2rem, 7vw, 2.75rem); }
h2 { font-size: 1.3rem; margin-bottom: .5rem; }

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

a { color: var(--peach); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--coral); }

/* Wordmark ---------------------------------------------------------------- */
.brand { display: flex; align-items: center; gap: .75rem; margin-bottom: 2rem; }
.brand img { width: 64px; height: 64px; border-radius: 16px; }
.brand .name { font-family: Cairo, sans-serif; font-weight: 800; font-size: 1.15rem; }
.brand .sub { color: var(--clay); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; }

.lede { color: var(--clay); font-size: 1.05rem; margin-top: .75rem; }

/* Cards ------------------------------------------------------------------- */
.card {
  background: var(--fig);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
  margin: 1rem 0;
}
.card h2 { color: var(--peach); }
.card p, .card li { color: rgba(255, 234, 214, .88); font-size: .97rem; }

ul { margin: 0 0 0 0; padding-inline-start: 1.15rem; }
li { margin-bottom: .45rem; }
li:last-child { margin-bottom: 0; }

.label {
  font-family: Cairo, sans-serif;
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--clay);
  margin-bottom: .35rem;
}

/* Call to action ---------------------------------------------------------- */
.cta {
  display: inline-block;
  background: linear-gradient(90deg, var(--coral) 0%, var(--peach) 100%);
  color: var(--plum);
  font-family: Cairo, sans-serif;
  font-weight: 800;
  text-decoration: none;
  padding: .85rem 1.75rem;
  border-radius: var(--radius);
  margin-top: .5rem;
}
.cta:hover { color: var(--plum); opacity: .93; }

/* The English half of every page. Same content, opposite direction. */
.alt {
  direction: ltr;
  text-align: left;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--hairline);
}

.meta { color: var(--clay); font-size: .85rem; margin-top: 2.5rem; }

.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps li {
  counter-increment: step;
  position: relative;
  padding-inline-start: 2.5rem;
  margin-bottom: 1rem;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  inset-inline-start: 0;
  top: .15rem;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 999px;
  background: var(--fig-2);
  color: var(--peach);
  font-family: Cairo, sans-serif;
  font-weight: 800;
  font-size: .9rem;
  display: grid;
  place-items: center;
}

.footnote {
  color: var(--clay);
  font-size: .85rem;
  border-inline-start: 3px solid var(--hairline);
  padding-inline-start: .9rem;
  margin-top: 1.5rem;
}
