/* BrainFable website. The colours are the app's (app/lib/theme/brand.dart and
   palette.dart); the font is the app's Nunito, served from here. */

@font-face { font-family: "Nunito"; font-weight: 400; font-display: swap; src: url("fonts/nunito-400.woff") format("woff"); }
@font-face { font-family: "Nunito"; font-weight: 700; font-display: swap; src: url("fonts/nunito-700.woff") format("woff"); }
@font-face { font-family: "Nunito"; font-weight: 800; font-display: swap; src: url("fonts/nunito-800.woff") format("woff"); }

:root {
  --indigo: #3a2aa8;
  --violet: #7c44e0;
  --spark: #ffc754;
  --coral: #ff6b6b;
  --mint: #2bd9a8;
  --sky: #34b4f5;
  --ink: #0b0b0b;
  --ink-2: #52514e;
  --muted: #898781;
  --rule: #e1e0d9;
  --plane: #f9f9f7;
  --surface: #fcfcfb;
  --tint: #f3f0fd;
  --link: #4b35c9;
  --radius: 22px;
  --wrap: 1120px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font: 400 17px/1.6 "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-underline-offset: 3px; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-weight: 800; font-size: clamp(2.2rem, 5.2vw, 3.6rem); }
h2 { font-weight: 800; font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
h3 { font-weight: 800; font-size: 1.2rem; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; }

.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 12px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--spark); outline-offset: 2px; border-radius: 6px; }

/* ---- Header ---------------------------------------------------------------- */

.top {
  position: sticky; top: 0; z-index: 5;
  background: rgba(252, 252, 251, .92);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--rule);
}
.top-row { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.25rem; color: var(--ink); text-decoration: none; }
.brand img { border-radius: 9px; }
.top nav { display: flex; gap: 22px; margin-left: auto; }
.top nav a { color: var(--ink-2); text-decoration: none; font-weight: 700; font-size: .98rem; }
.top nav a:hover { color: var(--indigo); }

.btn {
  display: inline-block; border-radius: 999px; padding: 12px 22px;
  background: var(--indigo); color: #fff; font-weight: 800; text-decoration: none;
  box-shadow: 0 6px 18px rgba(58, 42, 168, .25);
}
.btn:hover { background: #2f2290; }
.btn-small { padding: 8px 16px; font-size: .95rem; }

/* ---- Hero -------------------------------------------------------------------- */

.hero {
  background:
    radial-gradient(circle at 85% 15%, rgba(255, 255, 255, .14) 0 18%, transparent 19%),
    radial-gradient(circle at 10% 90%, rgba(255, 255, 255, .08) 0 22%, transparent 23%),
    linear-gradient(135deg, var(--indigo), var(--violet));
  color: #fff;
  padding: 56px 0 40px;
  overflow: hidden;
}
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }
.eyebrow { color: var(--spark); font-weight: 800; letter-spacing: .02em; margin-bottom: 14px; }
.lead { font-size: 1.15rem; color: rgba(255, 255, 255, .9); max-width: 36em; }
.hero-shot img {
  width: min(320px, 80%); margin: 0 auto;
  border-radius: 34px; border: 8px solid rgba(255, 255, 255, .95);
  box-shadow: 0 30px 60px rgba(15, 8, 60, .45);
  transform: rotate(2deg);
}

.store-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.store {
  display: inline-flex; align-items: center; gap: 10px;
  background: #0b0b0b; color: #fff; text-decoration: none;
  border-radius: 14px; padding: 10px 18px 10px 14px; min-width: 190px;
  font-weight: 800; font-size: 1.1rem; line-height: 1.1;
}
.store svg { width: 26px; height: 26px; fill: currentColor; flex: none; }
.store small { display: block; font-weight: 700; font-size: .72rem; opacity: .85; letter-spacing: .02em; }
.store:hover { background: #000; }
.store-soon { background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .35); }

.stats {
  list-style: none; padding: 0; margin: 44px 0 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
}
.stats li {
  background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 18px; padding: 14px 18px; color: rgba(255, 255, 255, .9); font-weight: 700;
}
.stats strong { display: block; font-size: 1.8rem; font-weight: 800; color: #fff; }

/* ---- Sections ---------------------------------------------------------------- */

/* Links to a section stop below the sticky header, not under it. */
section[id] { scroll-margin-top: 64px; }

.section { padding: 72px 0; }
.section.alt { background: var(--plane); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.section-lead { color: var(--ink-2); font-size: 1.1rem; max-width: 40em; }

.steps { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.steps li { counter-increment: step; background: #fff; border: 1px solid var(--rule); border-radius: var(--radius); padding: 24px; }
.steps li::before {
  content: counter(step);
  display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 14px;
  border-radius: 12px; background: linear-gradient(135deg, var(--indigo), var(--violet));
  color: #fff; font-weight: 800;
}
.steps p { color: var(--ink-2); margin: 0; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 28px; }
.feature { background: #fff; border: 1px solid var(--rule); border-radius: var(--radius); padding: 24px; }
.feature p { color: var(--ink-2); margin: 0; }
.feature .icon {
  width: 48px; height: 48px; display: grid; place-items: center; margin-bottom: 14px;
  font-size: 1.5rem; border-radius: 14px; background: var(--tint);
}

.shots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 28px; }
.shots figure { margin: 0; }
.shots img { border-radius: 22px; border: 1px solid var(--rule); box-shadow: 0 12px 30px rgba(20, 16, 60, .12); }
.shots figcaption { text-align: center; font-weight: 800; margin-top: 12px; }

.countries { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 28px; }
.country { background: #fff; border: 1px solid var(--rule); border-radius: var(--radius); padding: 20px 22px; }
.country h3 { margin-bottom: 8px; }
.country ul { list-style: none; padding: 0; margin: 0; color: var(--ink-2); }
.country li + li { margin-top: 8px; }
.chip {
  display: inline-block; padding: 1px 10px; margin-right: 6px; border-radius: 999px;
  background: var(--tint); color: var(--indigo); font-weight: 800; font-size: .9rem;
}

.parents { display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; align-items: start; }
.checks { list-style: none; padding: 0; margin: 0; }
.checks li { position: relative; padding: 0 0 16px 40px; color: var(--ink-2); }
.checks li strong { color: var(--ink); }
.checks li::before {
  content: "✓"; position: absolute; left: 0; top: 1px;
  width: 26px; height: 26px; display: grid; place-items: center;
  border-radius: 8px; background: #e3f8ee; color: #006300; font-weight: 800;
}

.plans { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 28px; max-width: 900px; }
.plan { background: #fff; border: 1px solid var(--rule); border-radius: var(--radius); padding: 26px; }
.plan ul { padding-left: 20px; margin: 0; color: var(--ink-2); }
.plan li + li { margin-top: 6px; }
.price { font-size: 2rem; font-weight: 800; margin: 0 0 4px; }
.price small { font-size: 1rem; color: var(--ink-2); }
.price-alt { color: var(--ink-2); font-size: .95rem; }
.plan-premium { border: 2px solid var(--violet); box-shadow: 0 16px 36px rgba(124, 68, 224, .16); }
.plan-premium h3 { color: var(--violet); }
.note { color: var(--ink-2); margin-top: 22px; max-width: 900px; }

details { background: #fff; border: 1px solid var(--rule); border-radius: 16px; padding: 0 20px; margin-top: 12px; }
summary { cursor: pointer; font-weight: 800; padding: 16px 0; list-style-position: outside; }
details p { color: var(--ink-2); }
.contact { margin-top: 24px; font-weight: 700; }

/* ---- Get the app (the header button's destination) ------------------------------ */

.get {
  background:
    radial-gradient(circle at 90% 20%, rgba(255, 255, 255, .12) 0 20%, transparent 21%),
    linear-gradient(135deg, var(--indigo), var(--violet));
  color: #fff;
  padding: 64px 0;
}
.get-grid { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; }
.get .lead { margin-bottom: 0; }
.get-qr { margin: 0; text-align: center; max-width: 200px; }
.get-qr img { background: #fff; border-radius: 18px; padding: 14px; margin: 0 auto 10px; }
.get-qr figcaption { font-size: .9rem; font-weight: 700; color: rgba(255, 255, 255, .85); }

/* ---- Footer -------------------------------------------------------------------- */

.foot { background: #12102b; color: #c3c2d6; padding: 36px 0 28px; }
.foot-row { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.brand-foot { color: #fff; font-size: 1.1rem; }
.brand-foot img { border-radius: 7px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 18px; margin-left: auto; }
.foot a { color: #fff; text-decoration: none; font-weight: 700; }
.foot a:hover { text-decoration: underline; }
.fine { font-size: .85rem; margin: 22px 0 0; color: #9f9db8; }

/* "A product of Dakwa Technologies": the D/T mark and the name set in caps, as
   in the Dakwa lockup (the same treatment as ProcureFlow's owner mark). */
.foot-brands { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.maker { display: flex; align-items: center; gap: 10px; margin: 0; }
.maker-cap { font-size: .8rem; font-weight: 700; color: #9f9db8; }
.maker img { height: 30px; width: auto; }
.maker-name {
  color: #fff; font-weight: 800; font-size: .95rem; line-height: 1.1;
  text-transform: uppercase; letter-spacing: .07em;
}
.maker-name small {
  display: block; font-size: .62rem; font-weight: 700; letter-spacing: .17em; color: #ccd8ef;
}

/* ---- 404 ------------------------------------------------------------------------- */

.notfound { min-height: 100vh; display: grid; place-items: center; text-align: center; }
.notfound img { margin: 0 auto 20px; border-radius: 18px; }
.notfound .lead { margin: 0 auto 24px; }
.btn-light { background: #fff; color: var(--indigo); }
.btn-light:hover { background: var(--tint); }

/* ---- Small screens ---------------------------------------------------------------- */

@media (max-width: 900px) {
  .top nav { display: none; }
  .top-row .btn { margin-left: auto; }
  .hero-grid, .parents { grid-template-columns: 1fr; }
  .hero-shot img { width: min(260px, 70%); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .steps, .features { grid-template-columns: 1fr; }
  .shots { grid-template-columns: repeat(2, 1fr); }
  .countries, .plans { grid-template-columns: 1fr; }
  .section { padding: 52px 0; }
  .get-grid { grid-template-columns: 1fr; }
  .get-qr { display: none; }
}
@media (max-width: 420px) {
  .store { min-width: 0; width: 100%; }
  .foot nav { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
