/* FastHaul website (docs/05-production/website-plan.md). One stylesheet, no framework. */

@font-face {
  font-family: "Rubik";
  src: url("assets/fonts/rubik-latin-wght-normal.woff2") format("woff2-variations");
  font-weight: 300 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Rubik";
  src: url("assets/fonts/rubik-arabic-wght-normal.woff2") format("woff2-variations");
  font-weight: 300 900;
  font-display: swap;
  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;
}

/* ---------- Tokens: dark first, light by choice or by the system ---------- */
:root {
  --bg: #07110d;
  --bg-2: #0b1813;
  --surface: rgb(255 255 255 / 0.045);
  --surface-2: rgb(255 255 255 / 0.08);
  --border: rgb(255 255 255 / 0.1);
  --text: #eef6f1;
  --text-2: #a5b8ad;
  --accent: #7d6dff;
  --accent-2: #5b4bf0;
  --on-accent: #ffffff;
  --green: #35c784;
  --brand: #1b6b45;
  --glow-a: #5b4bf0;
  --glow-b: #1b6b45;
  --glow-c: #0f7a5c;
  --shadow: 0 24px 60px -24px rgb(0 0 0 / 0.65);
  --radius: 22px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #f5f8f6; --bg-2: #eaf1ec; --surface: rgb(255 255 255 / 0.75); --surface-2: #ffffff;
    --border: rgb(10 40 25 / 0.1); --text: #0c1a13; --text-2: #4d6257; --accent: #5b4bf0; --accent-2: #4a3be0;
    --green: #1b6b45; --glow-a: #8c80ff; --glow-b: #5fd39d; --glow-c: #a9e6c8; --shadow: 0 24px 60px -28px rgb(16 50 32 / 0.35);
    color-scheme: light;
  }
}
:root[data-theme="light"] {
  --bg: #f5f8f6; --bg-2: #eaf1ec; --surface: rgb(255 255 255 / 0.75); --surface-2: #ffffff;
  --border: rgb(10 40 25 / 0.1); --text: #0c1a13; --text-2: #4d6257; --accent: #5b4bf0; --accent-2: #4a3be0;
  --green: #1b6b45; --glow-a: #8c80ff; --glow-b: #5fd39d; --glow-c: #a9e6c8; --shadow: 0 24px 60px -28px rgb(16 50 32 / 0.35);
  color-scheme: light;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
[id] { scroll-margin-top: 76px; }
body {
  margin: 0;
  font-family: "Rubik", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 0.5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.4rem, 5.6vw, 4.2rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); font-weight: 750; }
h3 { font-size: 1.15rem; font-weight: 650; }
p { margin: 0 0 1em; }
:lang(ar) h1, :lang(ar) h2, :lang(ar) h3 { letter-spacing: 0; line-height: 1.35; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 10px; }
.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 32px); }
.center { text-align: center; }
.muted { color: var(--text-2); }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 12px; background: var(--accent); color: var(--on-accent); }
.skip:focus { top: 12px; }
.eyebrow { font-size: 0.82rem; font-weight: 650; letter-spacing: 0.12em; text-transform: uppercase; color: var(--green); margin-bottom: 0.6em; }
:lang(ar) .eyebrow { letter-spacing: 0; font-size: 0.95rem; }
.lead { font-size: 1.12rem; color: var(--text-2); max-width: 60ch; }
.grad { background: linear-gradient(100deg, var(--accent) 10%, var(--green) 90%); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 22px;
  border-radius: 999px; border: 1px solid transparent; font: inherit; font-weight: 650; text-decoration: none; cursor: pointer;
  color: var(--on-accent); background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 10px 30px -10px color-mix(in srgb, var(--accent) 70%, transparent);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), filter 0.2s;
}
.btn svg { width: 20px; height: 20px; fill: currentColor; stroke: none; }
.btn:hover { transform: translateY(-2px); filter: brightness(1.06); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--border); box-shadow: none; backdrop-filter: blur(10px); }
.btn-small { min-height: 40px; padding: 0 16px; font-size: 0.95rem; }
.icon-btn, .chip-btn {
  display: inline-grid; place-items: center; min-height: 40px; min-width: 40px; padding: 0 12px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--surface); color: var(--text); font: inherit; font-size: 0.92rem; cursor: pointer;
}
.icon-btn svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.i-moon { display: none; }
:root[data-theme="light"] .i-sun { display: none; }
:root[data-theme="light"] .i-moon { display: block; }
.text-link { color: var(--accent); font-weight: 600; text-underline-offset: 4px; }
.pill { font: inherit; font-size: 0.88rem; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text); cursor: pointer; }
.pill:hover { border-color: var(--accent); }

/* ---------- Top bar ---------- */
.top { position: sticky; top: 0; z-index: 50; backdrop-filter: saturate(1.4) blur(16px); background: color-mix(in srgb, var(--bg) 72%, transparent); border-bottom: 1px solid var(--border); }
.top-row { display: flex; align-items: center; gap: 16px; min-height: 66px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 750; font-size: 1.12rem; }
.mark { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; background: linear-gradient(140deg, #23885a, var(--brand)); box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.25); }
.mark img { width: 24px; height: 24px; filter: brightness(0) invert(1); }
.foot .mark { width: 30px; height: 30px; border-radius: 9px; }
.foot .mark img { width: 20px; height: 20px; }
.nav { display: flex; gap: 6px; margin-inline-start: auto; }
.nav a { padding: 8px 12px; border-radius: 999px; text-decoration: none; color: var(--text-2); font-size: 0.95rem; }
.nav a:hover { color: var(--text); background: var(--surface); }
.top-tools { display: flex; align-items: center; gap: 8px; }
.brand + .top-tools { margin-inline-start: auto; }
@media (max-width: 920px) { .nav { display: none; } .top-tools { margin-inline-start: auto; } }
@media (max-width: 420px) { .top-tools .btn { display: none; } }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(48px, 8vw, 96px) 0 clamp(56px, 8vw, 110px); }
.aurora { position: absolute; inset: -20% -10% auto; height: 120%; pointer-events: none; filter: blur(70px); opacity: 0.55; }
.aurora i { position: absolute; border-radius: 50%; width: 46vw; height: 46vw; max-width: 640px; max-height: 640px; }
.aurora i:nth-child(1) { background: var(--glow-a); inset-inline-start: -6%; top: 2%; animation: drift 18s var(--ease) infinite alternate; }
.aurora i:nth-child(2) { background: var(--glow-b); inset-inline-end: -4%; top: 12%; animation: drift 22s var(--ease) infinite alternate-reverse; }
.aurora i:nth-child(3) { background: var(--glow-c); inset-inline-start: 34%; top: 46%; width: 30vw; height: 30vw; opacity: 0.7; animation: drift 26s var(--ease) infinite alternate; }
@keyframes drift { to { transform: translate3d(6%, 8%, 0) scale(1.12); } }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
@media (max-width: 960px) { .hero-grid { grid-template-columns: minmax(0, 1fr); } }
.hero-grid > * { min-width: 0; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 22px; }
.promise { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; list-style: none; }
.promise li { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); font-size: 0.92rem; font-weight: 550; }
.promise li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); }

/* ---------- The haul demo ---------- */
.demo { position: relative; }
.demo-window { position: relative; border-radius: 26px; border: 1px solid var(--border); background: color-mix(in srgb, var(--bg-2) 82%, transparent); backdrop-filter: blur(20px); box-shadow: var(--shadow); overflow: hidden; }
.demo-head { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid var(--border); font-size: 0.85rem; }
.demo-head span { width: 10px; height: 10px; border-radius: 50%; background: var(--surface-2); }
.demo-head b { margin-inline-start: 8px; color: var(--text-2); font-weight: 600; }
.demo-body { padding: 16px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.demo-link { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 14px; padding-inline: 14px 8px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); }
.demo-link svg { width: 18px; height: 18px; flex: none; fill: none; stroke: var(--text-2); stroke-width: 2; stroke-linecap: round; }
.demo-link output { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 0.95rem; color: var(--text); min-height: 1.5em; }
.demo-link output::after { content: ""; display: inline-block; width: 2px; height: 1.05em; margin-inline-start: 2px; vertical-align: -0.15em; background: var(--accent); animation: caret 1s steps(1) infinite; }
.demo-link.done output::after { display: none; }
@keyframes caret { 50% { opacity: 0; } }
.demo-check { flex: none; font: inherit; font-size: 0.9rem; font-weight: 650; padding: 9px 14px; border-radius: 12px; border: 0; color: var(--on-accent); background: var(--accent); cursor: pointer; transition: transform 0.15s; }
.demo-check.pulse { animation: pulse 0.45s var(--ease); }
@keyframes pulse { 50% { transform: scale(0.93); } }
.demo-card { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 14px; border-radius: 18px; background: var(--surface); border: 1px solid var(--border); animation: rise 0.45s var(--ease); }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }
.demo-preview { display: flex; gap: 12px; align-items: center; }
.demo-thumb { flex: none; width: 92px; aspect-ratio: 16 / 10; border-radius: 12px; background: var(--art, linear-gradient(135deg, #5b4bf0, #1b6b45)); position: relative; overflow: hidden; }
.demo-thumb::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 30% 30%, rgb(255 255 255 / 0.35), transparent 55%); }
.demo-title { margin: 0; font-weight: 650; line-height: 1.3; }
.demo-site { margin: 2px 0 0; font-size: 0.85rem; color: var(--text-2); }
.demo-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.demo-tile { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 13px; border: 1px solid var(--border); background: transparent; color: var(--text); font: inherit; font-size: 0.92rem; cursor: pointer; text-align: start; animation: rise 0.4s var(--ease) backwards; }
.demo-tile b { font-weight: 650; }
.demo-tile em { font-style: normal; color: var(--text-2); font-variant-numeric: tabular-nums; }
.demo-tile[aria-checked="true"] { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 16%, transparent); }
.demo-tile .tag { display: block; font-size: 0.72rem; font-weight: 650; color: var(--green); }
@media (max-width: 420px) { .demo-tile { flex-direction: column; align-items: flex-start; gap: 2px; } }
.demo-save { width: 100%; justify-content: center; min-height: 46px; }
.demo-save svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.demo-save:disabled { cursor: default; background: color-mix(in srgb, var(--green) 24%, var(--surface)); color: var(--text); box-shadow: none; transform: none; }
.demo-progress { height: 6px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.demo-progress i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--accent), var(--green)); transition: width 1s linear; }
.demo-lib p { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-size: 0.95rem; }
.badge { display: inline-grid; place-items: center; min-width: 24px; height: 22px; padding: 0 7px; border-radius: 99px; background: var(--accent); color: var(--on-accent); font-size: 0.78rem; font-weight: 700; transition: transform 0.3s var(--ease); }
.badge.bump { transform: scale(1.35); }
.demo-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.demo-grid i { aspect-ratio: 1; border-radius: 9px; background: var(--art); position: relative; }
.demo-grid i.new { animation: land 0.5s var(--ease); }
@keyframes land { from { transform: scale(0.4); opacity: 0; } 60% { transform: scale(1.12); } }
.flyer { position: fixed; z-index: 60; border-radius: 12px; pointer-events: none; box-shadow: 0 14px 30px -10px rgb(0 0 0 / 0.5); }
.demo-try { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; font-size: 0.9rem; color: var(--text-2); }

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section-alt { background: linear-gradient(180deg, transparent, var(--bg-2) 18%, var(--bg-2) 82%, transparent); }
.section h2.center { margin-bottom: 1.2em; }

/* Bento */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.tile { position: relative; padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); overflow: hidden; transition: transform 0.3s var(--ease), border-color 0.3s; }
.tile:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); }
.tile p { color: var(--text-2); margin: 0; }
.t-wide { grid-column: span 2; }
.t-wider { grid-column: span 3; }
.t-tall { grid-row: span 2; }
@media (max-width: 1000px) { .bento { grid-template-columns: repeat(2, 1fr); } .t-tall { grid-row: auto; } .t-wider { grid-column: span 2; } }
@media (max-width: 600px) { .bento { grid-template-columns: 1fr; } .t-wide, .t-wider, .t-tall { grid-column: auto; grid-row: auto; } }
.tile-icon { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 16px; border-radius: 14px; background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent); }
.tile-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.mini-tiles { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.mini-tiles span { padding: 8px 12px; border-radius: 12px; border: 1px solid var(--border); font-weight: 600; font-size: 0.92rem; }
.mini-tiles span.on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, transparent); }
.mini-tiles em { font-style: normal; color: var(--text-2); font-weight: 400; margin-inline-start: 6px; }
.mini-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 20px; }
.mini-gallery i { aspect-ratio: 1; border-radius: 12px; background: linear-gradient(135deg, var(--glow-a), var(--glow-b)); opacity: 0.85; }
.mini-gallery i:nth-child(2) { background: linear-gradient(135deg, #d97706, #e11d48); }
.mini-gallery i:nth-child(3) { background: linear-gradient(135deg, #2563eb, #0d9488); }
.mini-gallery i:nth-child(4) { background: linear-gradient(135deg, #16a34a, #0d9488); }
.mini-gallery i:nth-child(5) { background: linear-gradient(135deg, #7c3aed, #2563eb); }
.mini-gallery i:nth-child(6) { background: linear-gradient(135deg, #e11d48, #7c3aed); }
.swatches { display: flex; gap: 10px; margin-top: 18px; }
.swatches i { width: 28px; height: 28px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 2px rgb(255 255 255 / 0.25); }

/* Fits in */
.fits { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
@media (max-width: 900px) { .fits { grid-template-columns: 1fr; } }
.fits-card { padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); display: grid; gap: 20px; box-shadow: var(--shadow); }
.field { display: grid; gap: 10px; font-weight: 600; }
.field > span { display: flex; justify-content: space-between; }
.field output { color: var(--accent); font-variant-numeric: tabular-nums; }
input[type="range"] { width: 100%; accent-color: var(--accent); height: 28px; }
.seg { display: flex; flex-wrap: wrap; gap: 6px; padding: 5px; border-radius: 16px; background: var(--surface-2); }
.seg button { flex: 1; min-height: 42px; border-radius: 12px; border: 0; background: transparent; color: var(--text-2); font: inherit; font-size: 0.92rem; font-weight: 600; cursor: pointer; }
.seg button[aria-checked="true"] { background: var(--bg); color: var(--text); box-shadow: 0 4px 14px -6px rgb(0 0 0 / 0.4); }
.fits-big { display: flex; align-items: baseline; gap: 12px; margin: 0; font-size: 2.6rem; font-weight: 800; }
.fits-big small { font-size: 1rem; font-weight: 500; color: var(--text-2); }
.meter { height: 10px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.meter i { display: block; height: 100%; width: 50%; border-radius: inherit; background: linear-gradient(90deg, var(--green), var(--accent)); transition: width 0.4s var(--ease); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding: 0; margin: 0; list-style: none; counter-reset: s; }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } }
.steps li { padding: 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.steps p { color: var(--text-2); margin: 0; }
.num { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 16px; border-radius: 50%; font-weight: 800; color: var(--on-accent); background: linear-gradient(135deg, var(--accent), var(--green)); }

/* Privacy */
.privacy { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
@media (max-width: 900px) { .privacy { grid-template-columns: 1fr; } }
.checks { display: grid; gap: 12px; padding: 0; margin: 0; list-style: none; }
.checks li { display: grid; gap: 4px; padding: 18px 20px; border-radius: 18px; background: var(--surface); border: 1px solid var(--border); padding-inline-start: 56px; position: relative; }
.checks li::before { content: ""; position: absolute; inset-inline-start: 20px; top: 21px; width: 22px; height: 22px; border-radius: 50%; background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 14px no-repeat; }
.checks span { color: var(--text-2); }

/* Download */
.tabs { display: flex; justify-content: center; gap: 6px; width: fit-content; margin: 0 auto 24px; padding: 5px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); }
.tabs button { min-height: 44px; padding: 0 22px; border-radius: 999px; border: 0; background: transparent; color: var(--text-2); font: inherit; font-weight: 650; cursor: pointer; }
.tabs button[aria-selected="true"] { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: var(--on-accent); }
[hidden] { display: none !important; }
.panel { max-width: 860px; margin-inline: auto; display: grid; gap: 18px; }
.dl-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 640px) { .dl-row { grid-template-columns: 1fr; } }
.store { position: relative; display: grid; gap: 2px; padding: 20px 22px; border-radius: 20px; text-decoration: none; color: var(--on-accent); background: linear-gradient(135deg, var(--accent), var(--accent-2)); box-shadow: 0 16px 36px -18px var(--accent); transition: transform 0.2s var(--ease); }
.store:hover { transform: translateY(-3px); }
.store-ghost { color: var(--text); background: var(--surface); border: 1px solid var(--border); box-shadow: none; }
.store b { font-size: 1.25rem; }
.store-k { font-size: 0.85rem; opacity: 0.85; }
.soon { position: absolute; top: 14px; inset-inline-end: 14px; font-style: normal; font-size: 0.75rem; font-weight: 700; padding: 3px 10px; border-radius: 99px; background: rgb(0 0 0 / 0.22); }
.store-ghost .soon { background: var(--surface-2); color: var(--text-2); }
.store[aria-disabled="true"] { cursor: default; }
.store[aria-disabled="true"]:hover { transform: none; }
.dl-help { padding: 22px 24px; border-radius: 20px; background: var(--surface); border: 1px solid var(--border); }
.dl-help p:last-child, .mini-steps { margin-bottom: 0; }
.mini-steps { padding-inline-start: 1.2em; color: var(--text-2); }
.mini-steps li { margin-bottom: 6px; }

/* FAQ */
.qa { border-bottom: 1px solid var(--border); }
.qa summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 4px; cursor: pointer; font-weight: 650; font-size: 1.05rem; list-style: none; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--surface-2); font-weight: 500; transition: transform 0.25s var(--ease); }
.qa[open] summary::after { transform: rotate(45deg); }
.qa p { margin: 0 4px 20px; color: var(--text-2); }

/* Fair use and the creator */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 900px) { .duo { grid-template-columns: 1fr; } }
.fair, .maker { padding: 30px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.fair p { color: var(--text-2); }
.maker { display: flex; gap: 20px; align-items: flex-start; }
.maker h2 { font-size: 1.6rem; }
.maker-links { display: flex; flex-wrap: wrap; gap: 10px; }
.avatar { flex: none; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 20px; font-weight: 800; font-size: 1.3rem; color: #fff; background: linear-gradient(135deg, #23885a, var(--brand)); }

/* Footer */
.foot { padding: 34px 0 calc(34px + env(safe-area-inset-bottom)); border-top: 1px solid var(--border); }
.foot-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 10px 18px; }
.foot-nav a { color: var(--text-2); text-decoration: none; white-space: nowrap; }
.foot-nav a:hover { color: var(--text); }
.foot p { margin: 0 0 0 auto; margin-inline-start: auto; font-size: 0.9rem; }
@media (max-width: 700px) { .foot p { margin-inline-start: 0; width: 100%; } }

/* Reveal once, on the way down */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* Legal pages */
.doc { padding: 48px 0 80px; }
.doc h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.doc h2 { font-size: 1.3rem; margin-top: 1.8em; }
.doc p, .doc li { color: var(--text-2); }
.doc .back { display: inline-block; margin-bottom: 24px; }
[data-only] { display: none; }
:root[lang="en"] [data-only="en"], :root[lang="ar"] [data-only="ar"] { display: block; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
