/* ============================================================
   FundBrick — the redesigned home page
   home-v2.css — loaded by front/home_v2.blade.php only.

   Every rule is scoped to .home-v2, the class the page's own
   wrapper carries, so nothing here reaches any other page. It
   sits on top of custom.css: the live page's own classes stay
   and this changes only what is different.

   The footer is not here - see css/front/footer-v2.css.

   Brand: yellow #ffcc2a · ink #1a1a1a
   ============================================================ */

/* one measure of space for every section, about half of what the old page left */
.home-v2 section.h2-sec{padding:56px 0}

/* ------------------------------------------------------------
   The page has one call to action, used four times: the banner, How It Work,
   Sign Up and You Have Doubts. Flat yellow with the darker yellow as its
   edge - not the site buttons, which carry a hard 4px offset shadow and each
   have a different width. Same button as How It Work and Contact Us.
   ------------------------------------------------------------ */
.home-v2 .home-btn{
  display:inline-flex;align-items:center;justify-content:center;gap:7px;padding:12px 22px;
  background:#ffcc2a;border:1px solid #e6b415;border-radius:8px;color:#1a1a1a !important;
  font-size:13.5px;font-weight:600;line-height:1.3;white-space:nowrap;box-shadow:none;
  transition:background .12s;
}
.home-v2 .home-btn i{font-size:11px}
.home-v2 .home-btn:hover{background:#e6b415;color:#1a1a1a !important;text-decoration:none}
.home-v2 .home-btn:focus{outline:none;box-shadow:0 0 0 3px rgba(255,204,42,.45)}

/* ------------------------------------------------------------
   1. banner
   ------------------------------------------------------------ */
/* tall enough to show the whole photograph: cover would otherwise cut the
   house. 50.7vw is the picture's own shape (1920x972). */
.home-v2 section.banner-wrapper{display:flex;align-items:center;padding:7rem 0 5rem;min-height:min(50.7vw,760px)}
.home-v2 section.banner-wrapper > .container{width:100%}
@media (min-width:992px){ .home-v2 section.banner-wrapper{background-position:center} }
.home-v2 .home-lead{max-width:520px;margin:16px 0 24px;font-size:16px;line-height:1.75;opacity:.92}
/* the round play button, with a slow ring */
.home-v2 .home-play{display:inline-flex;flex-direction:column;align-items:center;gap:16px}
.home-v2 .home-play-btn{
  position:relative;width:88px;height:88px;border-radius:50%;background:#ffcc2a;color:#1a1a1a;
  display:grid;place-items:center;font-size:26px;box-shadow:0 12px 36px rgba(0,0,0,.35);transition:transform .2s;
}
.home-v2 .home-play-btn i{margin:0 0 0 5px;font-size:26px;line-height:1;color:#1a1a1a;text-shadow:none}
.home-v2 .home-play-btn::after{content:"";position:absolute;inset:-10px;border-radius:50%;border:2px solid rgba(255,204,42,.55);animation:home-v2-pulse 2.2s ease-out infinite}
.home-v2 .home-play:hover .home-play-btn{transform:scale(1.06)}
.home-v2 .home-play h5{margin:0;font-size:18px;letter-spacing:.02em}
@keyframes home-v2-pulse{0%{transform:scale(.9);opacity:1}100%{transform:scale(1.35);opacity:0}}
@media (prefers-reduced-motion:reduce){.home-v2 .home-play-btn::after{animation:none}}

/* ------------------------------------------------------------
   shared: headings, the bar under them, the faint drawings
   ------------------------------------------------------------ */
.home-v2 .section-main-heading{font-size:30px;line-height:1.3}
/* the short thick bar, not the site's long hairline */
.home-v2 .separator-yellow{max-width:56px;height:3px;border-radius:2px;background:#ffcc2a;margin:12px 0 0}
.home-v2 .separator-yellow.ml-auto{margin-left:auto}
.home-v2 .separator-yellow.mr-auto{margin-right:auto}
.home-v2 .h2-sub{margin:22px 0 26px;font-size:15px}
.home-v2 .h2-cards{margin-top:26px;row-gap:16px}
.home-v2 .inves-hands-left,
.home-v2 .howitwork-left-wrapper{text-align:center}
@media (min-width:992px){
  .home-v2 .inves-hands-right .section-main-heading{font-size:32px}
}
/* the large faint drawings behind the sections, quieter than the old page keeps them */
.home-v2 .inves-dollar-icon{opacity:.4}
.home-v2 .inves-opportunities-icon,
.home-v2 .inveshands-barchart-icon{opacity:.5}
.home-v2 .howitwork-icon{opacity:.32;max-width:300px;bottom:2rem}

/* each section's content rises in once as it scrolls into view - see home-v2.js.
   The coloured bands themselves stay put. */
.home-v2 .home-reveal{opacity:0;transform:translateY(24px);transition:opacity .6s ease,transform .6s ease}
.home-v2 .home-reveal.is-in{opacity:1;transform:none}

/* ------------------------------------------------------------
   2. How It Work
   ------------------------------------------------------------ */
/* the picture stays as the site has it, decoration and all. It is capped, set
   on a soft panel and given its own shadow, so the empty corners of the file
   read as composition and not as a gap. */
.home-v2 section.howitwork-section{background:linear-gradient(180deg,#fafbfd 0%,#fff 60%)}
@media (min-width:992px){
  .home-v2 .howitwork-left-main{max-width:52%;flex:0 0 52%}
  .home-v2 .howitwork-right-main{max-width:48%;flex:0 0 48%}
}
.home-v2 .howitwork-left-wrapper{position:relative;max-width:560px;isolation:isolate}
.home-v2 .howitwork-left-wrapper::before{
  content:"";position:absolute;z-index:-1;inset:8% 4% 10%;border-radius:28px;
  background:linear-gradient(150deg,#fff6df 0%,#f5f8fb 58%,#f7f9fc 100%);
  border:1px solid #edf0f4;
}
.home-v2 .howitwork-left-wrapper > img{
  position:relative;max-width:100%;
  filter:drop-shadow(0 18px 26px rgba(16,24,40,.16));
  animation:home-v2-float 7s ease-in-out infinite;
}
@keyframes home-v2-float{0%,100%{transform:translateY(-7px)}50%{transform:translateY(7px)}}
@media (prefers-reduced-motion:reduce){.home-v2 .howitwork-left-wrapper > img{animation:none}}
.home-v2 .howitwork-right-wrapper{position:relative;z-index:1}

/* the steps: numbered, joined, in the order they happen */
.home-v2 .hiw-steps{list-style:none;position:relative;padding:0;margin:20px 0 22px}
.home-v2 .hiw-steps li{display:flex;align-items:center;gap:18px;padding-bottom:26px;position:relative}
.home-v2 .hiw-steps li:last-child{padding-bottom:0}
.home-v2 .hiw-steps li::before{content:"";position:absolute;left:27px;top:56px;bottom:0;width:2px;background:#e6e8ec}
.home-v2 .hiw-steps li:last-child::before{display:none}
.home-v2 .hiw-step-ic{
  position:relative;width:56px;height:56px;border-radius:14px;background:#fff;border:1px solid #e6e8ec;
  display:grid;place-items:center;flex:none;z-index:1;box-shadow:0 1px 2px rgba(16,24,40,.05),0 1px 3px rgba(16,24,40,.06);
  transition:background .2s,border-color .2s,transform .2s;
}
.home-v2 .hiw-step-ic img{width:30px;height:30px;object-fit:contain}
.home-v2 .hiw-step-n{
  position:absolute;right:-8px;top:-8px;width:22px;height:22px;border-radius:50%;background:#ffcc2a;color:#1a1a1a;
  font-size:11.5px;font-weight:800;display:grid;place-items:center;border:2px solid #fff;transition:background .2s,color .2s;
}
.home-v2 .hiw-steps li:hover .hiw-step-ic{background:#ffcc2a;border-color:#ffcc2a;transform:translateY(-2px)}
.home-v2 .hiw-steps li:hover .hiw-step-n{background:#1a1a1a;color:#fff}
.home-v2 .hiw-steps li > div > b{display:block;font-size:16px;font-weight:600;color:#1a1a1a}

/* ------------------------------------------------------------
   3. Lending: four cards of one height on the dark band
   ------------------------------------------------------------ */
@media (min-width:992px){
  .home-v2 section.inves-fundbrick-section{padding:3rem 0 3.5rem}
}
.home-v2 .inves-fundbrick-section .investing-subwrapper{
  height:100%;padding:30px 20px 26px;border-radius:14px;
  background:rgba(255,255,255,.03);border:1px solid rgba(255,255,255,.09);
  transition:border-color .2s,transform .2s,background .2s;
}
.home-v2 .inves-fundbrick-section .investing-subwrapper:hover{border-color:rgba(255,204,42,.55);background:rgba(255,255,255,.05);transform:translateY(-3px)}
.home-v2 .inves-fundbrick-section .investing-subwrapper:hover .investing-cricle-icon{background:#ffcc2a}
.home-v2 .inves-fundbrick-section .investing-subwrapper:hover .investing-cricle-icon img{filter:invert(0%) sepia(231%) saturate(0%) hue-rotate(0deg) brightness(20%) contrast(108%)}
.home-v2 .investing-cricle-icon{width:92px;height:92px}
.home-v2 .investing-cricle-icon img{max-width:48px}
.home-v2 .investing-subwrapper h5{margin-top:14px !important;font-size:14px;line-height:1.45;letter-spacing:.03em}
.home-v2 .investing-subwrapper p{margin-top:8px !important;font-size:13px;line-height:1.6;color:rgba(255,255,255,.7) !important}

/* ------------------------------------------------------------
   5. Sign Up: the checklist
   ------------------------------------------------------------ */
.home-v2 .hiw-list{list-style:none;padding:0;margin:16px 0 22px}
.home-v2 .hiw-list li{display:flex;align-items:center;gap:13px;padding:13px 0;border-bottom:1px solid #e6e8ec}
.home-v2 .hiw-list li:last-child{border-bottom:0}
.home-v2 .hiw-tick{width:24px;height:24px;border-radius:50%;background:#e7f5ef;color:#0f7b52;display:grid;place-items:center;flex:none}
.home-v2 .hiw-tick svg{width:13px;height:13px}
.home-v2 .hiw-list b{display:block;font-size:14.5px;font-weight:600;line-height:1.5;color:#1a1a1a}

/* ------------------------------------------------------------
   6. the reviews: a card each, three at a time, the rest behind the arrows
   ------------------------------------------------------------ */
.home-v2 .h2-reviews-sec{background:#fff;padding-top:72px}
/* the arrows sit in the gutters, clear of the cards */
.home-v2 .h2-reviews-wrap{position:relative;margin-top:30px;padding:0 58px}
.home-v2 .h2-reviews{
  display:flex;gap:20px;overflow-x:auto;scroll-snap-type:x mandatory;scroll-behavior:smooth;
  padding:6px 4px 10px;scrollbar-width:none;cursor:grab;
}
.home-v2 .h2-reviews::-webkit-scrollbar{display:none}
/* while a card is being dragged, the pointer says so and the text is not selected */
.home-v2 .h2-reviews.is-drag{cursor:grabbing;scroll-snap-type:none;scroll-behavior:auto;user-select:none}
.home-v2 .h2-review{
  position:relative;display:flex;flex-direction:column;flex:0 0 calc((100% - 40px) / 3);scroll-snap-align:start;
  margin:0;padding:26px 24px 20px;background:#fff;border:1px solid #e6e8ec;border-radius:16px;
  box-shadow:0 1px 2px rgba(16,24,40,.04);transition:transform .2s,box-shadow .2s;
}
.home-v2 .h2-review:hover{transform:translateY(-3px);box-shadow:0 12px 28px rgba(16,24,40,.08)}
.home-v2 .h2-quote{position:absolute;right:22px;top:4px;font-size:60px;line-height:1;color:#ffcc2a;opacity:.55}
.home-v2 .h2-review blockquote{margin:0 0 18px;font-size:15px;line-height:1.7;color:#344054}
/* the name sits at the foot of the card, however long the quote is */
.home-v2 .h2-review figcaption{display:flex;align-items:center;gap:12px;margin-top:auto;padding-top:14px;border-top:1px solid #eef0f4}
.home-v2 .h2-face{position:relative;width:42px;height:42px;border-radius:50%;overflow:hidden;background:#ffcc2a;color:#1a1a1a;font-size:14px;font-weight:700;display:grid;place-items:center;flex:none}
.home-v2 .h2-face img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.home-v2 .h2-review b{display:block;font-size:14.5px;color:#1a1a1a}
.home-v2 .h2-review small{font-size:12.5px;color:#98a2b3}
/* the arrows, drawn like the ones on the opportunities slider */
.home-v2 .h2-arrow{
  position:absolute;top:50%;transform:translateY(-50%);z-index:2;width:44px;height:44px;border-radius:50%;
  border:1px solid #e6e8ec;background:#fff;color:#1a1a1a;display:grid;place-items:center;cursor:pointer;
  box-shadow:0 6px 18px rgba(16,24,40,.1);transition:background .2s,border-color .2s,color .2s;
}
.home-v2 .h2-arrow:hover{background:#ffcc2a;border-color:#ffcc2a}
.home-v2 .h2-arrow-prev{left:0}
.home-v2 .h2-arrow-next{right:0}

/* ------------------------------------------------------------
   7. the counters, split by thin lines, the footnote on the mark
   ------------------------------------------------------------ */
.home-v2 section.h2-stats{padding:46px 0 42px}
.home-v2 .h2-counts{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));text-align:center}
.home-v2 .h2-counts > div{padding:6px 12px}
.home-v2 .h2-counts > div + div{border-left:1px solid rgba(26,26,26,.16)}
.home-v2 .h2-counts b{display:block;margin-bottom:10px;font-size:32px;font-weight:800;letter-spacing:-.01em;color:#1a1a1a}
.home-v2 .h2-counts span{font-size:14px;font-weight:500;color:#1a1a1a;opacity:.8}
.home-v2 .h2-has-note{position:relative;display:inline-flex;align-items:center;gap:6px}
.home-v2 .h2-info{
  width:17px;height:17px;padding:0;border:0;border-radius:50%;background:#1a1a1a;color:#ffcc2a;cursor:pointer;
  font:italic 700 11px/17px Georgia,serif;
}
.home-v2 .h2-counts .h2-note{
  position:absolute;left:50%;top:calc(100% + 10px);transform:translateX(-50%);z-index:3;
  width:300px;padding:12px 14px;border-radius:10px;background:#1a1a1a;color:#fff;
  font-size:12.5px;line-height:1.55;text-align:left;opacity:0;visibility:hidden;transition:opacity .15s,visibility .15s;
}
.home-v2 .h2-counts .h2-note::before{content:"";position:absolute;left:50%;top:-5px;width:10px;height:10px;background:#1a1a1a;transform:translateX(-50%) rotate(45deg)}
.home-v2 .h2-has-note:hover .h2-note,
.home-v2 .h2-info:focus + .h2-note{opacity:1;visibility:visible}

/* ------------------------------------------------------------
   8. You Have Doubts?
   ------------------------------------------------------------ */
.home-v2 .doubts-left-wrapper p{line-height:1.6}

/* ------------------------------------------------------------
   9. the partners as tiles in a row, in place of the carousel
   ------------------------------------------------------------ */
.home-v2 .h2-partners{display:flex;flex-wrap:wrap;justify-content:center;gap:16px;margin-top:28px}
.home-v2 .h2-partner{
  display:flex;align-items:center;justify-content:center;width:180px;height:92px;padding:16px;
  background:#fff;border:1px solid #e6e8ec;border-radius:14px;
  transition:border-color .2s,box-shadow .2s,transform .2s;
}
.home-v2 .h2-partner:hover{border-color:#ffcc2a;box-shadow:0 8px 20px rgba(16,24,40,.08);transform:translateY(-2px)}
.home-v2 .h2-partner img{max-width:100%;max-height:58px;object-fit:contain;filter:grayscale(1);opacity:.65;transition:filter .2s,opacity .2s}
.home-v2 .h2-partner:hover img{filter:none;opacity:1}

/* ------------------------------------------------------------
   narrower screens
   ------------------------------------------------------------ */
@media (max-width:991px){
  .home-v2 section.h2-sec{padding:40px 0}
  .home-v2 .section-main-heading{font-size:24px}
  .home-v2 .howitwork-left-wrapper{max-width:460px}
  .home-v2 .howitwork-left-wrapper::before{inset:10% 2% 12%;border-radius:22px}
  /* the live page centres this button once the columns stack */
  .home-v2 .howitwork-right-wrapper .home-btn{display:flex;width:max-content;margin:8px auto 0}
  /* the play button under the call to action, not above the title */
  .home-v2 .banner-left-main{order:1}
  .home-v2 .banner-right-main{order:2}
  .home-v2 .home-play{flex-direction:row;gap:14px;margin:30px 0 0 7px}
  .home-v2 .home-play-btn{width:60px;height:60px}
  .home-v2 .home-play-btn i{font-size:18px;margin-left:3px}
  .home-v2 .home-play-btn::after{inset:-7px}
  .home-v2 .home-play h5{font-size:16px}
  .home-v2 .h2-reviews-sec{padding-top:52px}
  .home-v2 .h2-review{flex-basis:calc((100% - 20px) / 2)}
  .home-v2 .h2-counts{grid-template-columns:repeat(3,minmax(0,1fr));row-gap:22px}
  .home-v2 .h2-counts > div + div{border-left:0}
  .home-v2 .h2-counts b{font-size:26px}
}
@media (max-width:767px){
  .home-v2 .h2-reviews-wrap{padding:0 48px}
}
@media (max-width:640px){
  .home-v2 .h2-review{flex-basis:100%}
  .home-v2 .h2-arrow{width:38px;height:38px}
  .home-v2 .h2-counts .h2-note{width:240px}
  .home-v2 .h2-reviews-wrap{padding:0 42px}
}
@media (max-width:575px){
  .home-v2 section.banner-wrapper{padding:9rem 0 3rem}
  .home-v2 .h2-counts{grid-template-columns:repeat(2,minmax(0,1fr))}
  .home-v2 .h2-partner{width:calc(50% - 8px);height:80px}
  /* Lending: icon beside the words, so four cards are not four screens tall */
  .home-v2 .inves-fundbrick-section .investing-subwrapper{
    display:grid;grid-template-columns:64px 1fr;column-gap:16px;align-items:center;padding:18px;text-align:left !important;
  }
  .home-v2 .investing-cricle-icon{grid-row:span 2;width:64px;height:64px;margin:0 !important}
  .home-v2 .investing-cricle-icon img{max-width:32px}
  .home-v2 .investing-subwrapper h5{margin-top:0 !important;align-self:end}
  .home-v2 .investing-subwrapper p{margin-top:4px !important;align-self:start}
  .home-v2 .inves-fundbrick-section .row > [class*="col-"]{margin-bottom:12px !important}
}

/* ------------------------------------------------------------
   The banner video dialog.

   Outside .home-v2, because the page wrapper closes above it, so it carries
   its own class. The markup, the ids and the script are the old page's; this
   only gives it the card and the title bar the design has.
   ------------------------------------------------------------ */
.home-v2-video .modal-dialog{max-width:820px}
.home-v2-video .modal-content{border:0;border-radius:12px;box-shadow:0 12px 40px rgba(16,24,40,.22);overflow:hidden}
.home-v2-video .modal-header{align-items:center;gap:10px;padding:15px 20px;border-bottom:1px solid #f0f1f4}
.home-v2-video .modal-title{margin:0;font-size:15px;font-weight:600;color:#1a1a1a}
/* The site draws this close as a 45px glyph pushed 10px up. Its rule has the
   same weight as ours and custom.css loads after this file, so the header is
   named here to outrank it. */
.home-v2-video .modal-header button.close{
  margin:0 0 0 auto;padding:0;width:30px;height:30px;border-radius:7px;
  display:grid;place-items:center;font-size:21px;line-height:1;top:0;color:#6b7280;
  transition:background .15s,color .15s;
}
.home-v2-video .modal-header button.close:hover{background:#f4f5f7;color:#1a1a1a}
.home-v2-video .modal-body{padding:0;background:#000}
