/* Qohroh website. Values come from the Figma file "Qohroh — Site web" and the
   brand guidelines; mockups of the app are illustrations, so they aren't
   interactive. */

/* Bricolage Grotesque comes from Google Fonts as a variable font, because the
   design relies on its large optical size, which the static files lack. */
@font-face { font-family: "Inter"; src: url("fonts/Inter-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/Inter-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
/* The brand ships no Inter Bold, so SemiBold stands in for 600 and 700. */
@font-face { font-family: "Inter"; src: url("fonts/Inter-SemiBold.ttf") format("truetype"); font-weight: 600 700; font-display: swap; }

:root {
  --indigo-900: #16205a;
  --indigo-700: #1f2b6b;
  --indigo-500: #4557b8;
  --indigo-50: #e7eaf7;
  --or-600: #c4801b;
  --or-500: #e5a02b;
  --or-50: #faefda;
  --neutre-950: #0d0f1c;
  --neutre-900: #1a1d2e;
  --neutre-600: #4a4f68;
  --neutre-400: #8a8fa6;
  --neutre-200: #d9dce6;
  --neutre-100: #f2f3f7;
  --blanc: #ffffff;
  --succes: #15803d;
  --succes-50: #e3f2e8;
  --attention: #b45309;
  --direct: #0e7490;
  --direct-50: #ddf0f4;
  --danger: #b4232c;

  --display: "Bricolage Grotesque", Arial, sans-serif;
  --text: "Inter", system-ui, Arial, sans-serif;
  --wrap: 73.75rem;
  --gutter: clamp(1.25rem, 4vw, 2rem);
  --section: clamp(4rem, 3rem + 4vw, 6.5rem);
  --radius-card: 1rem;
  --radius-panel: 1.75rem;
  --shadow: 0 10px 30px rgba(22, 32, 90, 0.08);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5.5rem; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--blanc); color: var(--neutre-900); font-family: var(--text); font-size: 1rem; line-height: 1.55; -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--indigo-500); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 30; padding: 0.6rem 1rem; background: var(--indigo-900); color: var(--blanc); border-radius: 8px; }
.skip:focus { top: 1rem; }

/* Type */
h1, .h1 { font-family: var(--display); font-weight: 700; font-size: clamp(2.6rem, 1.6rem + 4.2vw, 4.25rem); line-height: 1.02; letter-spacing: -0.035em; color: var(--indigo-900); text-wrap: balance; }
h2, .h2 { font-family: var(--display); font-weight: 700; font-size: clamp(1.85rem, 1.4rem + 1.6vw, 2.375rem); line-height: 1.12; letter-spacing: -0.025em; color: var(--indigo-900); text-wrap: balance; }
h3, .h3 { font-family: var(--display); font-weight: 700; font-size: 1.1875rem; line-height: 1.25; color: var(--indigo-900); }
.lede { font-size: 1.0625rem; line-height: 1.65; color: var(--neutre-600); max-width: 36rem; }
.intro { font-size: 0.9375rem; line-height: 1.65; color: var(--neutre-600); max-width: 34rem; }
.eyebrow { display: inline-block; padding: 0.4rem 0.7rem; background: var(--or-50); color: var(--attention); border-radius: 999px; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.02em; text-transform: uppercase; }
.eyebrow + h1, .eyebrow + h2 { margin-top: 1rem; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 2.75rem; padding: 0 1.1rem; border-radius: 8px; border: 0; font-size: 0.875rem; font-weight: 700; text-decoration: none; cursor: pointer; transition: background-color 150ms ease, transform 100ms ease; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--indigo-900); color: var(--blanc); }
.btn-primary:hover { background: var(--indigo-700); }
.btn-soft { background: var(--indigo-50); color: var(--indigo-900); }
.btn-soft:hover { background: #d9def3; }
.btn-gold { background: var(--or-500); color: var(--neutre-950); }
.btn-gold:hover { background: #eaae47; }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: var(--blanc); border-bottom: 1px solid var(--neutre-100); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 4.6rem; }
.logo img { width: 7.5rem; }
.site-nav { display: flex; align-items: center; gap: 2rem; }
.site-nav a { font-size: 0.875rem; color: var(--neutre-600); text-decoration: none; }
.site-nav a:hover { color: var(--indigo-900); }
.site-nav a[aria-current="page"] { color: var(--indigo-900); font-weight: 700; }
.site-nav .nav-cta { display: none; }
.menu-toggle { display: none; width: 2.75rem; height: 2.75rem; padding: 0; background: none; border: 0; color: var(--indigo-900); cursor: pointer; }
.menu-toggle svg { width: 1.75rem; height: 1.75rem; }

/* Sections */
.section { padding-block: var(--section); }
.section-grey { background: var(--neutre-100); }
.section-tint { background: var(--indigo-50); }
.section-head { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 3rem; align-items: end; margin-bottom: 2.25rem; }
.section-head .intro { padding-bottom: 0.35rem; }
.section-head-solo { display: block; }

/* Hero */
.hero { background: var(--neutre-100); padding-block: clamp(3rem, 2rem + 4vw, 5.5rem); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 4vw, 4rem); align-items: center; }
.hero .lede { margin-top: 1.5rem; }
.hero-legal { padding-block: 3.5rem 2.75rem; }
.hero-legal h1 { font-size: clamp(2rem, 1.5rem + 1.6vw, 2.375rem); }
.hero-legal .version { margin-top: 1rem; font-size: 0.8125rem; color: var(--neutre-600); }
.hero-legal .lede { margin-top: 0.75rem; max-width: none; font-size: 0.9375rem; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.cards-4 { grid-template-columns: repeat(4, 1fr); }
.card { padding: 1.4rem; background: var(--blanc); border: 1px solid #eceef4; border-radius: var(--radius-card); }
.section-grey .card { border-color: transparent; }
.num { display: grid; place-items: center; width: 2.9rem; height: 2.9rem; margin-bottom: 0.9rem; background: var(--indigo-50); border-radius: 10px; font-family: var(--display); font-weight: 700; font-size: 1.1875rem; color: var(--indigo-900); }
.card p { margin-top: 0.5rem; font-size: 0.8125rem; line-height: 1.6; color: var(--neutre-600); }

/* Split sections: text beside an illustration */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split .intro { margin-top: 1rem; max-width: none; }
.split-reverse > :first-child { order: 2; }
.checks { display: grid; gap: 0.85rem; margin-top: 1.4rem; }
.checks li { display: flex; gap: 0.75rem; align-items: flex-start; font-size: 0.9375rem; color: var(--neutre-900); }
.checks li::before { content: "✓"; flex: none; display: grid; place-items: center; width: 1.4rem; height: 1.4rem; margin-top: 0.05rem; background: var(--succes-50); color: var(--succes); border-radius: 50%; font-size: 0.75rem; }

/* App mockups */
.mock { background: var(--blanc); border-radius: var(--radius-panel); box-shadow: var(--shadow); padding: 1.4rem; }
.mock-dark { background: var(--indigo-900); color: var(--blanc); box-shadow: var(--shadow); }
.mock-title { font-family: var(--display); font-weight: 700; font-size: 1.1875rem; color: var(--indigo-900); }
.mock-sub { margin-top: 0.4rem; font-size: 0.8125rem; color: var(--neutre-600); }
.mock .btn { pointer-events: none; }
.tag { display: inline-flex; align-items: center; padding: 0.25rem 0.6rem; border-radius: 999px; font-size: 0.75rem; white-space: nowrap; }
.tag-ok { background: var(--succes-50); color: var(--succes); }
.tag-live { background: var(--direct-50); color: var(--direct); }
.tag-indigo { background: var(--indigo-50); color: var(--indigo-900); }
.tag-gold { background: var(--or-50); color: var(--attention); }
.avatar { display: grid; place-items: center; flex: none; width: 3rem; height: 3rem; border-radius: 50%; background: var(--or-50); color: var(--or-600); font-weight: 700; font-size: 0.875rem; }
.avatar-indigo { background: var(--indigo-50); color: var(--indigo-700); }
.row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.box { padding: 0.85rem 0.95rem; background: var(--neutre-100); border-radius: 12px; }
.stack { display: grid; gap: 0.6rem; }
.amount { font-family: var(--display); font-weight: 700; font-size: 1.1875rem; color: var(--indigo-900); white-space: nowrap; }
.small { font-size: 0.75rem; color: var(--neutre-600); }
.divider { border-top: 1px solid var(--neutre-100); padding-top: 0.9rem; }
.bar { height: 0.45rem; background: var(--neutre-100); border-radius: 999px; overflow: hidden; margin-top: 0.4rem; }
.bar span { display: block; height: 100%; background: var(--or-500); border-radius: inherit; }

/* Home hero illustration */
.hero-visual { position: relative; min-height: 27rem; }
.hero-visual::before { content: ""; position: absolute; right: 8%; top: 2%; width: 20rem; height: 20rem; border-radius: 50%; background: var(--indigo-50); }
.finder { position: absolute; left: 0; top: 2.5rem; width: min(27rem, 82%); padding: 1.25rem; background: var(--blanc); border-radius: 1.25rem; box-shadow: var(--shadow); transform: rotate(1.5deg); }
.finder .hello { font-size: 0.75rem; color: var(--neutre-400); }
.finder .search { margin-top: 0.75rem; padding: 0.7rem 0.8rem; border: 1px solid var(--neutre-200); border-radius: 10px; font-size: 0.75rem; color: var(--neutre-400); }
.finder .person { display: flex; gap: 0.75rem; align-items: center; margin-top: 0.6rem; padding: 0.7rem; background: var(--neutre-100); border-radius: 10px; }
.finder .person strong { display: block; font-size: 0.875rem; }
.finder .btn { width: 100%; margin-top: 0.9rem; }
.hero-person { position: absolute; right: -12%; bottom: -5.5rem; width: min(29rem, 84%); }

/* Mentor cards */
.mentor-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.mentor { display: flex; gap: 0.9rem; padding: 1.1rem; background: var(--blanc); border-radius: var(--radius-card); }
.mentor img { width: 9.4rem; height: 9.4rem; object-fit: cover; border-radius: 12px; flex: none; }
.mentor h3 { font-weight: 500; font-size: 1.125rem; }
.mentor p { margin-top: 0.6rem; font-size: 0.75rem; color: var(--neutre-600); }
.mentor .stars { margin-top: 0.3rem; color: var(--attention); }
.mentor[hidden] { display: none; }

/* Filter chips */
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.6rem; }
.chip { min-height: 2.4rem; padding: 0 1rem; background: var(--blanc); border: 1px solid var(--neutre-200); border-radius: 999px; font-size: 0.75rem; color: var(--neutre-600); cursor: pointer; }
.chip:hover { border-color: var(--indigo-500); }
.chip[aria-pressed="true"] { background: var(--indigo-500); border-color: var(--indigo-500); color: var(--blanc); }
.filter-empty { margin-top: 1rem; font-size: 0.875rem; color: var(--neutre-600); }

/* Masterclass cards */
.class-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.class { overflow: hidden; background: var(--blanc); border: 1px solid #eceef4; border-radius: var(--radius-card); display: flex; flex-direction: column; }
.class[hidden] { display: none; }
.class-top { position: relative; min-height: 9.4rem; padding: 1.1rem; display: flex; flex-direction: column; justify-content: space-between; gap: 1rem; color: var(--blanc); overflow: hidden; }
.class-top::after { content: ""; position: absolute; right: -3rem; top: -3.5rem; width: 10rem; height: 10rem; border-radius: 50%; box-shadow: 0 0 0 1px rgba(255,255,255,.18), 0 0 0 1.5rem transparent, 0 0 0 calc(1.5rem + 1px) rgba(255,255,255,.14), 0 0 0 3rem transparent, 0 0 0 calc(3rem + 1px) rgba(255,255,255,.1); }
.class-business { background: linear-gradient(135deg, var(--indigo-900), var(--indigo-500)); }
.class-tech { background: linear-gradient(135deg, var(--direct), #3aa7bf); }
.class-career { background: linear-gradient(135deg, var(--or-600), var(--or-500)); }
.class-top .label { align-self: flex-start; padding: 0.3rem 0.6rem; background: rgba(255,255,255,.18); border-radius: 999px; font-size: 0.6875rem; font-weight: 500; }
.class-top h3 { font-weight: 500; font-size: 1.375rem; color: var(--blanc); }
.class-body { padding: 1.1rem; display: flex; flex-direction: column; gap: 0.8rem; flex: 1; }
.class-body p { font-size: 0.8125rem; color: var(--neutre-600); }
.class-meta { display: flex; gap: 0.9rem; padding-top: 0.8rem; border-top: 1px solid var(--neutre-100); font-size: 0.75rem; color: var(--neutre-600); }
.class-body .btn { align-self: flex-start; margin-top: auto; }

/* FAQ */
.faq { display: grid; gap: 0.6rem; }
.faq details { background: var(--blanc); border: 1px solid #e3e6ee; border-radius: 14px; }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem 1.2rem; list-style: none; cursor: pointer; font-family: var(--display); font-weight: 700; font-size: 1.1875rem; color: var(--indigo-900); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--indigo-50); font-family: var(--text); font-size: 0.95rem; font-weight: 700; }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 1.2rem 1.2rem; margin-top: -0.4rem; font-size: 0.9375rem; color: var(--neutre-600); }
.faq details[hidden] { display: none; }
.search-box { position: relative; margin-top: 1.75rem; max-width: 32rem; }
.search-box input { width: 100%; min-height: 3.1rem; padding: 0 3rem 0 1rem; background: var(--blanc); border: 1px solid var(--neutre-200); border-radius: 12px; font: inherit; font-size: 0.9375rem; color: var(--neutre-900); }
.search-box input::placeholder { color: var(--neutre-400); }
.search-box svg { position: absolute; right: 1rem; top: 50%; width: 1.1rem; height: 1.1rem; transform: translateY(-50%); color: var(--indigo-900); pointer-events: none; }

/* Banners */
.cta-band { padding-block: 4rem; }
.cta-band .row { flex-wrap: wrap; }
.cta-band p { margin-top: 0.5rem; font-size: 1.0625rem; color: var(--neutre-600); }
.note { display: flex; gap: 0.9rem; align-items: center; margin-top: 1.25rem; padding: 1.1rem 1.25rem; background: var(--indigo-50); border-radius: 14px; font-size: 0.9375rem; color: var(--indigo-900); }
.note::before { content: "✓"; flex: none; display: grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--succes-50); color: var(--succes); font-size: 0.8rem; }
.commission { padding: 1.4rem; background: var(--blanc); border: 1px solid #eceef4; border-radius: var(--radius-card); }
.commission p { margin-top: 0.6rem; font-size: 0.9375rem; color: var(--neutre-600); }

/* Download band */
.download { background: var(--indigo-900); color: var(--blanc); padding-block: clamp(4rem, 3rem + 3vw, 5.5rem); }
.download-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.download h2 { color: var(--blanc); }
.download .lede { margin-top: 1.25rem; color: var(--indigo-50); max-width: 34rem; }
.store-card { padding: 1rem; background: var(--neutre-100); border-radius: var(--radius-panel); }
.store-card-inner { display: grid; justify-items: center; gap: 1rem; padding: 1.75rem 1.5rem; background: var(--blanc); border-radius: 1.25rem; text-align: center; }
.store-card-inner img { width: 6.75rem; border-radius: 1.5rem; }
.store-card-inner p { font-size: 0.75rem; color: var(--neutre-600); max-width: 22rem; }
.stores { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem; }
.store { display: inline-flex; align-items: center; gap: 0.5rem; min-height: 2.6rem; padding: 0.3rem 0.8rem; border: 1.5px solid var(--neutre-900); border-radius: 8px; color: var(--neutre-900); text-decoration: none; line-height: 1.05; text-align: left; }
.store:hover { background: var(--neutre-100); }
.store svg { width: 1.3rem; height: 1.3rem; flex: none; }
.store small { display: block; font-size: 0.5625rem; }
.store strong { font-size: 0.95rem; font-weight: 600; }
.qr { display: grid; place-items: center; width: 8.25rem; height: 8.25rem; border: 1.5px dashed var(--neutre-200); border-radius: 12px; background: var(--neutre-100); font-size: 0.75rem; color: var(--neutre-600); }

/* Footer */
.site-footer { padding-block: 3.5rem 2.25rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2rem; }
.footer-grid .logo img { width: 7.5rem; }
.footer-grid > div:first-child p { margin-top: 1rem; max-width: 24rem; font-size: 0.8125rem; color: var(--neutre-600); }
.footer-grid h2 { font-family: var(--text); font-size: 0.875rem; font-weight: 700; letter-spacing: 0; }
.footer-grid ul { display: grid; gap: 0.7rem; margin-top: 1rem; }
.footer-grid a { font-size: 0.8125rem; color: var(--neutre-600); text-decoration: none; }
.footer-grid a:hover { color: var(--indigo-900); text-decoration: underline; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem; margin-top: 2.5rem; padding-top: 1.75rem; border-top: 1px solid var(--neutre-100); font-size: 0.75rem; color: var(--neutre-600); }

/* Credit to Nkeita Services, with its baobab mark in its own colors. */
.footer-bottom .credit { flex-basis: 100%; }
.credit a { display: inline-flex; align-items: center; gap: 0.4rem; color: var(--neutre-600); text-decoration: none; }
.credit a:hover span { color: var(--indigo-900); text-decoration: underline; }
.credit svg { width: 0.95rem; height: auto; }
.credit-trunk { fill: #1f2a5c; }
.credit-branches { fill: none; stroke: #1f2a5c; stroke-width: 3.5; stroke-linecap: round; }
.credit-leaves { fill: #3f7d5b; }
.credit span { font-weight: 600; color: var(--neutre-900); }

/* Legal pages */
.legal { display: grid; grid-template-columns: 14rem 1fr; gap: 2.5rem; align-items: start; }
.toc { position: sticky; top: 6.5rem; padding: 1.25rem; background: var(--neutre-100); border-radius: 18px; }
.toc h2 { font-family: var(--text); font-size: 0.875rem; font-weight: 700; letter-spacing: 0; }
.toc ol { display: grid; gap: 0.6rem; margin-top: 0.9rem; }
.toc a { font-size: 0.8125rem; color: var(--neutre-600); text-decoration: none; }
.toc a:hover { color: var(--indigo-900); }
.legal-body { display: grid; gap: 2.25rem; }
.legal-body h2 { font-size: 1.1875rem; letter-spacing: 0; }
.legal-body p { margin-top: 0.6rem; font-size: 0.9375rem; color: var(--neutre-600); }

/* 404 */
.not-found { min-height: 60vh; display: grid; align-content: center; gap: 1.25rem; }

/* Narrow screens */
@media (max-width: 64rem) {
  .hero-grid, .split, .download-grid { grid-template-columns: 1fr; }
  .split-reverse > :first-child { order: 0; }
  .section-head { grid-template-columns: 1fr; }
  .cards, .cards-4, .mentor-grid, .class-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .legal { grid-template-columns: 1fr; }
  .toc { position: static; }
}

@media (max-width: 52rem) {
  .menu-toggle { display: inline-grid; place-items: center; }
  .header-cta { display: none; }
  .site-nav { display: none; position: absolute; inset: 100% 0 auto 0; flex-direction: column; align-items: stretch; gap: 0; padding: 0.5rem var(--gutter) 1.25rem; background: var(--blanc); border-bottom: 1px solid var(--neutre-200); box-shadow: var(--shadow); }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 0.9rem 0; font-size: 1rem; border-bottom: 1px solid var(--neutre-100); }
  .site-nav .nav-cta { display: inline-flex; margin-top: 1rem; border-bottom: 0; color: var(--blanc); }
  /* .site-nav a:hover is more specific, and would turn the text indigo on indigo. */
  .site-nav .nav-cta:hover { color: var(--blanc); }
}

@media (max-width: 40rem) {
  .cards, .cards-4, .mentor-grid, .class-grid { grid-template-columns: 1fr; }
  .actions .btn { width: 100%; max-width: 20rem; }
  .hero-visual { min-height: 25rem; }
  .finder { width: 88%; }
  .hero-person { width: 60%; right: -12%; }
  .mentor img { width: 7rem; height: 7rem; }
  .row-wrap { flex-wrap: wrap; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
