/* Fovo homepage (26 Nov 2026): floating nav, hero with product reel, feature grid. Only used by index.html. */

/* ---------- Nav: transparent at the top, a floating box after scrolling (computers) ---------- */
header.top.hn { position: sticky; top: 0; z-index: 40; background: transparent; padding: 14px 0; transition: padding .3s ease; }
header.top.hn .top-inner { transition: max-width .35s ease, background .3s ease, box-shadow .3s ease, border-color .3s ease, padding .3s ease, border-radius .3s ease; border: 1px solid transparent; }
header.top.hn .nav-cta { flex: none; margin-left: 22px; border: 1.5px solid #2F5E4C; background: #EAF2EE; color: #2F5E4C; text-decoration: none; font-weight: 700; font-size: .92rem; padding: 8px 16px; border-radius: 9px; white-space: nowrap; }
header.top.hn .nav-cta:hover { background: #2F5E4C; color: #fff; }
@media (min-width: 900px) {
  header.top.hn .main-nav { margin-left: auto; }
  header.top.hn.scrolled { padding: 12px 16px; }
  header.top.hn.scrolled .top-inner { max-width: 860px; background: rgba(255,255,255,.88); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-color: #E6E3DC; border-radius: 14px; box-shadow: 0 8px 30px rgba(0,0,0,.08); padding: 8px 8px 8px 18px; }
}
@media (max-width: 899px) {
  header.top.hn { background: var(--paper); padding: 14px 0; }
  header.top.hn.scrolled { box-shadow: 0 6px 20px rgba(16,34,28,.08); }
  header.top.hn .nav-cta { padding: 7px 12px; font-size: .85rem; margin-left: 8px; }
  header.top.hn .nav-toggle { margin-left: auto; }
}

/* ---------- Hero ---------- */
.nh { background-color: var(--paper); background-image: linear-gradient(180deg, rgba(255,255,255,0) 0, rgba(255,255,255,0) calc(100% - 320px), #fff 100%), linear-gradient(#EDE6D6 1px, transparent 1px), linear-gradient(90deg, #EDE6D6 1px, transparent 1px); background-size: 100% 100%, 48px 48px, 48px 48px; padding: 56px 0 0; text-align: center; }
.nh .wrap { max-width: 1240px; }
.nh h1 { margin: 0 auto 16px; font-size: clamp(2.3rem, 5.4vw, 3.9rem); line-height: 1.05; letter-spacing: -.02em; max-width: 19ch; }
.nh .nh-lead { margin: 0 auto 28px; font-size: clamp(1.02rem, 1.6vw, 1.2rem); line-height: 1.55; color: #5E574A; max-width: 38em; }
.nh .nh-btns { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.nh .nh-btn { text-decoration: none; font-weight: 700; font-size: 1rem; padding: 14px 24px; border-radius: 10px; }
.nh .nh-btn.dark { background: #10221C; color: #fff; }
.nh .nh-btn.dark:hover { background: #1C362E; }
.nh .nh-btn.light { background: #fff; color: #10221C; border: 1px solid #E3DCCB; }
.nh .nh-btn.light:hover { border-color: #10221C; }
.nh .nh-proof { margin-top: 18px; font-size: .92rem; color: #6B6353; display: flex; flex-wrap: wrap; gap: 6px 18px; justify-content: center; }
.nh .nh-proof b { color: #10221C; }

/* the "video" stage */
.reel { position: relative; margin-top: 44px; height: 560px; border-radius: 20px; overflow: hidden; background: #DDE5DF; text-align: left; font-family: 'Karla', sans-serif; color: #1D1D1B; }
.scene { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .5s ease, visibility 0s linear .5s; }
.scene.on { opacity: 1; visibility: visible; transition: opacity .5s ease; }
.scene .bg { position: absolute; inset: 0; }
.scene.on .bg { animation: nhKb 4.6s ease-out both; }
.scene .up { opacity: 0; }
.scene.on .up { animation: nhUp .6s ease-out both; }
.scene.on .d1 { animation-delay: .25s; } .scene.on .d2 { animation-delay: .5s; } .scene.on .d3 { animation-delay: .75s; } .scene.on .d4 { animation-delay: 1s; } .scene.on .d5 { animation-delay: 1.6s; }
.scene.on .fill { animation: nhFill 1.2s .4s ease-out both; }
.scene.on .wv { animation: nhBar .9s ease-in-out infinite; }
@keyframes nhKb { from { transform: scale(1); } to { transform: scale(1.08); } }
@keyframes nhUp { from { opacity: 0; transform: translateY(22px) rotate(var(--r, 0deg)); } to { opacity: 1; transform: rotate(var(--r, 0deg)); } }
@keyframes nhFill { from { width: 0; } }
@keyframes nhBar { 0%, 100% { transform: scaleY(.35); } 50% { transform: scaleY(1); } }
.scene .words span { position: absolute; font-family: 'Fraunces', serif; color: rgba(47,94,76,.13); white-space: nowrap; }
.pn { position: absolute; background: #fff; border-radius: 16px; box-shadow: 0 24px 60px rgba(0,0,0,.22); transform: rotate(var(--r, 0deg)); }
.pn .mut { font-size: .82rem; color: #8A877F; }
.win { position: absolute; width: 520px; background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 24px 60px rgba(40,30,10,.22); transform: rotate(var(--r, 0deg)); }
.win .bar { display: flex; align-items: center; gap: 6px; padding: 9px 14px; background: #F3F1EC; border-bottom: 1px solid #E6E3DC; }
.win .bar i { width: 10px; height: 10px; border-radius: 50%; display: block; }
.win .bar i:nth-child(1) { background: #E3786B; } .win .bar i:nth-child(2) { background: #E7C15A; } .win .bar i:nth-child(3) { background: #79B47E; }
.win .bar span { margin-left: 10px; font-size: .78rem; color: #6E6B63; background: #fff; border-radius: 6px; padding: 2px 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.win img { display: block; width: 100%; height: auto; }
.chip { position: absolute; border-radius: 12px; padding: 11px 16px; font-size: .95rem; box-shadow: 0 16px 36px rgba(0,0,0,.22); transform: rotate(var(--r, 0deg)); white-space: nowrap; }
.chip.dark { background: #1D1D1B; color: #fff; }
.chip.light { background: #fff; }
.lvl { display: flex; align-items: baseline; gap: 10px; margin: 4px 0 18px; }
.lvl b { font-size: 3.4rem; font-weight: 700; letter-spacing: -1px; color: #2F5E4C; line-height: 1; }
.bars { display: flex; flex-direction: column; gap: 13px; font-size: .95rem; }
.bars div { display: grid; grid-template-columns: 96px 1fr 30px; align-items: center; gap: 10px; }
.bars .tr { height: 7px; border-radius: 4px; background: #EEECE6; display: block; }
.bars .tr span { display: block; height: 7px; border-radius: 4px; background: #2F5E4C; }
.rows .r { display: flex; justify-content: space-between; align-items: center; padding: 12px 22px; font-size: .95rem; }
.pill { font-size: .75rem; font-weight: 700; border-radius: 999px; padding: 4px 11px; }
.pill.ok { color: #2F5E4C; background: #E7F0EA; } .pill.no { color: #A33A2D; background: #F8E7E4; } .pill.mid { color: #8A5A16; background: #F6EBD9; }
.opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; font-size: .95rem; }
.opts span { border: 1px solid #E6E3DC; border-radius: 10px; padding: 10px 12px; }
.opts span.right { border: 1.5px solid #2F5E4C; background: #E7F0EA; }
.wave { display: flex; align-items: center; gap: 4px; flex: 1; height: 34px; }
.wave i { display: block; width: 4px; border-radius: 2px; background: #1D1D1B; transform-origin: center; }
.wave i.g { background: #D3D0C8; }
.book { position: absolute; width: 200px; height: 280px; border-radius: 10px; overflow: hidden; border: 5px solid #fff; box-shadow: 0 20px 44px rgba(0,0,0,.3); transform: rotate(var(--r, 0deg)); color: #fff; }
.book img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.book .sh { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(16,34,28,.78) 0%, rgba(16,34,28,.05) 32%, rgba(16,34,28,.05) 50%, rgba(16,34,28,.92) 100%); }
.book .tp { position: absolute; left: 13px; right: 13px; top: 11px; display: flex; justify-content: space-between; font-size: .7rem; font-weight: 700; letter-spacing: 1px; }
.book .tp em { font-style: normal; background: rgba(255,255,255,.18); border-radius: 99px; padding: 1px 8px; }
.book .bt { position: absolute; left: 14px; right: 12px; bottom: 13px; }
.book .bt small { display: block; font-size: .62rem; font-weight: 700; letter-spacing: 1.2px; color: #E8C9A8; }
.book .bt b { display: block; font-family: 'Fraunces', serif; font-weight: 500; font-size: 1.3rem; line-height: 1.1; margin: 4px 0 6px; }
.book .bt span { font-size: .72rem; color: #D7DED9; }

/* scene positions (computer) */
.s-check .win { left: 60px; top: 56px; --r: -2deg; }
.s-check .main { right: 64px; top: 64px; width: 380px; padding: 24px 26px; }
.s-check .chip { right: 90px; top: 440px; --r: -2deg; }
.s-cv .win { left: 60px; top: 60px; --r: -2deg; }
.s-cv .main { right: 64px; top: 60px; width: 380px; padding: 10px 0; }
.s-cv .chip { right: 260px; top: 390px; width: 290px; white-space: normal; line-height: 1.45; --r: -2deg; }
.s-listen .main { left: 50%; top: 52px; width: 460px; margin-left: -230px; padding: 22px; }
.s-listen .lv { left: 50%; top: 110px; margin-left: -470px; width: 200px; padding: 16px; --r: -4deg; }
.s-listen .buy { left: 50%; top: 140px; margin-left: 262px; width: 210px; padding: 16px 18px; background: #B23B2E; color: #fff; --r: 4deg; }
.s-listen .tx { left: 50%; top: 440px; margin-left: 10px; width: 300px; white-space: normal; line-height: 1.45; --r: 2deg; }
.s-packs .win { left: 50%; top: 36px; margin-left: 120px; width: 440px; --r: 2deg; z-index: 2; }
.s-packs .books { position: absolute; left: 50%; top: 90px; margin-left: -560px; width: 660px; height: 400px; }
.s-packs .chip { left: calc(50% - 340px); top: 430px; border-radius: 999px; }

/* tabs under the stage */
.reel-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 16px 0 0; padding-bottom: 72px; text-align: left; }
.reel-tabs button { font: inherit; text-align: left; background: transparent; border: 0; border-radius: 10px; padding: 12px 14px; cursor: pointer; color: #1D1D1B; }
.reel-tabs button:hover { background: #EFE9DA; }
.reel-tabs .pr { display: block; height: 3px; background: #E3DCCB; border-radius: 2px; margin-bottom: 12px; overflow: hidden; }
.reel-tabs .pr i { display: block; height: 3px; width: 0; background: #1D1D1B; }
.reel-tabs button.on .pr i { animation: nhProg var(--dur, 4.6s) linear both; }
.reel-tabs button.on.paused .pr i { animation: none; width: 100%; }
@keyframes nhProg { from { width: 0; } to { width: 100%; } }
.reel-tabs b { display: block; font-size: 1rem; font-weight: 600; color: #8A877F; }
.reel-tabs button.on b { color: #1D1D1B; }
.reel-tabs small { display: block; font-size: .88rem; color: #8A877F; margin-top: 2px; }

/* tablets and phones: one centred panel per scene, no side windows */
@media (max-width: 1100px) {
  .reel { height: 520px; }
  .s-check .win, .s-cv .win, .s-listen .lv, .s-listen .buy, .s-packs .win { display: none; }
  .s-check .main, .s-cv .main { left: 50%; right: auto; margin-left: -190px; }
  .s-check .chip { right: auto; left: 50%; margin-left: -120px; top: 420px; }
  .s-cv .chip { right: auto; left: 50%; margin-left: -145px; top: 360px; }
  .s-listen .tx { margin-left: -150px; top: 420px; }
  .s-packs .books { margin-left: -330px; }
  .s-packs .chip { left: calc(50% - 110px); }
}
@media (max-width: 760px) {
  .nh { padding-top: 34px; }
  .reel { height: 470px; margin-top: 32px; border-radius: 16px; }
  .s-check .main, .s-cv .main, .s-listen .main { width: calc(100% - 32px); max-width: 380px; left: 50%; margin-left: 0; transform: translateX(-50%) rotate(var(--r, 0deg)); top: 28px; }
  .scene.on .main.up { animation-name: nhUpC; }
  .s-check .chip, .s-cv .chip, .s-listen .tx { left: 50%; margin-left: 0; transform: translateX(-50%) rotate(var(--r, 0deg)); top: auto; bottom: 22px; max-width: calc(100% - 40px); }
  .scene.on .chip.up, .scene.on .tx.up { animation-name: nhUpC; }
  .s-packs .books { left: 50%; margin-left: -215px; top: 95px; width: 430px; height: 320px; transform: scale(.66); transform-origin: 50% 0; }
  .s-packs .book.b3 { display: none; }
  .s-packs .chip { left: 50%; top: auto; bottom: 40px; margin-left: 0; transform: translateX(-50%) rotate(var(--r, 0deg)); }
  .scene.on .s-packs .chip.up, .s-packs.on .chip.up { animation-name: nhUpC; }
  .reel-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; padding-bottom: 48px; }
  .reel-tabs small { display: none; }
  .scene .words span { font-size: 70% !important; }
}
@keyframes nhUpC { from { opacity: 0; transform: translate(-50%, 22px) rotate(var(--r, 0deg)); } to { opacity: 1; transform: translateX(-50%) rotate(var(--r, 0deg)); } }
@media (prefers-reduced-motion: reduce) {
  .scene.on .bg, .scene.on .up, .scene.on .fill, .scene.on .wv, .reel-tabs button.on .pr i { animation: none !important; opacity: 1; }
}

/* ---------- Feature grid ---------- */
.fg { background: #fff; padding: 56px 0 90px; }
.fg .wrap { max-width: 1140px; }
.fg h2 { text-align: center; font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin: 0 0 10px; }
.fg .fg-sub { text-align: center; color: #8A877F; font-size: 1.1rem; margin: 0 0 44px; }
.fg-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.fc { position: relative; display: block; height: 410px; overflow: hidden; background: #F4F2EC; border: 1px solid #E8E4DB; border-radius: 16px; text-decoration: none; color: #1D1D1B; box-shadow: 0 1px 2px rgba(16,34,28,.04), 0 8px 22px rgba(16,34,28,.07); transition: border-color .2s ease, box-shadow .25s ease, transform .25s ease; }
.fc:hover { border-color: #D6CFBF; box-shadow: 0 2px 4px rgba(16,34,28,.05), 0 16px 36px rgba(16,34,28,.12); transform: translateY(-2px); }
.fc .hd { padding: 24px 24px 0; }
.fc .hd b { display: block; font-family: 'Fraunces', serif; font-weight: 500; font-size: 1.3rem; color: #10221C; }
.fc .hd span { display: block; font-size: .95rem; color: #8A877F; margin-top: 3px; }
.fc .hd em { font-style: normal; color: #B23B2E; font-weight: 700; font-size: .86rem; display: inline-block; margin-top: 8px; transition: transform .2s ease; }
.fc:hover .hd em { transform: translateX(4px); }
.fc .ill { position: absolute; left: 40px; top: 160px; width: 310px; transform: scale(.84); transform-origin: 0 0; transition: transform .35s ease; font-family: 'Karla', sans-serif; }
.fc:hover .ill { transform: translateY(-6px) scale(.84); }
.fc .card { background: #fff; border: 1px solid #E6E3DC; border-radius: 14px; box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 12px 32px rgba(0,0,0,.07); }
.fc .flo { position: absolute; background: #fff; border: 1px solid #E6E3DC; border-radius: 10px; padding: 10px 14px; font-size: .9rem; box-shadow: 0 10px 26px rgba(0,0,0,.09); white-space: nowrap; }
.fc .book { width: 150px; height: 210px; border-width: 4px; box-shadow: 0 12px 28px rgba(0,0,0,.18); }
.fc .book .bt b { font-size: 1rem; } .fc .book .bt small { font-size: .5rem; } .fc .book .bt span { font-size: .56rem; } .fc .book .tp { font-size: .56rem; left: 10px; right: 10px; top: 9px; }
@media (max-width: 1050px) { .fg-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) { .fg { padding: 56px 0 60px; } .fg-grid { grid-template-columns: 1fr; gap: 16px; } .fc { height: 400px; } .fc .ill { left: 30px; } }
