/* ============================================================================
   SAND PAGE — the sand sticker skin for the root prose/utility pages
   (support, contact, privacy, terms, refund, refund-request, verify,
   auth/callback). Replaces styles.css + account.css on those pages only
   (2026-08-14, owner ruling: sand goes everywhere except kids/business/teams).

   Two token sets on :root: the sand names (--ink, --gold, ...) and the OLD
   styles.css names (--surface, --cream, --stroke, ...) mapped to sand values,
   so page-local inline styles written against the old tokens (contact.html's
   cards, for example) recolour themselves without markup edits.
   ========================================================================== */

/* Arabic faces for the nav brand's لساني (same files as v2/sand.css). */
@font-face { font-family: 'Amiri'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('/fonts/Amiri-Regular-Arabic.woff2') format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: 'Amiri'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('/fonts/Amiri-Bold-Arabic.woff2') format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: 'Montserrat Arabic'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('/fonts/MontserratArabic-Regular.woff2') format('woff2'), url('/fonts/MontserratArabic-Regular.woff') format('woff'); }
@font-face { font-family: 'Montserrat Arabic'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('/fonts/MontserratArabic-Bold.woff2') format('woff2'), url('/fonts/MontserratArabic-Bold.woff') format('woff'); }
/* Latin faces, self-hosted (same files as v2/sand.css). verify.html and
   auth/callback.html load no Google Fonts link, so these are their only
   source of Unbounded / Instrument Sans / JetBrains Mono. */
@font-face { font-family: 'Unbounded'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url('/fonts/Unbounded-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Instrument Sans'; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url('/fonts/InstrumentSans-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url('/fonts/JetBrainsMono-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  /* sand */
  --teal: #00A79B;
  --teal-tint: #E0F6F2;
  --sunshine: #FFE9A8;
  --white: #FFFFFF;
  --ink: #2B1500;
  --ink-soft: #6E5335;
  --green: #2EC66D;
  --green-deep: #1E9B54;
  --red: #EF3340;
  --gold: #FFB300;
  --line: 3px solid var(--ink);
  --r-card: 26px;
  --r-pill: 999px;
  --f-disp: 'Unbounded', sans-serif;
  --f-body: 'Instrument Sans', sans-serif;
  --f-mono: 'JetBrains Mono', monospace;
  --f-ar: 'Montserrat Arabic', 'Amiri', serif;

  /* legacy styles.css names, resolved to sand so old consumers keep working */
  --bg: #FFF7E8;
  --surface: #FFFFFF;
  --cream: #2B1500;          /* was "light text on dark"; now it is the ink */
  --cream-muted: #6E5335;
  --secondary: #5C4632;
  --muted: #8A6F52;
  --stroke: rgba(43, 21, 0, 0.16);
  --stroke-strong: #2B1500;
  --gold-2: #FFC533;
  --gold-deep: #D89500;
  --gold-ink: #96650A;
  --on-gold: #2B1500;
  --bg-2: #FFF1D6;
  --coral-ink: #C0392B;
  --f-display: var(--f-disp);
  --f-arabic-hero: var(--f-ar);
  --f-arabic: var(--f-ar);
}

/* single light scheme; no UA dark transform */
:root { color-scheme: only light; }

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--f-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.ar { font-family: var(--f-ar); }

/* the old reveal animation classes must never hide content here */
.reveal { opacity: 1; transform: none; }

/* ---- nav: the sand pill ---------------------------------------------------- */
.nav {
  position: fixed; top: 14px; left: 50%; transform: translateX(-50%);
  z-index: 100;
  display: flex; align-items: center; gap: 22px;
  width: min(92vw, 640px);
  padding: 10px 12px 10px 22px;
  background: var(--white);
  border: var(--line); border-radius: var(--r-pill);
  box-shadow: 0 4px 0 var(--ink);
}
.nav-brand {
  display: inline-flex; align-items: baseline; gap: 8px;
  font-family: var(--f-disp); font-weight: 700; font-size: 19px;
  color: var(--ink); text-decoration: none;
}
.nav-brand .ar { font-size: 15px; color: var(--gold-ink); }
.nav-links { display: flex; gap: 18px; margin-left: auto; }
.nav-links a, .nav-link {
  font-weight: 700; font-size: 14.5px; color: var(--ink); text-decoration: none;
}
.nav-links a:hover, .nav-link:hover { color: var(--teal); }
.nav-cta {
  margin-left: auto;
  white-space: nowrap;
}
.nav-links:not(:empty) + .nav-cta { margin-left: 0; }
.nav-burger { display: none; border: 0; background: none; }
.mobile-menu { display: none; }

/* ---- buttons --------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--f-body); font-weight: 700; font-size: 14.5px;
  color: var(--ink); text-decoration: none; cursor: pointer;
  border: 2.5px solid var(--ink); border-radius: var(--r-pill);
  padding: 10px 22px;
  background: var(--white);
  box-shadow: 0 3px 0 var(--ink);
  transition: transform .12s ease, box-shadow .12s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 5px 0 var(--ink); }
.btn:active { transform: translateY(1px); box-shadow: 0 1px 0 var(--ink); }
.btn-primary { background: var(--gold); }
.btn-ghost { background: var(--white); }

.btn-go {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--f-body); font-weight: 700; font-size: 14px;
  color: var(--ink); text-decoration: none; cursor: pointer;
  background: var(--green);
  border: 2.5px solid var(--ink); border-radius: var(--r-pill);
  padding: 9px 20px;
  box-shadow: 0 3px 0 var(--ink);
  transition: transform .12s ease, box-shadow .12s ease;
}
.btn-go:hover { transform: translateY(-2px); box-shadow: 0 5px 0 var(--ink); }

/* ---- shared bits ----------------------------------------------------------- */
.eyebrow {
  display: inline-block;
  font-family: var(--f-mono); font-weight: 700; font-size: 11.5px;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink);
  background: var(--sunshine);
  border: 2px solid var(--ink); border-radius: var(--r-pill);
  padding: 6px 14px;
}
.wrap-narrow { max-width: 800px; margin: 0 auto; padding: 0 20px; }

/* ---- legal / prose pages --------------------------------------------------- */
.legal-page { padding: 130px 0 90px; }
.legal-header { margin-bottom: 34px; }
.legal-title {
  font-family: var(--f-disp); font-weight: 700;
  font-size: clamp(28px, 4.6vw, 42px); letter-spacing: -.015em;
  color: var(--ink); margin: 14px 0 10px;
}
.legal-meta { font-family: var(--f-mono); font-size: 12.5px; color: var(--ink-soft); }
.legal-intro { font-size: 16.5px; color: var(--ink); max-width: 62ch; margin-top: 12px; }

.legal-sections { display: grid; gap: 18px; }
.legal-section {
  padding: 28px 0 0;
  border-top: 2px solid rgba(43, 21, 0, .12);
}
.legal-section:first-child { border-top: 0; padding-top: 0; }
.legal-section-head { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.legal-section-icon {
  flex: 0 0 auto; width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--teal-tint);
  border: 2px solid var(--ink); border-radius: 12px;
  color: var(--ink);
}
.legal-section-icon svg { width: 20px; height: 20px; }
.legal-section-title { font-family: var(--f-body); font-weight: 700; font-size: 18.5px; color: var(--ink); }
.legal-section-body { font-size: 15px; color: var(--ink); }
.legal-section-body p { margin-bottom: 12px; }
.legal-section-body p:last-child { margin-bottom: 0; }
.legal-section-body a { color: var(--ink); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.legal-section-body a:hover { color: var(--teal); }
.legal-subhead {
  font-family: var(--f-mono); font-weight: 700; font-size: 12px;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--gold-ink); margin: 18px 0 8px;
}
.legal-list { margin: 10px 0 12px; padding-left: 22px; }
.legal-list li { margin-bottom: 7px; }
.legal-list li::marker { color: var(--gold-ink); }
.legal-contact-col { display: flex; flex-direction: column; gap: 3px; }
.legal-contact-label { font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); }
.legal-contact-email { font-weight: 700; color: var(--ink); }
.legal-footer-ack { margin-top: 26px; font-size: 13.5px; color: var(--ink-soft); }

/* ---- support / account-shell pages ---------------------------------------- */
.ac-body { background: var(--bg); }
.ac-shell { max-width: 880px; margin: 0 auto; padding: 130px 20px 90px; }
.ac-head { margin-bottom: 34px; }
.ac-head h1 {
  font-family: var(--f-disp); font-weight: 700;
  font-size: clamp(26px, 4.2vw, 38px); letter-spacing: -.015em;
  color: var(--ink); margin-top: 12px;
}
.ac-email { font-family: var(--f-mono); font-size: 13px; color: var(--ink-soft); margin-top: 8px; }
.ac-section { margin: 0 0 40px; }
.ac-h2 { font-family: var(--f-disp); font-weight: 700; font-size: 21px; color: var(--ink); margin-bottom: 16px; }
.ac-note { font-size: 13.5px; color: var(--ink-soft); margin-top: 10px; min-height: 1em; }
.ac-note.is-ok { color: var(--green-deep); font-weight: 600; }
.ac-note.is-err { color: var(--red); font-weight: 600; }

.card {
  background: var(--white);
  border: var(--line); border-radius: var(--r-card);
  box-shadow: 5px 5px 0 var(--ink);
  padding: 18px 22px;
  margin-bottom: 14px;
}
.empty {
  background: var(--teal-tint);
  border: var(--line); border-radius: var(--r-card);
  box-shadow: 5px 5px 0 var(--ink);
  padding: 22px; font-size: 14.5px; color: var(--ink);
}
.empty a { color: inherit; font-weight: 700; }
.empty-lead { display: block; font-weight: 700; margin-bottom: 4px; }

.badge {
  font-family: var(--f-mono); font-weight: 700; font-size: 10.5px;
  letter-spacing: .08em; text-transform: uppercase;
  border: 2px solid var(--ink); border-radius: 999px;
  padding: 4px 10px;
}
.badge.paid { background: var(--green); color: var(--ink); }
.badge.pending { background: var(--sunshine); color: var(--ink); }
.badge.refunded { background: var(--teal-tint); color: var(--ink); }

.ac-vol-dl {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 700; font-size: 13.5px; color: var(--ink);
  cursor: pointer;
  background: var(--white);
  border: 2.5px solid var(--ink); border-radius: var(--r-pill);
  padding: 8px 18px;
  box-shadow: 0 3px 0 var(--ink);
  transition: transform .12s ease, box-shadow .12s ease;
}
.ac-vol-dl:hover { transform: translateY(-2px); box-shadow: 0 5px 0 var(--ink); }

/* support thread */
.sp-back { font-weight: 700; color: var(--ink); cursor: pointer; background: none; border: 0; padding: 0; text-decoration: underline; text-underline-offset: 2px; }
.sp-list { display: grid; gap: 10px; }
.sp-ticket {
  background: var(--white); border: 2.5px solid var(--ink); border-radius: 14px;
  box-shadow: 3px 3px 0 var(--ink); padding: 14px 16px; cursor: pointer;
  transition: transform .12s ease;
}
.sp-ticket:hover { transform: translateY(-2px); }
.sp-t-subj { font-weight: 700; color: var(--ink); }
.sp-t-main { font-size: 13px; color: var(--ink-soft); }
.sp-t-meta { font-family: var(--f-mono); font-size: 11px; color: var(--ink-soft); }
.sp-thread { display: grid; gap: 10px; }
.sp-thread-head { display: flex; align-items: center; gap: 12px; }
.sp-bubble {
  border: 2.5px solid var(--ink); border-radius: 14px;
  padding: 12px 14px; font-size: 14px; color: var(--ink);
  max-width: 85%;
}
.sp-bubble.is-user { background: var(--teal-tint); margin-left: auto; }
.sp-bubble.is-support { background: var(--white); margin-right: auto; }
.sp-b-who { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); display: block; margin-bottom: 4px; }
.sp-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--green); margin-right: 6px; }
.sp-field { margin-top: 12px; }
.sp-label { font-weight: 700; font-size: 13px; color: var(--ink); display: block; margin-bottom: 6px; }
.sp-input, .sp-textarea, .sp-select {
  width: 100%; font: 500 14.5px var(--f-body); color: var(--ink);
  background: var(--white);
  border: 2.5px solid var(--ink); border-radius: 12px;
  padding: 11px 14px;
}
@media (pointer: coarse) { .sp-input, .sp-textarea, .sp-select { font-size: 16px; } }
.sp-input:focus, .sp-textarea:focus, .sp-select:focus { outline: 3px solid var(--gold); outline-offset: 1px; }
.sp-submit {
  margin-top: 12px;
  font-weight: 700; font-size: 14px; color: var(--ink); cursor: pointer;
  background: var(--green);
  border: 2.5px solid var(--ink); border-radius: var(--r-pill);
  padding: 10px 22px;
  box-shadow: 0 3px 0 var(--ink);
}
.sp-submit[disabled] { opacity: .55; cursor: wait; }

/* ---- footer ---------------------------------------------------------------- */
.site-footer {
  margin-top: 70px;
  background: var(--ink); color: #FFF7E8;
  padding: 44px 20px 34px;
}
.site-footer a { color: #FFF7E8; text-decoration: none; font-weight: 600; }
.site-footer a:hover { color: var(--gold); }
.site-footer-row {
  max-width: 1000px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.site-footer-brand { font-family: var(--f-disp); font-weight: 700; font-size: 20px; }
.site-footer-brand .ar { color: var(--gold); font-size: 15px; margin-left: 6px; }
.site-footer-links { display: flex; gap: 18px; flex-wrap: wrap; font-size: 14px; }
.site-footer-meta {
  max-width: 1000px; margin: 18px auto 0;
  font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .06em;
  color: rgba(255, 247, 232, .7);
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}

/* ---- responsive ------------------------------------------------------------ */
@media (max-width: 700px) {
  .nav { gap: 12px; padding-left: 16px; }
  .nav-cta { font-size: 13px; padding: 8px 14px; }
  .legal-page { padding-top: 112px; }
  .ac-shell { padding-top: 112px; }
  .legal-section { padding: 22px 0 0; }
}
