/* SellerAnchor public website
   Static, dependency-free, no scripts. Shared by index.html, ar.html, privacy.html and terms.html.
   Brand tokens: public/selleranchor/brand/tokens.json

   Arabic typeface: Cairo (SIL Open Font License), self-hosted.
   Uses an installed copy first, then fonts/cairo-arabic.woff2 next to this file.
   Serving the file requires `font-src 'self'` in _headers. Until then the system Arabic stack is used. */

@font-face {
  font-family: "Cairo";
  font-style: normal;
  font-weight: 200 1000;
  font-display: swap;
  src: local("Cairo"), local("Cairo Regular"), local("Cairo-Regular"),
       url("fonts/cairo-arabic.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF,
                 U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}

:root {
  --ink: #132f36;
  --sea: #087568;
  --sea-deep: #065a50;
  --paper: #f8faf7;
  --muted: #52656a;
  --line: #d9e3df;
  --surface: #ffffff;
  --tide: #e6efeb;
  --tide-line: #c7d7d0;
  --attention: #8a4a10;
  --attention-tint: #f6ead9;
  --focus: #b85b24;
  --focus-on-dark: #f3c08f;

  --sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --measure: 62ch;
  --gutter: clamp(20px, 4vw, 48px);
  --header-h: 80px;

  color-scheme: light;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  font-variant-numeric: tabular-nums;
}

html[lang="ar"] {
  --sans: "Cairo", system-ui, -apple-system, "SF Arabic", "Segoe UI", "Noto Sans Arabic", "Geeza Pro", Tahoma, sans-serif;
  font-size: 17px;
  line-height: 1.8;
}

/* Arabic text on English pages (language links) also uses Cairo */
:lang(ar) { font-family: "Cairo", system-ui, "SF Arabic", "Segoe UI", "Noto Sans Arabic", "Geeza Pro", Tahoma, sans-serif; }
html[lang="ar"] :lang(en) { font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif; }

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
img { max-width: 100%; height: auto; }

a { color: var(--sea); text-decoration-thickness: 1px; text-underline-offset: 0.25em; }
a:hover { color: var(--sea-deep); text-decoration-thickness: 2px; }

a:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

p { margin: 0 0 1em; color: var(--muted); }
strong { color: var(--ink); font-weight: 650; }

h1, h2, h3 { margin: 0; color: var(--ink); text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 5.6vw, 4.25rem); line-height: 1.04; letter-spacing: -0.035em; font-weight: 750; margin-bottom: 24px; }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); line-height: 1.15; letter-spacing: -0.025em; font-weight: 700; margin-bottom: 16px; }
h3 { font-size: 1.15rem; line-height: 1.4; font-weight: 650; margin-bottom: 6px; }

html[lang="ar"] h1,
html[lang="ar"] h2,
html[lang="ar"] h3 { letter-spacing: 0; }
html[lang="ar"] h1 { font-size: clamp(2.3rem, 5vw, 3.75rem); line-height: 1.3; font-weight: 800; }
html[lang="ar"] h2 { line-height: 1.35; font-weight: 750; }

.wrap { width: min(1160px, calc(100% - 2 * var(--gutter))); margin-inline: auto; }

[id] { scroll-margin-top: calc(var(--header-h) + 16px); }

/* Skip link */
.skip {
  position: absolute;
  inset-inline-start: 16px;
  top: -120px;
  z-index: 20;
  padding: 12px 18px;
  background: var(--ink);
  color: var(--surface);
  font-weight: 650;
  border-radius: 8px;
  text-decoration: none;
}
.skip:focus, .skip:focus-visible { top: 12px; color: var(--surface); }

/* Header, shared with policy pages */
header.wrap {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 28px;
  min-height: var(--header-h);
  padding-block: 12px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--ink);
  font-size: 1.25rem;
  font-weight: 750;
  letter-spacing: -0.03em;
  text-decoration: none;
  white-space: nowrap;
}
.brand:hover { color: var(--ink); }
.brand img { width: 34px; height: 34px; flex: none; }
html[lang="ar"] .brand { letter-spacing: 0; font-weight: 800; }

header.wrap nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px;
  margin-inline-start: auto;
  font-size: 0.95rem;
}
header.wrap nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: 12px;
  border-radius: 8px;
  color: var(--ink);
  text-decoration: none;
}
header.wrap nav a:hover { background: var(--tide); color: var(--ink); }

.language,
header.wrap nav a[lang] {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: 16px;
  border: 1px solid var(--tide-line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.language:hover, header.wrap nav a[lang]:hover { border-color: var(--sea); background: var(--surface); color: var(--sea-deep); }

/* Homepage header bar */
.site-header-bar { border-bottom: 1px solid var(--line); background: var(--paper); }

/* Sticky header on larger screens only (keeps small screens uncluttered) */
@media (min-width: 721px) {
  .site-header-bar {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(248, 250, 247, 0.96);
    border-bottom: 1px solid var(--line);
  }
}

/* Buttons and links */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 12px 26px;
  background: var(--sea);
  color: var(--surface);
  border-radius: 10px;
  font-weight: 650;
  text-decoration: none;
  text-align: center;
}
.button:hover { background: var(--sea-deep); color: var(--surface); }

.text-link { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }

/* Hero */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
  padding-block: clamp(44px, 7vw, 96px) clamp(56px, 8vw, 104px);
}

.lead {
  font-size: 1.2rem;
  line-height: 1.6;
  max-width: 44ch;
  color: var(--ink);
}
html[lang="ar"] .lead { font-size: 1.15rem; line-height: 1.85; }

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; margin: 32px 0 24px; }

.availability-note {
  max-width: 50ch;
  margin: 0;
  padding-inline-start: 14px;
  border-inline-start: 3px solid var(--sea);
  font-size: 0.95rem;
}
.availability-note strong { display: block; }

/* Profit trace: the one signature element. Synthetic illustration. */
.trace {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: clamp(20px, 3vw, 32px);
  box-shadow: 0 24px 48px -32px rgba(19, 47, 54, 0.35);
}

.trace-head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 20px; }
.trace-head img { width: 28px; height: 28px; flex: none; margin-top: 2px; }
.trace-head h2 { font-size: 1.1rem; letter-spacing: 0; margin: 0; line-height: 1.4; }
.trace-head p { margin: 0; font-size: 0.875rem; }

.synthetic {
  flex: none;
  margin-inline-start: auto;
  padding: 2px 10px;
  border: 1px dashed var(--muted);
  border-radius: 999px;
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--ink);
  white-space: nowrap;
}

.trace-table { width: 100%; border-collapse: collapse; }
.trace-table caption {
  caption-side: top;
  text-align: start;
  padding-bottom: 8px;
  font-size: 0.875rem;
  color: var(--muted);
}
.trace-table th,
.trace-table td { padding: 7px 0; vertical-align: middle; }
.trace-table th { text-align: start; font-weight: 500; font-size: 0.9375rem; color: var(--ink); width: 34%; padding-inline-end: 12px; }
.trace-table th small { display: block; font-size: 0.8125rem; font-weight: 600; color: var(--attention); }
.trace-table .amount { text-align: end; white-space: nowrap; font-size: 0.9375rem; color: var(--ink); padding-inline-start: 12px; width: 1%; }
.trace-table .bar-cell { width: auto; }

.track { display: block; height: 14px; border-radius: 4px; background: var(--tide); }
.bar { display: block; height: 100%; border-radius: 4px; }
.bar.in { background: var(--ink); }
.bar.out { background: #6f8a83; }
.bar.gap { background: var(--attention); }
.bar.result { background: var(--sea); }

.t-sales   { margin-inline-start: 0;     width: 100%; }
.t-fees    { margin-inline-start: 68.1%; width: 31.9%; }
.t-refunds { margin-inline-start: 61.8%; width: 6.3%; }
.t-costs   { margin-inline-start: 22.8%; width: 39%; }
.t-profit  { margin-inline-start: 0;     width: 22.8%; }

.trace-table tfoot th,
.trace-table tfoot td { padding-top: 14px; border-top: 2px solid var(--ink); }
.trace-table tfoot th { font-weight: 700; }
.trace-table tfoot .amount { font-size: 1.35rem; font-weight: 750; color: var(--sea-deep); }

.trace-checks { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 8px; }
.trace-checks li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 2px 16px;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--paper);
  font-size: 0.9375rem;
  color: var(--ink);
}
.trace-checks b { font-weight: 650; color: var(--attention); }

.trace .caption { margin: 16px 0 0; font-size: 0.875rem; }

/* Generic section */
.section { padding-block: clamp(64px, 8vw, 112px); }
.section-head { max-width: 46rem; margin-bottom: clamp(32px, 4vw, 48px); }
.section-head p { font-size: 1.1rem; max-width: var(--measure); }

/* Questions sellers ask */
.questions { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 4vw, 56px); }
.questions li { padding-inline-start: 18px; border-inline-start: 3px solid var(--sea); }
.questions h3 { font-size: 1.3rem; line-height: 1.3; margin-bottom: 12px; }
html[lang="ar"] .questions h3 { line-height: 1.5; }
.questions p { margin: 0; }
.questions strong { display: block; margin-bottom: 4px; color: var(--sea-deep); }

/* Steps: a genuine sequence */
.flow { background: var(--tide); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; counter-reset: step; }
.steps li {
  counter-increment: step;
  position: relative;
  padding: 24px;
  background: var(--paper);
  border-radius: 14px;
}
.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--surface);
  font-weight: 700;
}
.steps p { margin: 0; }

/* Availability */
.scope { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0 0 24px; }
.scope > div { padding: 24px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); }
.scope > div.planned { background: transparent; border-style: dashed; border-color: var(--tide-line); }
.scope > div.excluded { background: transparent; border-color: transparent; padding-inline: 0; }
.scope dt { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.05rem; color: var(--ink); }
.scope dt::before { content: ""; flex: none; width: 12px; height: 12px; border-radius: 50%; }
.scope .current dt::before { background: var(--sea); }
.scope .planned dt::before { border: 2px solid var(--sea); }
.scope .excluded dt::before { width: 14px; height: 2px; border-radius: 0; background: var(--muted); }
.scope dd { margin: 6px 0 0; }
.scope .scope-status { display: block; font-size: 0.875rem; color: var(--muted); margin-bottom: 12px; }
.scope ul { margin: 0; padding-inline-start: 1.1em; color: var(--ink); }
.scope li + li { margin-top: 6px; }
.scope li::marker { color: var(--muted); }

.pricing {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
  gap: 12px 40px;
  align-items: start;
  padding: clamp(24px, 3vw, 36px);
  background: var(--tide);
  border-radius: 20px;
}
.pricing h3 { font-size: 1rem; color: var(--muted); font-weight: 600; margin-bottom: 4px; }
.pricing .price { margin: 0; font-size: clamp(1.4rem, 2.4vw, 1.75rem); line-height: 1.25; font-weight: 750; letter-spacing: -0.02em; color: var(--ink); }
html[lang="ar"] .pricing .price { letter-spacing: 0; line-height: 1.5; }
.pricing p:last-child { margin-bottom: 0; }

/* FAQ, native details */
.faq { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 32px clamp(32px, 6vw, 88px); align-items: start; }
.faq .section-head { margin-bottom: 0; }
.faq-list { border-top: 1px solid var(--line); }
details { border-bottom: 1px solid var(--line); }
summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  min-height: 64px;
  padding-block: 16px;
  cursor: pointer;
  list-style: none;
  font-weight: 650;
  font-size: 1.05rem;
  color: var(--ink);
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+";
  flex: none;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--tide);
  font-weight: 500;
  font-size: 1.25rem;
  line-height: 1;
  color: var(--sea-deep);
}
details[open] summary::after { content: "\2212"; background: var(--sea); color: var(--surface); }
summary:hover { color: var(--sea-deep); }
details p { max-width: var(--measure); padding-bottom: 12px; }

/* Contact */
.contact {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 40px clamp(32px, 6vw, 80px);
  margin-block: 0 clamp(48px, 6vw, 80px);
  padding: clamp(28px, 5vw, 56px);
  background: var(--ink);
  border-radius: 24px;
  color: var(--surface);
}
.contact h2 { color: var(--surface); }
.contact p { color: #d4e2e2; }
.contact strong { color: var(--surface); }
.contact a { color: #dcf3ea; }
.contact a:hover { color: var(--surface); }
.contact a:focus-visible { outline-color: var(--focus-on-dark); }
.contact .button { background: var(--surface); color: var(--ink); margin-top: 12px; }
.contact .button:hover { background: #dcf3ea; color: var(--ink); }
.contact .operator { margin-top: 28px; padding-top: 20px; border-top: 1px solid #3a5960; font-size: 0.95rem; }

.contact-links { margin: 0; display: grid; gap: 4px; }
.contact-links > div { display: grid; gap: 2px; padding: 14px 18px; border-radius: 12px; background: #1b3d45; }
.contact-links dt { font-size: 0.9rem; color: #c3d5d6; }
.contact-links dd { margin: 0; font-size: 1.05rem; font-weight: 600; }
.contact-links dd a { overflow-wrap: anywhere; }
.contact .warning { margin: 16px 0 0; font-size: 0.9rem; color: #c3d5d6; }

.email { direction: ltr; unicode-bidi: isolate; display: inline-block; }

/* Footer, shared with policy pages */
body > footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 28px;
  padding-block: 32px 44px;
  border-top: 1px solid var(--line);
  font-size: 0.9375rem;
}
body > footer p { margin: 0; }
body > footer .links { display: flex; flex-wrap: wrap; gap: 0 20px; margin-inline-start: auto; }
body > footer .links a { display: inline-flex; align-items: center; min-height: 44px; }
body > footer .links a[aria-current="page"] { color: var(--ink); font-weight: 650; text-decoration: none; }
body > footer .fine { width: 100%; font-size: 0.875rem; }

/* Policy pages (markup unchanged) */
body > header.wrap { border-bottom: 1px solid var(--line); }
.site-header-bar > header.wrap { border-bottom: 0; }
.legal { max-width: 740px; padding-block: 64px 88px; }
.legal h1 { font-size: clamp(2.4rem, 5vw, 3.25rem); }
.legal h2 { font-size: 1.4rem; letter-spacing: -0.015em; margin-top: 40px; margin-bottom: 10px; }
.legal p, .legal li { max-width: var(--measure); }
.legal li { color: var(--muted); margin-bottom: 10px; }
.legal .updated { font-size: 0.9375rem; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.legal address { font-style: normal; color: var(--muted); }

/* Responsive */
@media (max-width: 980px) {
  .hero { grid-template-columns: minmax(0, 1fr); }
  .trace { max-width: 620px; }
  .questions, .steps, .scope { grid-template-columns: minmax(0, 1fr); }
  .questions { gap: 28px; }
  .scope > div.excluded { padding-inline: 24px; border-color: var(--line); border-style: solid; }
  .faq { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 720px) {
  :root { --header-h: 64px; }
  header.wrap { gap: 4px 12px; padding-block: 10px 6px; }
  header.wrap nav { order: 3; margin-inline: -12px; width: calc(100% + 24px); }
  header.wrap nav a[lang] { margin-inline-start: auto; margin-inline-end: 12px; }
  .language { margin-inline-start: auto; }
  .pricing, .contact { grid-template-columns: minmax(0, 1fr); }
  .steps li { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 0 16px; padding: 20px; }
  .steps li::before { grid-row: span 2; margin: 0; }
  body > footer .links { margin-inline-start: 0; width: 100%; }
  body > footer .brand { width: 100%; }
  .legal { padding-block: 44px 64px; }
}

@media (max-width: 420px) {
  .brand { font-size: 1.15rem; gap: 8px; }
  .brand img { width: 30px; height: 30px; }
  .language { padding-inline: 12px; }
  header.wrap nav a { padding-inline: 10px; font-size: 0.9375rem; }
  .actions { align-items: stretch; }
  .actions .button { width: 100%; }
  .trace-head { flex-wrap: wrap; }
  .synthetic { margin-inline-start: 0; }
  .trace-table th { width: 40%; }
  .contact .button { width: 100%; }
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

@media (forced-colors: active) {
  .trace, .pricing, .contact, .synthetic, .language, .scope > div, .steps li { border: 1px solid CanvasText; }
  .bar { forced-color-adjust: none; }
  .button { border: 2px solid ButtonText; }
}

@media print {
  .skip, header.wrap nav, .language, .actions, .contact .button { display: none; }
  .site-header-bar { position: static; }
  :root { background: #fff; }
  .hero, .questions, .steps, .scope, .pricing, .faq, .contact { display: block; }
  .trace, .contact, .steps li, .scope > div { box-shadow: none; break-inside: avoid; margin-bottom: 12px; }
  .flow, .pricing { background: #fff; }
  .contact { background: #fff; color: var(--ink); border: 1px solid var(--line); }
  .contact h2, .contact p, .contact a, .contact dt, .contact strong, .contact .warning { color: var(--ink); }
  .contact-links > div { background: #fff; }
}
