/* StashFlo landing-page integration and conversion layer.
   Extends the approved React design without replacing its modern visual system. */

:root{
  --sf-pink:#FE40C5;
  --sf-pink-deep:#D8139D;
  --sf-pink-soft:#fff2fb;
  --sf-ink:#0b1220;
  --sf-slate:#475569;
  --sf-line:rgba(15,23,42,.10);
  --sf-shadow:0 24px 60px rgba(15,23,42,.08);
}

.sf-home-message{
  margin:0 0 1rem;
  padding:.8rem .9rem;
  border:1px solid rgba(220,38,38,.20);
  border-radius:.8rem;
  background:rgba(254,242,242,.96);
  color:#991b1b;
  font-size:.9rem;
  font-weight:650;
  line-height:1.45;
}
.sf-home-message.is-success{
  border-color:rgba(22,163,74,.22);
  background:rgba(240,253,244,.98);
  color:#166534;
}

.sf-home-trial-note{
  max-width:48rem;
  margin:1rem auto 0;
  padding:.85rem 1rem;
  border:1px solid rgba(254,64,197,.22);
  border-radius:999px;
  background:rgba(254,64,197,.07);
  color:#6b214f;
  font-size:.9rem;
  font-weight:700;
  text-align:center;
}
.sf-home-trial-note strong{color:#b20d7d}
.sf-home-returning-label{white-space:nowrap}

.sf-home-hero-disclosure{
  max-width:39rem;
  margin:1.25rem 0 0;
  padding-left:1rem;
  border-left:3px solid rgba(254,64,197,.55);
  color:#64748b;
  font-size:.82rem;
  font-weight:600;
  line-height:1.55;
}

#demo,
#real-example,
#how-it-works,
#who-it-is-for,
#features,
#trust,
#pricing,
#faq{
  scroll-margin-top:5rem;
}

.sf-home-demo-note{
  display:inline-block;
  max-width:52rem;
  margin:1.25rem auto 0;
  padding:.9rem 1.05rem;
  border:1px solid rgba(254,64,197,.20);
  border-radius:1rem;
  background:#fff;
  color:#64748b;
  font-size:.88rem;
  font-weight:600;
  line-height:1.55;
  box-shadow:0 12px 30px rgba(15,23,42,.04);
}
.sf-home-demo-note strong{color:#9d176f}

.sf-home-field-help{
  margin:.45rem 0 0;
  color:#94a3b8;
  font-size:.72rem;
  font-weight:600;
  line-height:1.4;
}

.sf-home-calculator-cta{
  max-width:64rem;
  margin:2rem auto 0;
  padding:1.1rem;
  display:grid;
  grid-template-columns:minmax(13rem,.68fr) minmax(0,1.55fr);
  gap:1rem;
  align-items:stretch;
  border:1px solid rgba(254,64,197,.18);
  border-radius:2rem;
  background:linear-gradient(135deg,rgba(254,64,197,.08),rgba(255,255,255,.98) 48%,rgba(15,23,42,.035));
  box-shadow:var(--sf-shadow);
}
.sf-home-calculator-result{
  min-height:11rem;
  padding:1.6rem;
  display:flex;
  flex-direction:column;
  justify-content:center;
  border-radius:1.45rem;
  background:var(--sf-ink);
  color:#fff;
  position:relative;
  overflow:hidden;
}
.sf-home-calculator-result::after{
  content:"";
  position:absolute;
  width:11rem;
  height:11rem;
  right:-4rem;
  top:-4.5rem;
  border-radius:999px;
  background:rgba(254,64,197,.24);
  filter:blur(1.5rem);
}
.sf-home-calculator-result span{
  position:relative;
  z-index:1;
  color:#cbd5e1;
  font-size:.75rem;
  font-weight:800;
  letter-spacing:.09em;
  text-transform:uppercase;
}
.sf-home-calculator-result strong{
  position:relative;
  z-index:1;
  margin-top:.45rem;
  color:#fff;
  font-size:clamp(2rem,5vw,3.4rem);
  line-height:1;
  letter-spacing:-.05em;
}
.sf-home-calculator-cta.is-shortfall .sf-home-calculator-result{
  background:linear-gradient(145deg,#391520,#0b1220 74%);
}
.sf-home-calculator-cta-copy{
  padding:1.25rem 1.3rem 1.25rem .75rem;
  display:flex;
  flex-direction:column;
  justify-content:center;
}
.sf-home-calculator-cta-copy h3{
  margin:0 0 .6rem;
  color:#0f172a;
  font-size:clamp(1.4rem,3vw,2rem);
  line-height:1.12;
  letter-spacing:-.035em;
  font-weight:850;
}
.sf-home-calculator-cta-copy p{
  margin:0;
  color:#64748b;
  font-size:.95rem;
  font-weight:600;
  line-height:1.65;
}

.sf-home-inline-actions{
  margin-top:1.25rem;
  display:flex;
  flex-wrap:wrap;
  gap:.75rem;
}
.sf-home-button{
  min-height:3rem;
  padding:.75rem 1.2rem;
  border-radius:999px;
  border:1px solid transparent;
  cursor:pointer;
  font:inherit;
  font-size:.9rem;
  font-weight:800;
  transition:transform .18s ease,box-shadow .18s ease,background .18s ease;
}
.sf-home-button:hover{transform:translateY(-1px)}
.sf-home-button:focus-visible{
  outline:3px solid rgba(254,64,197,.25);
  outline-offset:3px;
}
.sf-home-button-primary{
  color:#fff;
  background:linear-gradient(135deg,var(--sf-pink),#ff6bd5);
  box-shadow:0 14px 28px rgba(254,64,197,.23);
}
.sf-home-button-primary:hover{box-shadow:0 18px 34px rgba(254,64,197,.30)}
.sf-home-button-secondary{
  color:#0f172a;
  border-color:rgba(15,23,42,.12);
  background:#fff;
}

.sf-home-section{
  padding:6rem 1.5rem;
  position:relative;
  overflow:hidden;
}
.sf-home-container{
  width:100%;
  max-width:80rem;
  margin:0 auto;
}
.sf-home-eyebrow{
  display:inline-flex;
  align-items:center;
  min-height:2rem;
  padding:.35rem .72rem;
  border:1px solid rgba(254,64,197,.18);
  border-radius:999px;
  background:rgba(254,64,197,.08);
  color:#b20d7d;
  font-size:.76rem;
  font-weight:850;
  letter-spacing:.025em;
  text-transform:uppercase;
}
.sf-home-section-copy h2,
.sf-home-section-heading h2{
  margin:1.1rem 0 1rem;
  color:#0f172a;
  font-size:clamp(2rem,5vw,3.35rem);
  line-height:1.06;
  letter-spacing:-.05em;
  font-weight:900;
}
.sf-home-section-copy h2 span{color:var(--sf-pink-deep)}
.sf-home-section-copy > p,
.sf-home-section-heading > p{
  margin:0;
  color:#64748b;
  font-size:1.05rem;
  font-weight:550;
  line-height:1.75;
}
.sf-home-section-heading{
  max-width:49rem;
  margin:0 auto 3.25rem;
  text-align:center;
}

.sf-home-example-section{
  border-top:1px solid rgba(15,23,42,.06);
  border-bottom:1px solid rgba(15,23,42,.06);
  background:
    radial-gradient(circle at 15% 10%,rgba(254,64,197,.11),transparent 28%),
    linear-gradient(180deg,#fff 0%,#fff9fd 100%);
}
.sf-home-example-grid{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(22rem,.9fr);
  gap:4rem;
  align-items:center;
}
.sf-home-term-note{
  margin-top:1.6rem;
  padding:1.15rem 1.25rem;
  border-left:4px solid var(--sf-pink);
  border-radius:0 1rem 1rem 0;
  background:rgba(255,255,255,.78);
  color:#475569;
  font-size:.9rem;
  font-weight:600;
  line-height:1.65;
}
.sf-home-term-note strong{color:#0f172a}
.sf-home-breakdown{
  padding:1.15rem;
  border-radius:2rem;
  background:var(--sf-ink);
  color:#fff;
  box-shadow:0 30px 70px rgba(15,23,42,.18);
}
.sf-home-breakdown-top,
.sf-home-breakdown-row,
.sf-home-breakdown-total{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:1.5rem;
}
.sf-home-breakdown-top{
  padding:1.35rem 1.35rem 1.5rem;
  color:#cbd5e1;
  font-size:.9rem;
  font-weight:700;
}
.sf-home-breakdown-top strong{
  color:#fff;
  font-size:1.4rem;
}
.sf-home-breakdown-row{
  margin:.35rem;
  padding:1rem;
  border:1px solid rgba(255,255,255,.08);
  border-radius:1rem;
  background:rgba(255,255,255,.045);
  color:#cbd5e1;
  font-size:.86rem;
  font-weight:600;
}
.sf-home-breakdown-row strong{color:#f1f5f9;white-space:nowrap}
.sf-home-breakdown-total{
  margin:.85rem .35rem .35rem;
  padding:1.25rem 1rem;
  border:1px solid rgba(254,64,197,.35);
  border-radius:1rem;
  background:rgba(254,64,197,.12);
  color:#fff;
  font-weight:800;
}
.sf-home-breakdown-total strong{
  color:#ff77d8;
  font-size:1.8rem;
  letter-spacing:-.04em;
}
.sf-home-breakdown > p{
  margin:.85rem .75rem .35rem;
  color:#94a3b8;
  font-size:.7rem;
  font-weight:600;
  line-height:1.45;
}

.sf-home-audience-section{
  background:
    radial-gradient(circle at 90% 10%,rgba(254,64,197,.09),transparent 26%),
    #fff;
}
.sf-home-card-grid{
  display:grid;
  gap:1rem;
}
.sf-home-card-grid-four{grid-template-columns:repeat(4,minmax(0,1fr))}
.sf-home-info-card{
  min-height:15rem;
  padding:1.6rem;
  border:1px solid var(--sf-line);
  border-radius:1.5rem;
  background:#fff;
  box-shadow:0 18px 45px rgba(15,23,42,.055);
  transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease;
}
.sf-home-info-card:hover{
  transform:translateY(-4px);
  border-color:rgba(254,64,197,.24);
  box-shadow:0 24px 55px rgba(15,23,42,.09);
}
.sf-home-card-icon{
  width:2.8rem;
  height:2.8rem;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:.9rem;
  background:rgba(254,64,197,.09);
  color:#b20d7d;
  font-size:.75rem;
  font-weight:900;
  letter-spacing:.04em;
}
.sf-home-info-card h3{
  margin:1.4rem 0 .65rem;
  color:#0f172a;
  font-size:1.15rem;
  font-weight:850;
  letter-spacing:-.02em;
}
.sf-home-info-card p{
  margin:0;
  color:#64748b;
  font-size:.9rem;
  font-weight:550;
  line-height:1.65;
}
.sf-home-fit-note{
  max-width:56rem;
  margin:2rem auto 0;
  color:#64748b;
  font-size:.88rem;
  font-weight:600;
  line-height:1.6;
  text-align:center;
}
.sf-home-fit-note strong{color:#0f172a}

.sf-home-trust-section{
  background:
    radial-gradient(circle at 12% 85%,rgba(254,64,197,.08),transparent 26%),
    #fff;
}
.sf-home-trust-layout{
  display:grid;
  grid-template-columns:minmax(0,.9fr) minmax(28rem,1.1fr);
  gap:5rem;
  align-items:center;
}
.sf-home-text-link{
  display:inline-flex;
  align-items:center;
  gap:.45rem;
  margin-top:1.5rem;
  color:#b20d7d;
  font-size:.92rem;
  font-weight:850;
  text-decoration:none;
}
.sf-home-text-link:hover{text-decoration:underline;text-underline-offset:4px}
.sf-home-trust-list{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:1rem;
}
.sf-home-trust-list article{
  display:flex;
  align-items:flex-start;
  gap:.85rem;
  padding:1.3rem;
  border:1px solid var(--sf-line);
  border-radius:1.35rem;
  background:#fff;
  box-shadow:0 14px 35px rgba(15,23,42,.045);
}
.sf-home-trust-list article > span{
  width:2rem;
  height:2rem;
  flex:0 0 2rem;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:999px;
  background:rgba(254,64,197,.11);
  color:#b20d7d;
  font-weight:900;
}
.sf-home-trust-list h3{
  margin:.1rem 0 .35rem;
  color:#0f172a;
  font-size:.98rem;
  font-weight:850;
}
.sf-home-trust-list p{
  margin:0;
  color:#64748b;
  font-size:.8rem;
  font-weight:550;
  line-height:1.55;
}

.sf-home-faq-section{
  border-top:1px solid rgba(15,23,42,.06);
  border-bottom:1px solid rgba(15,23,42,.06);
  background:#fff;
}
.sf-home-faq-layout{
  display:grid;
  grid-template-columns:minmax(18rem,.72fr) minmax(0,1.28fr);
  gap:5rem;
  align-items:start;
}
.sf-home-faq-intro{position:sticky;top:7rem}
.sf-home-faq-list{display:grid;gap:.75rem}
.sf-home-faq-item{
  border:1px solid var(--sf-line);
  border-radius:1.25rem;
  background:#fff;
  box-shadow:0 12px 30px rgba(15,23,42,.035);
  overflow:hidden;
}
.sf-home-faq-item[open]{
  border-color:rgba(254,64,197,.22);
  box-shadow:0 16px 36px rgba(15,23,42,.06);
}
.sf-home-faq-item summary{
  min-height:4.4rem;
  padding:1.1rem 1.25rem;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:1.2rem;
  cursor:pointer;
  color:#0f172a;
  font-size:.98rem;
  font-weight:820;
  list-style:none;
}
.sf-home-faq-item summary::-webkit-details-marker{display:none}
.sf-home-faq-item summary span{
  width:1.8rem;
  height:1.8rem;
  flex:0 0 1.8rem;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:999px;
  background:rgba(254,64,197,.09);
  color:#b20d7d;
  font-size:1.1rem;
  transition:transform .18s ease;
}
.sf-home-faq-item[open] summary span{transform:rotate(45deg)}
.sf-home-faq-item > div{
  padding:0 1.25rem 1.25rem;
}
.sf-home-faq-item p{
  margin:0;
  color:#64748b;
  font-size:.9rem;
  font-weight:550;
  line-height:1.7;
}

@media (max-width:1024px){
  .sf-home-example-grid,
  .sf-home-trust-layout,
  .sf-home-faq-layout{gap:3rem}
  .sf-home-card-grid-four{grid-template-columns:repeat(2,minmax(0,1fr))}
  .sf-home-trust-layout{grid-template-columns:1fr}
  .sf-home-trust-list{max-width:48rem}
}

@media (max-width:800px){
  .sf-home-section{padding:4.5rem 1.25rem}
  .sf-home-example-grid,
  .sf-home-faq-layout{grid-template-columns:1fr}
  .sf-home-example-grid{gap:2.5rem}
  .sf-home-faq-intro{position:static}
  .sf-home-calculator-cta{grid-template-columns:1fr}
  .sf-home-calculator-result{min-height:8.5rem}
  .sf-home-calculator-cta-copy{padding:1rem .6rem .6rem}
}

@media (max-width:640px){
  .sf-home-trial-note{border-radius:1rem;text-align:left}
  .sf-home-hero-disclosure{font-size:.78rem}
  .sf-home-demo-note{display:block;text-align:left}
  .sf-home-section-copy h2,
  .sf-home-section-heading h2{font-size:2.15rem}
  .sf-home-card-grid-four,
  .sf-home-trust-list{grid-template-columns:1fr}
  .sf-home-info-card{min-height:auto}
  .sf-home-breakdown-top,
  .sf-home-breakdown-row,
  .sf-home-breakdown-total{align-items:flex-start}
  .sf-home-breakdown-row span{max-width:66%}
  .sf-home-breakdown-total{flex-direction:column;gap:.35rem}
  .sf-home-inline-actions{flex-direction:column}
  .sf-home-button{width:100%}
}

/* Delivery 3: signup and inline guidance */
.sf-home-field-help{
  color:#64748b;
  font-size:.75rem;
  line-height:1.45;
  margin-top:.2rem;
}

.sf-home-password-feedback{
  display:block;
  position:relative;
  width:100%;
  margin:.35rem 0 .95rem;
  padding:0 .1rem;
}

.sf-home-password-meter{
  height:6px;
  border-radius:999px;
  background:#e2e8f0;
  overflow:hidden;
  margin:.45rem 0 .3rem;
}

.sf-home-password-meter span{
  display:block;
  width:0;
  height:100%;
  border-radius:inherit;
  background:linear-gradient(90deg,#FE40C5,#AA77FC);
  transition:width .18s ease;
}

.sf-home-password-strength,
.sf-home-password-match{
  color:#64748b;
  font-size:.75rem;
  font-weight:700;
  min-height:1.1rem;
}

.sf-home-password-match{
  display:block;
  position:relative;
  width:100%;
  margin:.35rem 0 .75rem;
}

.sf-home-password-match.is-good{
  color:#047857;
}

.sf-home-password-match.is-bad{
  color:#b91c1c;
}

.sf-input.is-error{
  border-color:#ef4444 !important;
  background:#fffafa !important;
  box-shadow:0 0 0 3px rgba(239,68,68,.10) !important;
}

.sf-home-inline-action{
  display:block;
  margin-top:.5rem;
  border:0;
  background:transparent;
  color:#be0a87;
  font:inherit;
  font-weight:800;
  text-decoration:underline;
  cursor:pointer;
}

@media (max-width:640px){
  .sf-home-password-feedback{
    margin:.45rem 0 1rem;
  }

  .sf-home-password-match{
    margin:.4rem 0 .85rem;
  }
}

/* Delivery 4: motion and drawer accessibility */
.sf-panel:focus{outline:none}
.sf-panel :focus-visible{
  outline:3px solid rgba(254,64,197,.32);
  outline-offset:3px;
}

@media (prefers-reduced-motion: reduce){
  html{scroll-behavior:auto !important}
  *,*::before,*::after{
    animation-duration:.01ms !important;
    animation-iteration-count:1 !important;
    scroll-behavior:auto !important;
    transition-duration:.01ms !important;
  }
  .sf-home-password-meter span{transition:none !important}
}

/* Blog access in the responsive splash-page navbar. */
.sf-home-mobile-blog{display:none}
@media (max-width:767px){
  .sf-home-mobile-blog{display:inline-flex;align-items:center;text-decoration:none;white-space:nowrap}
}
@media (max-width:410px){
  .sf-home-mobile-blog{display:none}
}
