/* Fotr public site. Palette and fonts follow the app's visual language. */
@font-face { font-family: 'Bricolage Grotesque'; src: url('fonts/bricolage-grotesque.ttf') format('truetype'); font-weight: 200 800; font-display: swap; }
@font-face { font-family: 'Instrument Sans'; src: url('fonts/instrument-sans.ttf') format('truetype'); font-weight: 400 700; font-display: swap; }

:root {
  --indigo: #1E1B3A;
  --indigo-deep: #15132b;
  --indigo-soft: #2a2652;
  --saffron: #FFB627;
  --red: #C21F37;
  --red-soft: #e2566a;
  --teal: #0F7C7E;
  --teal-soft: #3fb3b0;
  --paper: #F3F1FA;
  --ink: #1E1B3A;
  --text: #f3f1fa;
  --muted: #b9b4d6;
  --line: rgba(243, 241, 250, .13);
  --display: 'Bricolage Grotesque', system-ui, sans-serif;
  --body: 'Instrument Sans', system-ui, sans-serif;
  --wrap: 1200px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--indigo); color: var(--text); font-family: var(--body); font-size: 17px; line-height: 1.6; overflow-x: hidden; }
img, svg, iframe { max-width: 100%; }
a { color: var(--saffron); }
a:hover { color: var(--paper); }
h1, h2, h3 { font-family: var(--display); line-height: 1.04; letter-spacing: -.015em; margin: 0; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--saffron); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.section { padding: 96px 0; }
.band { background: rgba(21, 19, 43, .84); }

/* The forest floor: mycelium and mushrooms that grow up the page edges as you scroll (forest.js). */
.forest { position: fixed; top: 0; bottom: 0; width: min(19vw, 230px); height: 100vh; z-index: 0; pointer-events: none; opacity: .6; }
.forest.left { left: 0; }
.forest.right { right: 0; transform: scaleX(-1); }
main, .site-footer { position: relative; z-index: 1; }
@media (max-width: 700px) { .forest { width: 24vw; opacity: .22; } }
.paper { background: var(--paper); color: var(--ink); }
.paper .muted { color: #4a4568; }
.eyebrow { display: inline-block; color: var(--saffron); font-size: 13px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.paper .eyebrow { color: var(--red); }
.muted { color: var(--muted); }
.h2 { font-size: clamp(36px, 4.6vw, 62px); }
.accent { color: var(--saffron); }
.intro { display: flex; flex-direction: column; gap: 14px; max-width: 760px; margin-bottom: 44px; }
.intro p { font-size: 18px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 10; background: rgba(30, 27, 58, .86); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-family: var(--display); font-weight: 800; font-size: 24px; }
.brand img { width: 30px; height: 30px; }
.nav { display: flex; align-items: center; gap: 22px; font-size: 15px; }
.nav a { color: var(--muted); text-decoration: none; }
.nav a:hover { color: var(--text); }
.nav .btn { color: var(--ink); }
@media (max-width: 860px) { .nav a:not(.btn) { display: none; } }

/* Buttons */
.btn { display: inline-block; background: var(--saffron); color: var(--ink); text-decoration: none; font-weight: 700; padding: 13px 22px; border-radius: 999px; border: 0; transition: transform .2s ease, box-shadow .2s ease; }
.btn:hover { color: var(--ink); transform: translateY(-2px); box-shadow: 0 10px 30px rgba(255, 182, 39, .3); }
.btn.big { font-size: 18px; padding: 16px 28px; }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid rgba(243, 241, 250, .35); }
.btn.ghost:hover { color: var(--text); box-shadow: none; border-color: var(--saffron); }
.btn.dark { background: var(--indigo); color: var(--paper); }
.btn.dark:hover { color: var(--paper); box-shadow: 0 10px 30px rgba(30, 27, 58, .35); }
.actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* Hero */
.hero { padding: 64px 0 80px; }
.hero .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 48px; align-items: center; }
.hero-text { display: flex; flex-direction: column; gap: 24px; }
.pill { align-self: flex-start; display: inline-flex; align-items: center; gap: 10px; border: 1px solid rgba(255, 182, 39, .45); color: var(--saffron); padding: 8px 16px; border-radius: 999px; font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal-soft); }
.hero h1 { font-size: clamp(48px, 7vw, 100px); font-weight: 800; line-height: .96; }
.hero h1 em { font-style: normal; color: var(--saffron); font-weight: 500; }
.lead { font-size: 20px; color: #ddd9f0; max-width: 580px; }
.tagline { font-family: var(--display); font-size: 19px; color: var(--muted); }
.hero-art { display: flex; justify-content: center; }
.grow { stroke-dasharray: 900; stroke-dashoffset: 900; animation: grow 4.5s ease-out forwards; }
.g2 { animation-delay: .6s; } .g3 { animation-delay: 1.2s; } .g4 { animation-delay: 1.8s; }
@keyframes grow { to { stroke-dashoffset: 0; } }
.pulse { animation: pulse 3.2s ease-in-out infinite; transform-origin: center; transform-box: fill-box; }
.d2 { animation-delay: 1.1s; } .d3 { animation-delay: 2.2s; }
@keyframes pulse { 0%, 100% { opacity: .45; transform: scale(1); } 50% { opacity: 1; transform: scale(1.5); } }

/* Marquee */
.marquee { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 18px 0; overflow: hidden; }
.track { display: flex; gap: 44px; width: max-content; animation: slide 40s linear infinite; font-family: var(--display); font-size: 24px; color: var(--muted); white-space: nowrap; }
.track .sep { color: var(--saffron); }
@keyframes slide { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Grids and cards */
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.grid.two { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 22px; }
.grid.stats { grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); }
.card { border: 1px solid var(--line); border-radius: 24px; padding: 26px; display: flex; flex-direction: column; gap: 12px; }
.card h3 { font-size: 23px; }
.card p { color: var(--muted); font-size: 16px; }
.paper .card { background: #fff; border-color: transparent; }
.paper .card p { color: #4a4568; }
.lift { transition: transform .25s ease, border-color .25s ease, background .25s ease; }
.lift:hover { transform: translateY(-6px); border-color: rgba(255, 182, 39, .55); background: rgba(255, 255, 255, .05); }
.stat .num { font-family: var(--display); font-size: 44px; font-weight: 700; color: var(--saffron); line-height: 1.1; }
.stat .num.red { color: var(--red-soft); }
.stat .label { color: var(--muted); font-size: 15px; }

.quote { max-width: 980px; margin: 0 auto; text-align: center; display: flex; flex-direction: column; gap: 22px; align-items: center; }
.quote blockquote { margin: 0; font-family: var(--display); font-size: clamp(28px, 3.6vw, 48px); line-height: 1.22; font-weight: 500; }

/* Fotr explained */
.mushroom { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 48px; align-items: center; }
.arabic { font-family: 'Reem Kufi', var(--display); font-size: 1.05em; }
.phases { display: grid; gap: 14px; }
.phase { display: grid; grid-template-columns: 112px 1fr; gap: 16px; align-items: start; border-top: 1px solid var(--line); padding-top: 14px; }
.phase .when { font-family: var(--display); font-weight: 700; color: var(--saffron); }
.phase h3 { font-size: 20px; margin-bottom: 4px; }
.phase p { color: var(--muted); font-size: 16px; }

/* For you / maybe not */
.fit { border-radius: 28px; padding: 34px; display: flex; flex-direction: column; gap: 16px; }
.fit.yes { background: rgba(15, 124, 126, .16); border: 1px solid rgba(63, 179, 176, .45); }
.fit.no { background: rgba(194, 31, 55, .12); border: 1px solid rgba(226, 86, 106, .4); }
.fit h2 { font-size: 32px; }
.fit ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.fit li { display: flex; gap: 12px; align-items: flex-start; }
.fit li svg { flex-shrink: 0; margin-top: 3px; }
.fit .aside { font-family: var(--display); font-size: 19px; }

/* Modules */
.module .n { font-family: var(--display); font-size: 40px; font-weight: 700; color: rgba(243, 241, 250, .3); }
.module.flag { border-color: rgba(255, 182, 39, .55); background: rgba(255, 182, 39, .06); }
.module.flag .n { color: var(--saffron); }
.module .top { display: flex; justify-content: space-between; align-items: center; }
.tag { background: var(--saffron); color: var(--ink); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; }

/* Week bar */
.week { display: flex; flex-wrap: wrap; border-radius: 22px; overflow: hidden; margin-bottom: 22px; }
.week > div { padding: 24px; display: flex; flex-direction: column; justify-content: space-between; gap: 10px; color: var(--paper); min-height: 120px; }
.week .t { font-family: var(--display); font-size: 40px; font-weight: 700; }
.week .learn { flex: 3 1 260px; background: var(--indigo); }
.week .apply { flex: 2 1 200px; background: var(--teal); }
.week .write { flex: 1 1 170px; background: var(--red); }
.icon { width: 34px; height: 34px; }

/* Try it */
.try { border-radius: 36px; background: linear-gradient(135deg, var(--indigo-soft), var(--indigo-deep)); border: 1px solid rgba(255, 182, 39, .35); padding: clamp(32px, 5vw, 64px); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 36px; align-items: center; }
.try h2 { font-size: clamp(34px, 4vw, 54px); }
.try .text { display: flex; flex-direction: column; gap: 18px; }
.phone { justify-self: center; width: min(100%, 300px); aspect-ratio: 9 / 17; border-radius: 34px; border: 10px solid #0d0b1f; background: radial-gradient(circle at 50% 38%, #34306a, var(--indigo-deep) 70%); box-shadow: 0 30px 80px rgba(0, 0, 0, .45); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1px solid rgba(255, 182, 39, .5); border-radius: 999px; padding: 7px 13px; font-size: 14px; color: var(--text); }
.chip.teal { border-color: rgba(63, 179, 176, .7); }
.paths { display: flex; flex-direction: column; gap: 10px; }
.paths div { display: flex; align-items: center; gap: 12px; font-family: var(--display); font-size: 19px; }
.paths span { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--saffron); }

/* Videos */
.video { border: 1px solid var(--line); border-radius: 24px; overflow: hidden; display: flex; flex-direction: column; }
.video .frame { position: relative; aspect-ratio: 16 / 9; background: radial-gradient(circle at 30% 30%, var(--indigo-soft), var(--indigo-deep)); display: flex; align-items: center; justify-content: center; }
.video .frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video .soon { display: flex; flex-direction: column; align-items: center; gap: 10px; color: var(--muted); font-size: 14px; letter-spacing: .08em; text-transform: uppercase; }
.video .body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 6px; }
.video h3 { font-size: 21px; }
.video p { color: var(--muted); font-size: 15px; }

/* Thinkers */
.thinker { border-top: 2px solid var(--saffron); padding-top: 18px; display: flex; flex-direction: column; gap: 8px; }
.thinker:nth-child(2) { border-color: var(--red-soft); }
.thinker:nth-child(3) { border-color: var(--teal-soft); }
.thinker:nth-child(4) { border-color: var(--paper); }
.thinker h3 { font-size: 25px; }
.thinker p { color: var(--muted); font-size: 16px; }
.names { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.names span { background: rgba(243, 241, 250, .08); border-radius: 999px; padding: 8px 15px; font-size: 15px; }

/* Cohort zero */
.offer { border-radius: 28px; padding: 32px; display: flex; flex-direction: column; gap: 14px; border: 1px solid var(--line); }
.offer.get { border-color: rgba(255, 182, 39, .5); background: rgba(255, 182, 39, .05); }
.offer h3 { font-size: 27px; }
.offer p { color: #ddd9f0; }
.note { border-radius: 22px; background: rgba(194, 31, 55, .13); border: 1px solid rgba(226, 86, 106, .38); padding: 22px 26px; display: flex; gap: 14px; align-items: flex-start; margin-top: 22px; }
.note svg { flex-shrink: 0; margin-top: 3px; }

/* Downloads */
.download { display: flex; gap: 18px; align-items: center; text-decoration: none; color: var(--ink); background: #fff; border-radius: 22px; padding: 22px 24px; transition: transform .2s ease, box-shadow .2s ease; }
.download:hover { color: var(--ink); transform: translateY(-3px); box-shadow: 0 14px 34px rgba(30, 27, 58, .16); }
.download .ext { flex-shrink: 0; width: 54px; height: 64px; border-radius: 10px; background: var(--red); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; letter-spacing: .06em; }
.download h3 { font-size: 21px; }
.download p { color: #4a4568; font-size: 15px; }

/* FAQ */
.faq { max-width: 900px; margin: 0 auto; display: flex; flex-direction: column; }
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; font-family: var(--display); font-size: 22px; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq .plus { color: var(--saffron); transition: transform .25s ease; }
.faq details[open] .plus { transform: rotate(45deg); }
.faq details p { margin-top: 12px; color: var(--muted); }

/* Call to action */
.cta { border-radius: 36px; background: var(--saffron); color: var(--ink); padding: clamp(36px, 6vw, 76px); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 30px; align-items: center; }
.cta h2 { font-size: clamp(44px, 5.6vw, 82px); font-weight: 800; }
.cta p { font-size: 19px; max-width: 540px; }
.cta .side { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.cta .small { font-family: var(--display); font-size: 17px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 32px 0 44px; color: var(--muted); font-size: 14px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .grow { stroke-dashoffset: 0; }
  html { scroll-behavior: auto; }
}
