/* Fataghoul, one page. White paper, serif headlines, one neon lime,
   one deep forest green. Photos are black and white inside folder cards
   (the tab shape is cut in app.js so it fits every card size). */

:root{
  --white: #FFFFFF;
  --ink:   #121212;
  --ink-2: #5B5B57;
  --line:  #E6E6E1;
  --soft:  #F1F1EE;
  --sage:  #EEF0E7;
  --lime:  #C6F24E;
  --lime-2:#DDF98F;
  --forest:#0E3B2C;
  --forest-2:#16503C;

  --serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --sans: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --ease-out: cubic-bezier(.2,.8,.2,1);
  --spring: cubic-bezier(.3,1.5,.5,1);

  --gut: clamp(16px, 4vw, 40px);
  --max: 1200px;
  --sec: clamp(56px, 8vw, 110px);
  --r: 22px;
}

*{ box-sizing: border-box; margin: 0; padding: 0; }
html{ -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce){ html{ scroll-behavior: auto; } }
body{
  font-family: var(--sans); font-size: 16px; line-height: 1.55;
  color: var(--ink); background: var(--white);
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
a{ color: inherit; }
ol{ list-style: none; }
img{ display: block; max-width: 100%; }
button, input, select{ font: inherit; color: inherit; }
:focus-visible{ outline: 2px solid var(--forest); outline-offset: 3px; }

.wrap{ max-width: var(--max); margin-inline: auto; padding-inline: var(--gut); }
.section{ padding: var(--sec) 0 0; }

/* ---- type ---------------------------------------------------------- */
.title, .h2{ font-family: var(--serif); font-weight: 500; letter-spacing: -.02em; }
.title{ font-size: clamp(2.6rem, 6.4vw, 5rem); line-height: 1.02; text-align: center; }
.h2{ font-size: clamp(1.9rem, 3.8vw, 3rem); line-height: 1.08; }
.lede{ max-width: 34em; margin: 18px auto 0; text-align: center; color: var(--ink-2); font-size: 1.05rem; }
.sub{ color: var(--ink-2); max-width: 36em; margin-top: 12px; }

/* ---- buttons ------------------------------------------------------- */
.btn{
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 24px; border-radius: 999px; border: 0; cursor: pointer;
  font-weight: 600; font-size: .95rem; text-decoration: none; white-space: nowrap;
  transition: transform .2s var(--ease-out), background .2s, box-shadow .2s;
}
.btn svg{ width: 16px; height: 16px; transition: transform .2s var(--ease-out); }
.btn:hover svg{ transform: translateX(3px); }
.btn:active{ transform: scale(.97); }
.btn-sm{ height: 40px; padding: 0 18px; font-size: .9rem; }
.btn-dark{ background: var(--ink); color: var(--white); }
.btn-dark:hover{ background: var(--forest); }
.btn-soft{ background: var(--soft); color: var(--ink); }
.btn-soft:hover{ background: var(--line); }
.btn-lime{ background: var(--lime); color: var(--ink); }
.btn-lime:hover{ background: var(--lime-2); }
.btn-block{ width: 100%; }
.btn:disabled{ opacity: .6; cursor: default; }

/* ---- top bar ------------------------------------------------------- */
.bar{
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.82); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
  transition: box-shadow .25s;
}
.bar.scrolled{ box-shadow: 0 1px 0 var(--line); }
.bar-inner{ display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 68px; }
.wordmark{ display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 1.1rem; letter-spacing: -.01em; text-decoration: none; }
.wordmark svg{ width: 24px; height: 24px; color: var(--forest); }
.jumps{ display: flex; gap: 4px; }
.jumps a{ text-decoration: none; font-size: .92rem; font-weight: 500; color: var(--ink-2); padding: 8px 14px; border-radius: 999px; transition: background .2s, color .2s; }
.jumps a:hover, .jumps a.on{ color: var(--ink); background: var(--soft); }

/* ---- intro motion -------------------------------------------------- */
.js .rise{ animation: fadeUp .9s var(--ease-out) both; animation-delay: calc(.1s + var(--i, 0) * .1s); }
@keyframes fadeUp{ from{ opacity: 0; transform: translateY(18px); } }
.js [data-reveal]{ opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); transition-delay: calc(var(--i, 0) * .08s); }
.js [data-reveal].in{ opacity: 1; transform: none; }

/* ---- hero ---------------------------------------------------------- */
.hero{ padding-top: clamp(36px, 6vw, 72px); }
.actions{ display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }

/* Six folder cards, staggered like a hand of cards */
.deck{
  max-width: 1320px; margin: clamp(40px, 6vw, 72px) auto 0; padding-inline: var(--gut);
  display: grid; grid-template-columns: repeat(6, 1fr); gap: clamp(8px, 1.2vw, 16px); align-items: end;
}
.folder{
  position: relative; overflow: hidden; border-radius: var(--r);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 18px; color: var(--ink);
}
.js .deck .folder{ animation: dealIn 1s var(--ease-out) both; animation-delay: calc(.35s + var(--i) * .07s); }
@keyframes dealIn{ from{ opacity: 0; transform: translateY(60px) rotate(2deg); } }
.d-1{ height: clamp(200px, 26vw, 330px); }
.d-2{ height: clamp(170px, 21vw, 270px); }
.d-3{ height: clamp(130px, 15vw, 190px); }
.d-4{ height: clamp(190px, 24vw, 300px); }
.d-5{ height: clamp(160px, 19vw, 240px); }
.d-6{ height: clamp(210px, 27vw, 340px); }

.f-forest{ background: var(--forest); color: var(--white); justify-content: space-between; }
.f-forest .f-small{ padding-right: 40px; }
.f-forest::before{ /* soft stripes, like the reference card */
  content: ""; position: absolute; inset: 40% -20% -10%; border-radius: 50%;
  background: repeating-radial-gradient(circle at 50% 120%, transparent 0 22px, rgba(255,255,255,.05) 22px 40px);
  pointer-events: none;
}
.f-plain{ background: var(--soft); }
.f-lime{ background: var(--lime); }
.f-big{ font-family: var(--serif); font-size: clamp(2.2rem, 4vw, 3.4rem); line-height: 1; margin-top: 14px; }
.f-mid{ font-family: var(--serif); font-size: clamp(1.5rem, 2.4vw, 2rem); line-height: 1; }
.f-small{ font-size: .82rem; line-height: 1.35; opacity: .75; margin-top: 8px; max-width: 16em; position: relative; }
.f-go{
  position: absolute; right: 14px; bottom: 14px; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; background: var(--lime); color: var(--ink);
}
.f-go svg{ width: 16px; height: 16px; }
.f-photo{ background: var(--soft); }
.folder img{
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(1) contrast(1.05); transition: transform .8s var(--ease-out);
}
.folder:hover img{ transform: scale(1.04); }
.f-lime img{ filter: grayscale(1) contrast(1.1); mix-blend-mode: multiply; }
.f-tag{
  position: relative; align-self: flex-start;
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,.92); color: var(--ink); text-decoration: none;
  font-size: .78rem; font-weight: 600; line-height: 1.25; padding: 8px 12px; border-radius: 14px;
}
.f-tag-dark{ background: var(--ink); color: var(--white); }
.f-tag svg{ width: 14px; height: 14px; flex: none; }

/* ---- how: lime panel ----------------------------------------------- */
.lime-panel{
  background: var(--lime); border-radius: calc(var(--r) + 6px);
  padding: clamp(36px, 6vw, 72px) clamp(20px, 5vw, 64px); text-align: center;
}
.lime-panel .sub{ margin-inline: auto; color: #2c3a12; }
.steps{ display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 4vw, 56px); margin-top: clamp(32px, 5vw, 56px); }
.steps li{ display: flex; flex-direction: column; align-items: center; }
.doodle{ width: 104px; height: 104px; }
.steps li:hover .doodle{ animation: wiggle .6s var(--ease-out); }
@keyframes wiggle{ 30%{ transform: rotate(-7deg) scale(1.06); } 60%{ transform: rotate(5deg); } }
.steps h3{ font-family: var(--serif); font-weight: 500; font-size: 1.3rem; line-height: 1.2; margin-top: 14px; max-width: 13em; }
.steps p{ font-size: .92rem; color: #2c3a12; margin-top: 8px; max-width: 22em; }

/* ---- where to drop ------------------------------------------------- */
.row-head{ display: flex; justify-content: space-between; align-items: flex-end; gap: 12px 40px; flex-wrap: wrap; }
.row-head .sub{ margin-top: 0; max-width: 26em; }
.spots{ display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(12px, 2vw, 24px); margin-top: 32px; }
.spot-img{ aspect-ratio: 4 / 3; border-radius: var(--r); overflow: hidden; background: var(--soft); }
.spot-img img{ width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); transition: transform .8s var(--ease-out); }
.spots li:hover .spot-img img{ transform: scale(1.05); }
.spots h3{ font-family: var(--serif); font-weight: 500; font-size: 1.35rem; margin-top: 16px; }
.spots p{ font-size: .92rem; color: var(--ink-2); margin-top: 6px; }
.spot-meta{
  display: flex; justify-content: space-between; margin-top: 14px; padding-top: 12px;
  border-top: 3px solid var(--lime); font-size: .82rem; font-weight: 600;
}
.spot-meta span + span{ color: var(--ink-2); font-weight: 500; }

/* ---- school total -------------------------------------------------- */
.count-grid{
  position: relative; display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center;
  background: linear-gradient(120deg, var(--white) 30%, #F4FBE3);
  border-radius: calc(var(--r) + 6px); padding: clamp(32px, 5vw, 64px);
}
.count-lead{ font-family: var(--serif); font-size: clamp(1.3rem, 2.2vw, 1.7rem); line-height: 1.2; max-width: 16em; }
.count-num{
  font-family: var(--serif); font-weight: 400; letter-spacing: -.04em;
  font-size: clamp(4.4rem, 12vw, 9rem); line-height: 1; margin-top: 12px;
  font-variant-numeric: tabular-nums;
}
.count-sub{ color: var(--ink-2); margin: 6px 0 24px; }
.count-sub b{ color: var(--ink); }
.wheel-fig{ text-align: center; }
.wheel{ width: min(100%, 420px); height: auto; overflow: visible; }
.js .wheel-fig.in .wheel{ animation: wheelIn 1.4s var(--ease-out) both; }
@keyframes wheelIn{ from{ transform: rotate(-120deg) scale(.9); opacity: 0; } }
.wheel .dot{ transform-box: fill-box; transform-origin: center; }
.wheel .dot.on{ animation: dotIn .5s var(--spring) both; animation-delay: var(--d, 0s); }
@keyframes dotIn{ from{ transform: scale(0); } }
.wheel .next{ transform-box: fill-box; transform-origin: center; animation: ping 1.4s ease-out infinite; }
@keyframes ping{ 0%{ transform: scale(.6); opacity: 1; } 100%{ transform: scale(2.4); opacity: 0; } }
.wheel-fig figcaption{ font-size: .85rem; color: var(--ink-2); margin-top: 12px; }
.float{
  position: absolute; width: clamp(56px, 7vw, 92px); aspect-ratio: 1; object-fit: cover;
  border-radius: 16px; filter: grayscale(1); box-shadow: 0 10px 30px rgba(0,0,0,.08);
  animation: bob 6s ease-in-out infinite;
}
.fl-1{ left: -10px; bottom: 12%; rotate: -6deg; }
.fl-2{ right: -6px; top: 8%; rotate: 7deg; animation-delay: -3s; }
@keyframes bob{ 50%{ transform: translateY(-10px); } }

/* ---- my week ------------------------------------------------------- */
.week-panel{ background: var(--sage); border-radius: calc(var(--r) + 6px); padding: clamp(28px, 5vw, 56px); }
.days{ display: grid; grid-template-columns: repeat(7, 1fr); gap: clamp(6px, 1.2vw, 14px); align-items: end; margin-top: 32px; }
.day{
  display: flex; flex-direction: column; align-items: center; text-align: center;
  background: var(--white); border-radius: 18px; padding: 10px 6px 12px;
}
.stack{ height: 200px; width: 100%; display: flex; flex-direction: column-reverse; align-items: center; padding-bottom: 8px; overflow: hidden; }
.stack svg{ width: min(30px, 70%); aspect-ratio: 1; flex: none; margin-top: -16px; animation: pop .35s var(--spring) both; }
.stack svg:last-child{ margin-top: 0; }
.stack .ghost{ width: min(30px, 70%); aspect-ratio: 1; border-radius: 50%; border: 1.5px dashed #C9CCC0; flex: none; }
.stack .more{ font-weight: 700; font-size: .78rem; margin-bottom: 4px; }
@keyframes pop{ from{ transform: translateY(-40px) scale(.5); opacity: 0; } }
.day-name{ font-weight: 700; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; }
.day-date{ font-size: .7rem; color: var(--ink-2); margin-bottom: 6px; }
.day input{
  width: 100%; max-width: 64px; text-align: center; font-size: 1.4rem; font-family: var(--serif);
  background: var(--soft); border: 0; border-radius: 12px; padding: 6px 0; -moz-appearance: textfield; appearance: textfield;
}
.day input::-webkit-outer-spin-button, .day input::-webkit-inner-spin-button{ -webkit-appearance: none; margin: 0; }
.day input:focus{ outline: 2px solid var(--forest); }
.day.today{ background: var(--lime); }
.day.today input{ background: var(--white); }
.day.future{ opacity: .45; }

/* cap colours: lime, forest and friends */
.c-blue{ color: #2F7DD1; } .c-red{ color: #E8524A; } .c-yellow{ color: #F2C94C; }
.c-green{ color: var(--forest); } .c-orange{ color: #F08A3C; } .c-white{ color: var(--lime); }

.week-foot{ display: flex; align-items: baseline; gap: 12px 32px; flex-wrap: wrap; margin-top: 24px; padding-top: 20px; border-top: 1px solid #D9DCD0; }
.week-total strong{ display: inline-block; font-family: var(--serif); font-weight: 500; font-size: 3rem; line-height: 1; }
.week-total strong.bump{ animation: bump .35s var(--spring); }
@keyframes bump{ 40%{ transform: scale(1.25) rotate(-4deg); } }
.week-total span{ color: var(--ink-2); }
.week-info{ font-size: .9rem; color: var(--ink-2); flex: 1; }
.link-quiet{ background: none; border: 0; cursor: pointer; font-size: .88rem; color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; }
.link-quiet:hover{ color: var(--ink); }

.send{ margin-top: 28px; background: var(--white); border-radius: var(--r); padding: clamp(20px, 3vw, 32px); }
.send h3{ font-family: var(--serif); font-weight: 500; font-size: 1.5rem; }
.send p{ color: var(--ink-2); margin-top: 4px; font-size: .95rem; }
.send-row{ display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.send-row input, .send-row select{ flex: 1 1 180px; }

/* ---- shared fields ------------------------------------------------- */
input:not([type=checkbox]), select{
  height: 48px; padding: 0 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--white);
  font-size: 1rem; min-width: 0;
}
.day input{ height: auto; border: 0; padding: 6px 0; }
input:not([type=checkbox]):focus, select:focus{ outline: none; border-color: var(--forest); box-shadow: 0 0 0 3px rgba(198,242,78,.6); }
select{ appearance: none; -webkit-appearance: none; padding-right: 40px;
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23121212' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 16px center; }
.captcha:not(:empty){ margin-top: 14px; }
.note{ display: none; margin-top: 14px; padding: 12px 14px; border-radius: 14px; font-weight: 600; font-size: .92rem; }
.note.ok{ display: block; background: var(--lime); color: var(--ink); }
.note.bad{ display: block; background: #FDECEC; color: #A02A2A; }

/* ---- join ---------------------------------------------------------- */
.join-grid{ display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.join-pics{ display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 32px; align-items: end; }
.join-pics .folder:first-child{ height: 260px; }
.join-pics .folder:last-child{ height: 210px; }
.form-card{ background: var(--white); border: 1px solid var(--line); border-radius: calc(var(--r) + 6px); padding: clamp(22px, 3.4vw, 40px); box-shadow: 0 20px 60px rgba(14,59,44,.06); }
.form-row{ display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.form-row label{ font-size: .88rem; font-weight: 600; }
.form-card .btn{ margin-top: 8px; }

/* ---- faq ----------------------------------------------------------- */
.faq-panel{ background: var(--sage); border-radius: calc(var(--r) + 6px); padding: clamp(32px, 5vw, 64px) clamp(20px, 6vw, 96px); text-align: center; }
.faq-doodle{ width: 84px; height: 84px; margin: 0 auto 6px; display: block; }
.faq-panel .sub{ margin-inline: auto; }
.faq{ text-align: left; margin-top: 32px; }
.faq details{ border-top: 1px solid #D9DCD0; }
.faq details:last-child{ border-bottom: 1px solid #D9DCD0; }
.faq summary{
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 20px 0; font-weight: 600; font-size: 1.02rem;
}
.faq summary::-webkit-details-marker{ display: none; }
.faq summary::after{
  content: "+"; flex: none; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--ink);
  display: grid; place-items: center; font-weight: 400; font-size: 1.1rem; line-height: 1;
  transition: transform .3s var(--ease-out), background .2s;
}
.faq details[open] summary::after{ transform: rotate(45deg); background: var(--lime); border-color: var(--lime); }
.faq details p{ color: var(--ink-2); padding: 0 48px 20px 0; max-width: 46em; }
.faq details[open] p{ animation: fadeUp .4s var(--ease-out); }

/* ---- footer -------------------------------------------------------- */
.foot{ padding: var(--sec) 0 var(--gut); }
.foot-panel{ background: var(--forest); color: var(--white); border-radius: calc(var(--r) + 6px); padding: clamp(28px, 5vw, 56px); overflow: hidden; position: relative; }
.foot-top{ display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.foot-mark{ font-size: 1.5rem; }
.foot-mark svg{ color: var(--lime); width: 30px; height: 30px; }
.foot-line{ font-family: var(--serif); font-size: clamp(1.6rem, 3vw, 2.4rem); line-height: 1.1; margin-top: 18px; max-width: 12em; }
.foot-links{ display: grid; grid-template-columns: repeat(2, auto); gap: 10px 40px; align-content: start; }
.foot-links a{ text-decoration: none; opacity: .8; font-size: .95rem; }
.foot-links a:hover{ opacity: 1; color: var(--lime); }
.foot-bottom{ display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 48px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.14); font-size: .85rem; }
.foot-bottom p{ opacity: .7; }

/* ---- caps falling after a send ------------------------------------- */
.rain{ position: fixed; top: -50px; z-index: 90; width: var(--s); height: var(--s); pointer-events: none; animation: fall var(--t) cubic-bezier(.4,0,.8,.6) forwards; animation-delay: var(--d); }
@keyframes fall{ to{ transform: translate(var(--dx), 110vh) rotate(var(--r)); } }

/* ---- smaller screens ----------------------------------------------- */
@media (max-width: 1100px){
  .deck{ grid-template-columns: repeat(3, 1fr); }
  .d-1, .d-4, .d-6{ height: 230px; }
  .d-2, .d-3, .d-5{ height: 190px; }
}
@media (max-width: 900px){
  .jumps{ display: none; }
  .steps{ grid-template-columns: 1fr; max-width: 420px; margin-inline: auto; }
  .count-grid{ grid-template-columns: 1fr; text-align: center; }
  .count-lead{ margin-inline: auto; }
  .join-grid{ grid-template-columns: 1fr; }
}
@media (max-width: 640px){
  .deck{ grid-template-columns: repeat(2, 1fr); }
  .d-3, .d-5{ display: none; }
  .spots{ grid-template-columns: 1fr; }
  .row-head{ display: block; }
  .row-head .sub{ margin-top: 10px; }
  .days{ grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; }
  .day{ border-radius: 12px; padding: 8px 2px; }
  .stack{ height: 130px; }
  .stack svg{ width: min(22px, 80%); margin-top: -12px; }
  .day input{ font-size: 1.1rem; }
  .float{ display: none; }
  .week-panel{ padding: 24px 14px; }
  .send{ padding: 18px 14px; }
  .spot-img{ aspect-ratio: 16 / 10; }
  .faq details p{ padding-right: 0; }
}

@media (prefers-reduced-motion: reduce){
  *, *::before, *::after{ animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js [data-reveal]{ opacity: 1; transform: none; }
}
