/* GrowthOS adaptation of 21st.dev @kedhareswer/glass-folder-cards.
   Load after hero.css; inert source card stays in the DOM for the tab controller. */
.hero .feature .stage[data-gos-folder-ready] {
  min-width: 0;
  min-height: 458px;
  padding: 16px 14px 14px;
  align-items: center;
}
.hero .feature .stage[data-gos-folder-ready]:before { opacity: .16; }
.hero .feature .stage .card-wrap[hidden] { display: none !important; }
.gos-folder {
  --gos-ease: cubic-bezier(.2,.8,.2,1);
  --gos-spring: cubic-bezier(.34,1.24,.5,1);
  --gos-ink: color-mix(in srgb, var(--hero-accent, #245f98) 72%, #102b43);
  --gos-milk: color-mix(in srgb, var(--hero-stage, #e0effe) 76%, white);
  position: relative;
  isolation: isolate;
  width: min(100%, 340px);
  min-width: 0;
  flex: none;
  color: #16344f;
  -webkit-tap-highlight-color: transparent;
}
.gos-folder-defs { position: absolute; pointer-events: none; }
.gos-folder-object { position: relative; height: 405px; width: 100%; }
.gos-folder-shadow {
  position: absolute; left: 7%; right: 7%; bottom: 18px; height: 45px;
  border-radius: 50%; background: rgba(29,68,100,.27); filter: blur(18px);
}
.gos-folder-back, .gos-folder-back-rim {
  position: absolute; bottom: 30px; left: 0; width: 100%; aspect-ratio: 340 / 272;
}
.gos-folder-back {
  clip-path: url(#gos-folder-back-shape);
  background: linear-gradient(140deg, #a0cce8, #6098c0 60%, #d3e8f5);
  box-shadow: 0 8px 18px #38648230;
}
.gos-folder-art {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 84% 6%, #ffffffce 0, #ffffff00 36%),
    radial-gradient(ellipse at 13% 60%, var(--gos-milk) 0, transparent 49%),
    repeating-linear-gradient(153deg, transparent 0%, #ffffff35 12%, transparent 28%),
    linear-gradient(145deg, var(--gos-milk) 2%, var(--gos-ink) 62%, var(--gos-milk) 100%);
}
.gos-folder-back-rim, .gos-folder-front-rim { fill: none; pointer-events: none; overflow: visible; }
.gos-folder-back-rim path { stroke: rgba(255,255,255,.7); stroke-width: 1.5px; vector-effect: non-scaling-stroke; }
.gos-folder-files { position: absolute; inset: 0; z-index: 2; pointer-events: none; clip-path: inset(0 -12px 31px); }
.gos-folder:not(.is-open) .gos-folder-files { clip-path: inset(0 10% 31px round 0 0 15px 15px); }
.gos-folder-file {
  box-sizing: border-box; position: absolute; left: 7%; width: 86%; bottom: -54px; height: 264px;
  z-index: calc(1 + var(--slot)); display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; padding: 9px 12px;
  border: 1px solid rgba(28,62,86,.13); border-radius: 13px; text-align: left;
  font: inherit; color: #19364e; cursor: pointer; pointer-events: auto;
  background: linear-gradient(165deg,#fff 0%,#f2f7fa 100%);
  box-shadow: inset 0 1px 0 #fff, 0 12px 24px -9px rgba(18,51,74,.32);
  transform-origin: 50% 100%;
  transform: translate(calc((var(--slot) - 1) * 3px), calc((2 - var(--slot)) * -8px + 38px)) rotate(calc((var(--slot) - 1) * 1deg));
  transition: transform .7s var(--gos-spring), box-shadow .25s var(--gos-ease), border-color .2s;
}
.gos-folder:focus-within:not(.is-open) .gos-folder-file {
  transform: translate(calc((var(--slot) - 1) * 5px), calc((2 - var(--slot)) * -9px + 6px)) rotate(calc((var(--slot) - 1) * 1.5deg));
}
.gos-folder.is-open .gos-folder-file {
  transform: translate(calc((var(--slot) - 1) * 7px), calc(-187px + var(--slot) * 48px)) rotate(calc((var(--slot) - 1) * 2deg));
}
.gos-folder-file-name {
  display: block; min-height: 30px; font-size: 12px; line-height: 15px;
  font-weight: 700; overflow-wrap: anywhere; letter-spacing: -.01em;
}
.gos-folder-lines { display: flex; flex-direction: column; gap: 8px; margin-top: 7px; pointer-events: none; }
.gos-folder-lines i { display: block; width: 88%; height: 5px; border-radius: 3px; background: #b3c8d64d; }
.gos-folder-lines i:first-child { width: 47%; height: 7px; background: #94aec066; }
.gos-folder-lines i:nth-child(3) { width: 72%; }
.gos-folder-lines i:last-child { width: 58%; }
.gos-folder-file[aria-pressed="true"] { border-color: #2068a0; box-shadow: inset 0 0 0 1px #2068a0, 0 12px 24px -9px rgba(18,51,74,.32); }
.gos-folder-file:focus-visible { outline: 3px solid #075c9d; outline-offset: -3px; }
.gos-folder-front {
  position: absolute; z-index: 8; left: 0; bottom: 30px; width: 100%; aspect-ratio: 340 / 198;
  transform-origin: 50% 100%; transform: perspective(760px) rotateX(0deg);
  transition: transform .8s var(--gos-spring);
}
.gos-folder:focus-within:not(.is-open) .gos-folder-front { transform: perspective(760px) rotateX(-9deg); }
.gos-folder.is-open .gos-folder-front { transform: perspective(760px) rotateX(-20deg); }
.gos-folder-glass {
  position: absolute; inset: 0; clip-path: url(#gos-folder-front-shape);
}
.gos-folder-glass::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(240,250,255,.28), rgba(218,239,252,.58) 42%, rgba(213,234,247,.92));
  background: linear-gradient(160deg, #ffffff47, color-mix(in srgb, var(--gos-milk) 62%, transparent) 46%, var(--gos-milk));
  -webkit-backdrop-filter: blur(17px) saturate(1.3); backdrop-filter: blur(17px) saturate(1.3);
}
.gos-folder-glass:after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 24% 0%, rgba(255,255,255,.7), transparent 55%), linear-gradient(120deg, #ffffff45, transparent 44%);
}
.gos-folder-front-rim { position: absolute; inset: 0; width: 100%; height: 100%; }
.gos-folder-front-rim path { stroke: rgba(255,255,255,.9); stroke-width: 2; vector-effect: non-scaling-stroke; }
.gos-folder-toggle {
  all: unset; box-sizing: border-box; position: absolute; inset: 0; z-index: 2;
  display: flex; justify-content: space-between; align-items: end; gap: 8px;
  padding: 0 7% 8%; color: #153c5b; cursor: pointer; border-radius: 14px;
  clip-path: url(#gos-folder-front-shape);
}
.gos-folder-caption { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.gos-folder-title { display: block; font-size: clamp(15px, 1.3vw, 19px); font-weight: 700; line-height: 1.2; }
.gos-folder-meta { display: block; font-size: 12px; line-height: 1.3; font-weight: 500; color: #335c79; }
.gos-folder-key {
  display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 14px;
  background: linear-gradient(155deg,#357ead,#18547f);
  background: linear-gradient(155deg,color-mix(in srgb, var(--gos-ink) 68%, white),var(--gos-ink)); color: white;
  box-shadow: inset 0 1px 0 #ffffff78, 0 7px 15px -6px #17476b91;
}
.gos-folder-key svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s; }
.gos-folder.is-open .gos-folder-key svg { transform: rotate(180deg); }
.gos-folder-toggle:focus-visible { outline: none; }
.gos-folder-front:has(.gos-folder-toggle:focus-visible) .gos-folder-front-rim path { stroke: #075c9d; stroke-width: 4; }
.gos-folder-status { min-height: 32px; padding: 1px 5px 0; color: #28526f; text-align: center; font-size: 12px; line-height: 1.35; font-weight: 600; overflow-wrap: anywhere; }
@media (hover: hover) and (pointer: fine) {
  .gos-folder:hover:not(.is-open) .gos-folder-file {
    transform: translate(calc((var(--slot) - 1) * 5px), calc((2 - var(--slot)) * -9px + 6px)) rotate(calc((var(--slot) - 1) * 1.5deg));
  }
  .gos-folder:hover:not(.is-open) .gos-folder-front { transform: perspective(760px) rotateX(-9deg); }
}
@media (max-width: 800px) {
  .hero .feature .stage[data-gos-folder-ready] { padding: 12px 10px; min-height: 458px; }
  .gos-folder-title { font-size: 15px; }
  .gos-folder-meta { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  .gos-folder *, .gos-folder *::before, .gos-folder *::after { transition: none !important; animation: none !important; }
}
@media (forced-colors: active) {
  .gos-folder-file, .gos-folder-toggle, .gos-folder-key { forced-color-adjust: auto; background: Canvas; color: CanvasText; border: 2px solid CanvasText; }
  .gos-folder-file[aria-pressed="true"] { border-color: Highlight; }
  .gos-folder-status, .gos-folder-meta { color: CanvasText; }
}
