/* FolderHue site. One idea carries the design: every section is a folder, its tab colored like the logo. */
:root {
  --night: #140F26;
  --panel: #1D1638;
  --panel-2: #251C46;
  --line: #342A5C;
  --ink: #F3EFFF;
  --muted: #A79FC8;
  --sky: #38BDF8;
  --pink: #F472B6;
  --gold: #FBBF24;
  --violet: #8B5CF6;
  --display: "Bricolage Grotesque", "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif;
  --text: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, sans-serif;
  --measure: 62ch;
  color-scheme: dark;
}
:root[lang="ar"] {
  --display: "Readex Pro", "Segoe UI", system-ui, sans-serif;
  --text: "Readex Pro", "Segoe UI", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--night);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--text);
  overflow-x: hidden;
}
/* The logo's glow, once, behind the top of the page only */
body::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 1100px; z-index: -1; pointer-events: none;
  background:
    radial-gradient(640px 460px at 12% 6%, rgba(139, 92, 246, .38), transparent 70%),
    radial-gradient(520px 420px at 92% 0%, rgba(244, 114, 182, .22), transparent 70%),
    radial-gradient(560px 420px at 70% 78%, rgba(56, 189, 248, .14), transparent 70%);
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: var(--sky); text-underline-offset: .18em; }
a:hover { color: #7DD3FC; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; inset-inline-start: 1rem; top: -4rem; background: var(--gold); color: #1a1200; padding: .5rem 1rem; border-radius: 8px; z-index: 10; }
.skip:focus { top: 1rem; }

.wrap { width: min(1180px, 100% - 2.5rem); margin-inline: auto; }

h1, h2, h3 { font-family: var(--display); line-height: 1.05; margin: 0; font-weight: 800; letter-spacing: -.02em; }
h1 { font-size: clamp(2.6rem, 6.2vw, 5.1rem); font-variation-settings: "wdth" 85; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.3rem; letter-spacing: -.01em; }
:root[lang="ar"] h1, :root[lang="ar"] h2, :root[lang="ar"] h3 { letter-spacing: 0; line-height: 1.25; font-weight: 700; }
p { margin: 0; max-width: var(--measure); }
.lede { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--muted); }

/* ---------- header ---------- */
.top { display: flex; align-items: center; gap: 1.5rem; padding-block: 1.25rem; }
.brand { display: flex; align-items: center; gap: .65rem; color: var(--ink); text-decoration: none; font: 700 1.3rem var(--display); }
.brand img { width: 40px; height: 40px; }
.top nav { margin-inline-start: auto; display: flex; gap: 1.4rem; align-items: center; }
.top nav a { color: var(--muted); text-decoration: none; font-weight: 600; }
.top nav a:hover, .top nav a[aria-current="page"] { color: var(--ink); }
.lang { border: 1px solid var(--line); border-radius: 999px; padding: .25rem .8rem; }
@media (max-width: 720px) { .top nav .opt { display: none; } }
@media (max-width: 480px) { .top { gap: .8rem; } .top nav { gap: .85rem; font-size: .95rem; } .brand { font-size: 1.1rem; gap: .45rem; } .brand img { width: 32px; height: 32px; } .lang { padding: .2rem .6rem; } }
@media (max-width: 360px) { .top nav { gap: .6rem; font-size: .9rem; } .brand { font-size: 1rem; } }

/* ---------- hero ---------- */
.hero { display: grid; grid-template-columns: 1fr 1.08fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; padding-block: clamp(2.5rem, 7vw, 6rem) 4rem; }
.hero h1 { max-width: 11ch; }
.hero .lede { margin-top: 1.4rem; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.4rem; margin-top: 2.2rem; }
.badge img { width: 216px; height: auto; border-radius: 6px; }
.price-note { color: var(--muted); font-size: .98rem; }
@media (max-width: 900px) { .hero { grid-template-columns: 1fr; } .hero h1 { max-width: 14ch; } }
/* grid children may shrink below their content, so nothing pushes past a phone's width */
.hero > *, .split > *, .plans > *, .steps > * { min-width: 0; }
@media (max-width: 520px) { .grid { gap: .2rem; padding: .8rem .5rem 1rem; } .grid figure { font-size: .74rem; } .explorer .bar { flex-wrap: wrap; } .explorer .path { flex-basis: 100%; } }

/* A File Explorer window: the one live moment on the page */
.explorer { background: #1E1E1E; border: 1px solid #3a3a3a; border-radius: 14px; box-shadow: 0 40px 90px rgba(0,0,0,.55); overflow: hidden; }
.explorer .bar { display: flex; align-items: center; gap: .8rem; padding: .65rem .9rem; background: #262626; border-bottom: 1px solid #333; font: 400 .9rem var(--text); color: #cfcfcf; }
.explorer .path { flex: 1; background: #303030; border-radius: 6px; padding: .3rem .7rem; display: flex; align-items: center; gap: .45rem; direction: ltr; }
.explorer .path img { width: 18px; height: 18px; }
.explorer button { font: 600 .9rem var(--text); color: #1a1200; background: var(--gold); border: 0; border-radius: 6px; padding: .4rem .85rem; cursor: pointer; }
.explorer button:hover { background: #FCD34D; }
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .3rem .4rem; padding: 1.1rem 1rem 1.3rem; direction: ltr; }
.grid figure { margin: 0; text-align: center; font: 400 .88rem var(--text); color: #e6e6e6; }
.grid img { width: 100%; max-width: 116px; margin-inline: auto; aspect-ratio: 1; }
.grid figcaption { margin-top: -.35rem; }
.grid img.flip { animation: flip .42s cubic-bezier(.3,.7,.3,1.25); }
@keyframes flip { 0% { transform: scaleX(1); } 45% { transform: scaleX(0); } 100% { transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) { .grid img.flip { animation: none; } }

/* ---------- the folder panel: a tab that names the section, a body that holds it ---------- */
.folder { --tab: var(--violet); position: relative; margin-top: 5.5rem; }
.folder > .tab {
  display: inline-block; position: relative; z-index: 1;
  background: var(--tab); color: #120c22;
  padding: .7rem 2.6rem .55rem 1.4rem; margin-bottom: -1px;
  border-radius: 14px 14px 0 0;
  clip-path: polygon(0 0, calc(100% - 26px) 0, 100% 100%, 0 100%);
}
:root[dir="rtl"] .folder > .tab { padding: .7rem 1.4rem .55rem 2.6rem; clip-path: polygon(26px 0, 100% 0, 100% 100%, 0 100%); }
.folder > .tab h2 { font-size: clamp(1.35rem, 2.6vw, 2rem); }
.folder > .body {
  background: linear-gradient(180deg, color-mix(in srgb, var(--tab) 22%, var(--panel)), var(--panel) 160px);
  border-top: 4px solid var(--tab);
  border-radius: 0 18px 18px 18px;
  padding: clamp(1.5rem, 4vw, 3rem);
}
:root[dir="rtl"] .folder > .body { border-radius: 18px 0 18px 18px; }
.folder.sky { --tab: var(--sky); } .folder.pink { --tab: var(--pink); } .folder.gold { --tab: var(--gold); } .folder.violet { --tab: var(--violet); }

.split { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.split.flip-order > :first-child { order: 2; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split.flip-order > :first-child { order: 0; } }
.split ul { margin: 1.2rem 0 0; padding-inline-start: 1.2rem; color: var(--muted); }
.split li { margin-block: .35rem; }
.split li::marker { color: var(--tab); }
.shot { border-radius: 12px; border: 1px solid var(--line); box-shadow: 0 24px 60px rgba(0,0,0,.45); }

/* how it works: a real sequence, so it is numbered */
.steps { list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; padding: 0; margin: 0; }
.steps li { counter-increment: step; }
.steps li::before { content: counter(step); display: block; font: 800 3.4rem/1 var(--display); color: var(--tab); margin-bottom: .6rem; }
.steps p { color: var(--muted); margin-top: .4rem; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

/* sections that leave the folder: the styles and the film sit straight on the night */
.open { margin-top: 6.5rem; }
.open h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); max-width: 18ch; }
.open .lede { margin-top: .8rem; }
.open .film { margin-top: 1.8rem; }

/* the eleven styles, as a shelf */
.shelf { display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 1.4rem .6rem; margin-top: 2.2rem; text-align: center; }
.shelf figure { margin: 0; font-weight: 600; font-size: .95rem; }
.shelf img { width: 120px; margin-inline: auto; }

.emoji-row { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 1.6rem; }
.emoji-row img { width: 86px; }

.film { border-radius: 14px; border: 1px solid var(--line); width: 100%; aspect-ratio: 16 / 9; background: #000; }

/* pricing: two folders side by side */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.plans .folder { margin-top: 0; width: auto; margin-inline: 0; }
.folder-pair { margin-top: 5.5rem; }
.folder-pair .cta { margin-top: 1.6rem; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.plans .amount { font: 800 2.6rem/1 var(--display); margin-block: .4rem 1rem; }
.plans .amount small { font: 500 1rem var(--text); color: var(--muted); }
.plans ul { margin: 0; padding-inline-start: 1.2rem; }
.plans li { margin-block: .35rem; }
@media (max-width: 760px) { .plans { grid-template-columns: 1fr; } }

/* questions */
.faq details { border-bottom: 1px solid var(--line); padding-block: 1rem; }
.faq summary { cursor: pointer; font: 700 1.15rem/1.35 var(--display); list-style-position: outside; }
:root[lang="ar"] .faq summary { font-weight: 600; }
.faq details p { margin-top: .7rem; color: var(--muted); }

/* ---------- text pages (privacy, terms, support) ---------- */
.doc { padding-block: 3rem 2rem; }
.doc h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
.doc .updated { color: var(--muted); margin-top: .8rem; }
.doc h2 { font-size: 1.45rem; margin-top: 2.4rem; }
.doc p, .doc li { color: #d9d3f0; max-width: 70ch; }
.doc p { margin-top: .9rem; }
.doc ul { padding-inline-start: 1.3rem; }

/* ---------- footer ---------- */
.foot { margin-top: 6rem; border-top: 1px solid var(--line); padding-block: 2rem 3rem; color: var(--muted); font-size: .95rem; }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; }
.foot nav { display: flex; flex-wrap: wrap; gap: 1.2rem; margin-inline-start: auto; }
.foot a { color: var(--muted); }
.foot a:hover { color: var(--ink); }

/* ---------- guides, color and library pages ---------- */
.crumbs { display: flex; flex-wrap: wrap; gap: .5rem; padding-top: 1.2rem; font-size: .92rem; color: var(--muted); }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--ink); }
.doc .lede { margin-top: 1rem; color: var(--muted); max-width: 64ch; }
.doc h3 { font-size: 1.15rem; }

/* a guide's steps are a real sequence */
.howto { list-style: none; counter-reset: step; padding: 0; margin: 1.2rem 0 0; display: grid; gap: 1.1rem; }
.howto li { counter-increment: step; display: grid; grid-template-columns: 3rem 1fr; column-gap: 1rem; }
.howto li::before { content: counter(step); grid-row: span 2; font: 800 2.4rem/1 var(--display); color: var(--sky); }
.howto p { margin-top: .25rem; }
.guide-shot { margin-top: 2rem; max-width: 760px; }
.doc code { font: .95em "Cascadia Mono", Consolas, monospace; background: var(--panel-2); padding: .1em .4em; border-radius: 5px; }
.tip { margin-top: 1rem; border-inline-start: 4px solid var(--gold); padding-inline-start: 1rem; }
.related { padding-inline-start: 1.2rem; }
.related.inline { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.2rem; }

/* hub lists */
.cards { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 1rem; }
.cards li { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 1.2rem 1.3rem; }
.cards a { color: var(--ink); text-decoration: none; }
.cards a:hover h3 { color: var(--sky); }
.cards p { color: var(--muted); margin-top: .4rem; font-size: .97rem; }
.libs li { padding: 0; }
.libs a { display: block; padding: 1.2rem 1.3rem; }
.libs .count { display: block; color: var(--muted); font-size: .92rem; margin-top: .2rem; }
.libs .thumbs { display: flex; flex-wrap: wrap; gap: .2rem; margin-top: .8rem; }
.libs .thumbs img { width: 48px; height: 48px; }

.swatches { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 1rem .5rem; text-align: center; }
.swatches a { display: block; color: var(--ink); text-decoration: none; font-weight: 600; border-radius: 12px; padding: .5rem; }
.swatches a:hover { background: var(--panel); }
.swatches img { width: 112px; margin-inline: auto; }

.styles4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: 1rem; text-align: center; max-width: 760px; }
.styles4 figure { margin: 0; font-weight: 600; }
.styles4 img { width: 100%; max-width: 160px; margin-inline: auto; }
@media (max-width: 560px) { .styles4 { grid-template-columns: repeat(2, 1fr); } }
.shades { list-style: none; padding: 0; margin: 1rem 0 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.shades li { background: var(--c); width: 92px; height: 64px; border-radius: 10px; display: flex; align-items: flex-end; padding: .35rem .45rem; }
.shades span { font: 600 .74rem "Cascadia Mono", Consolas, monospace; background: rgba(20,15,38,.75); color: #fff; padding: .1rem .35rem; border-radius: 5px; }
.minis { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: .6rem; text-align: center; }
.minis a { color: var(--ink); text-decoration: none; font-size: .9rem; }
.minis img { width: 80px; margin-inline: auto; }

.catpage .meta { color: var(--muted); margin-top: .6rem; }
.presets { display: grid; grid-template-columns: repeat(auto-fill, minmax(124px, 1fr)); gap: 1.2rem .5rem; margin-top: 2rem; text-align: center; }
.presets figure { margin: 0; font-size: .95rem; }
.presets img { width: 104px; margin-inline: auto; }

.cta-band { margin-top: 4rem; padding: 2rem clamp(1.2rem, 4vw, 2.5rem); background: var(--panel); border: 1px solid var(--line); border-radius: 18px; display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; justify-content: space-between; }
.cta-band h2 { font-size: 1.6rem; }
.cta-band .cta { margin-top: 0; }

/* the home page's way into the guides, colors and library */
.explore { margin-top: 5.5rem; }
.explore ul { list-style: none; padding: 0; margin: 1.4rem 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.explore a { display: block; height: 100%; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 1.3rem; color: var(--ink); text-decoration: none; }
.explore a:hover { border-color: var(--sky); }
.explore p { color: var(--muted); margin-top: .4rem; font-size: .97rem; }
@media (max-width: 760px) { .explore ul { grid-template-columns: 1fr; } }
.hero .kicker { font: 700 clamp(1.3rem, 2.4vw, 1.8rem)/1.2 var(--display); color: var(--gold); margin-bottom: .8rem; }
