/* =========================================================
   OFAST — core stylesheet
   Bootstrap 5 is used for grid / utilities / forms.
   Everything visual (color, type, cards, nav, footer) is
   custom on top, to match the supplied design.
   ========================================================= */

:root{
  --bg:        #efe8ec;
  --bg-soft:   #f4eff2;
  --card-white:#ffffff;

  --ink:       #16121a;
  --ink-soft:  #4d4854;
  --muted:     #8d8794;
  --line:      #ddd2da;
  --line-soft: rgba(22,18,26,.08);

  --purple-1:  #b24bf3;
  --purple-2:  #7c1fc9;
  --purple-3:  #2c0a45;
  --purple-4:  #150522;

  --black:     #0a090c;
  --black-soft:#141217;

  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;

  --shadow-soft: 0 20px 60px -25px rgba(30,10,40,.35);
  --shadow-card: 0 30px 80px -30px rgba(30,10,45,.45);
}

/* ---------- fonts ---------- */
body{
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.font-serif{
  font-family: "Instrument Serif", Georgia, "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: -0.01em;
}
.font-serif em,
.italic{
  font-family: "Instrument Serif", Georgia, serif;
  font-style: italic;
}
.font-mono{
  font-family: "JetBrains Mono", "SFMono-Regular", Menlo, monospace;
}

h1,h2,h3,.display{
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.08;
  color: var(--ink);
}
h1 em, h2 em, h3 em, .display em{ font-style: italic; }

.eyebrow{
  font-family: "JetBrains Mono", monospace;
  font-size: .68rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}

.text-muted-ofast{ color: var(--muted); }
.text-soft{ color: var(--ink-soft); }

a{ color: inherit; text-decoration: none; }

::selection{ background: var(--purple-1); color:#fff; }

/* ---------- layout helpers ---------- */
.section{ padding: 6rem 0; }
.section-sm{ padding: 3.5rem 0; }
.container-ofast{
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.divider-v{
  width: 1px;
  height: 64px;
  background: var(--line);
  margin: 0 auto;
}
hr.hairline{ border: none; border-top: 1px solid var(--line); opacity: 1; }

/* ---------- grain / texture overlay for purple panels ---------- */
.grain{ position: relative; overflow: hidden; }
.grain::after{
  content: "";
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  opacity: .18;
  mix-blend-mode: overlay;
  pointer-events: none;
}

.bg-purple-grad{
  background: linear-gradient(150deg, var(--purple-1) 0%, var(--purple-2) 45%, var(--purple-3) 78%, var(--purple-4) 100%);
}

/* =========================================================
   NAVBAR
   ========================================================= */
.ofast-header{
  position: sticky;
  top: 0;
  z-index: 999;
  background: var(--bg);
  padding: 1.5rem 0 .5rem;
}
.ofast-logo{
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: "Inter", sans-serif;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.ofast-logo .mark{
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--black);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ofast-logo .mark svg{ width: 13px; height: 13px; }
.ofast-logo.on-dark{ color: #fff; }
.ofast-logo.on-dark .mark{ background: #fff; }
.ofast-logo.on-dark .mark svg path{ fill: var(--black); }

.nav-pill-group{
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-wrap: wrap;
}
.nav-pill{
  font-size: .85rem;
  font-weight: 500;
  color: var(--ink-soft);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: .55rem 1.05rem;
  white-space: nowrap;
  transition: all .15s ease;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
}
.nav-pill:hover{ border-color: var(--ink); color: var(--ink); }
.nav-pill.is-active{ border-color: var(--ink); color: var(--ink); font-weight: 600; }
.nav-pill.solid{
  background: var(--black);
  color: #fff;
  border-color: var(--black);
}
.nav-pill.solid:hover{ opacity: .85; color:#fff; }

.navbar-toggler-ofast{
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: .5rem .7rem;
  background: transparent;
}

/* =========================================================
   BUTTONS
   ========================================================= */
.btn-ofast{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font-size: .9rem;
  font-weight: 600;
  padding: .85rem 1.6rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  transition: transform .15s ease, opacity .15s ease, background .15s ease;
}
.btn-ofast:hover{ transform: translateY(-1px); }

.btn-ofast-dark{ background: var(--black); color: #fff; }
.btn-ofast-dark:hover{ background: #000; color:#fff; opacity: .92; }

.btn-ofast-light{ background: #fff; color: var(--ink); }
.btn-ofast-light:hover{ color: var(--ink); opacity: .9; }

.btn-ofast-outline{ background: transparent; border-color: var(--line); color: var(--ink); }
.btn-ofast-outline:hover{ border-color: var(--ink); color: var(--ink); }

.btn-ofast-purple{ background: var(--purple-1); color:#fff; }
.btn-ofast-purple:hover{ background: var(--purple-2); color:#fff; }

.btn-block-ofast{ width: 100%; }

/* =========================================================
   HERO CARD — "Fast Club" gradient card w/ stacked layers
   ========================================================= */
.fastclub-card{
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 1 / 1;
  box-shadow: var(--shadow-card);
}
.fastclub-card .layer-back{
  position: absolute;
  inset: 8% 4% 4% 8%;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, var(--purple-2), var(--purple-4));
}
.fastclub-card .layer-front{
  position: absolute;
  inset: 4% 8% 8% 4%;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #d9a9f7 0%, var(--purple-1) 35%, var(--purple-2) 75%, var(--purple-4) 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.5rem;
}
.fastclub-card .icon-badge{
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  margin: auto 0;
}
.fastclub-card .icon-badge svg{ width: 24px; height: 24px; transform: rotate(-8deg); }
.fastclub-card .club-label{
  font-family: "Instrument Serif", serif;
  font-style: italic;
  font-size: 1.5rem;
  color: var(--ink);
}

.fastclub-mini{
  position: relative;
  border-radius: 18px;
  padding: 1.5rem;
  color: #fff;
  overflow: hidden;
  background: linear-gradient(135deg, var(--purple-1) 0%, var(--purple-2) 55%, var(--purple-4) 100%);
  box-shadow: var(--shadow-card);
}
.fastclub-mini .badge-pill{
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .72rem;
  font-weight: 600;
  background: rgba(255,255,255,.15);
  padding: .35rem .75rem;
  border-radius: 20px;
}
.fastclub-mini .club-tag{
  position: absolute;
  top: 1.4rem; right: 1.5rem;
  font-family: "Instrument Serif", serif;
  font-style: italic;
  font-size: 1.15rem;
  opacity: .9;
}

/* =========================================================
   GRADIENT TILE CARDS (Grow with us / Category showcase)
   ========================================================= */
.tile-card{
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  color: #fff;
  background: linear-gradient(165deg, var(--purple-2) 0%, var(--purple-4) 70%, var(--black) 100%);
  box-shadow: var(--shadow-soft);
  height: 100%;
  display: flex;
  flex-direction: column;
}
.tile-card .tile-visual{
  flex: 1 1 auto;
  min-height: 190px;
  position: relative;
}
.tile-card .tile-body{
  background: #fff;
  color: var(--ink);
  padding: 1.35rem 1.5rem;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  margin-top: -1.25rem;
  position: relative;
  z-index: 2;
}
.tile-card .tile-body h4{
  font-family: "Inter", sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: .35rem;
}
.tile-card .tile-body p{
  font-size: .85rem;
  color: var(--muted);
  margin-bottom: 0;
}

/* small icon tiles: Simplicity / Speed / Quality / Growth etc */
.icon-tile{
  width: 100%;
  aspect-ratio: 1 / 1;
  max-width: 108px;
  border-radius: var(--radius-md);
  background: linear-gradient(150deg, var(--purple-1), var(--purple-4) 85%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.6rem;
  margin-bottom: 1.1rem;
  box-shadow: var(--shadow-soft);
}
.feature-block h5{
  font-family: "Inter", sans-serif;
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: .4rem;
}
.feature-block p{
  color: var(--muted);
  font-size: .87rem;
  margin-bottom: 0;
}

/* ---------- quote / info box with dashed border ---------- */
.dashed-box{
  border: 1px dashed var(--line);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2rem;
  background: var(--bg-soft);
}

/* =========================================================
   PRICING / CHECKOUT card (dark)
   ========================================================= */
.price-card-dark{
  background: var(--black);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 2rem;
  position: relative;
  overflow: hidden;
}
.price-card-dark .price-tag{
  display: inline-block;
  font-size: .72rem;
  font-weight: 600;
  color: #ff6f91;
  background: rgba(255,111,145,.12);
  border: 1px solid rgba(255,111,145,.3);
  padding: .35rem .8rem;
  border-radius: 20px;
  margin-bottom: 1rem;
}
.price-card-dark .price-amount{
  font-family: "Instrument Serif", serif;
  font-size: 2.6rem;
  line-height: 1;
}
.price-card-dark .price-old{
  color: #6f6b76;
  text-decoration: line-through;
  font-size: 1.1rem;
}
.price-card-dark .price-suffix{ color: #8d8794; font-size: .95rem; }
.price-card-dark .included-tag{
  font-family: "JetBrains Mono", monospace;
  font-size: .65rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #8d8794;
  background: rgba(255,255,255,.06);
  padding: .25rem .6rem;
  border-radius: 6px;
  display: inline-block;
  margin-bottom: 1rem;
}
.price-card-dark .feature-list{
  list-style: none;
  padding: 0; margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .6rem 1rem;
  font-size: .86rem;
  color: #d8d5db;
}
.price-card-dark .feature-list li::before{
  content: "✓ ";
  color: #b24bf3;
  font-weight: 700;
}
.price-card-dark .corner-fan{
  position: absolute;
  right: -10px; bottom: -10px;
  width: 130px; height: 130px;
  border-radius: 50%;
  background: #fff;
  opacity: .04;
}

/* payment method list */
.payment-panel{
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  background: linear-gradient(160deg, var(--purple-1) 0%, var(--purple-2) 45%, var(--purple-4) 100%);
  box-shadow: var(--shadow-card);
}
.payment-option{
  background: #fff;
  border-radius: var(--radius-sm);
  padding: .95rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: .9rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color .15s ease;
}
.payment-option:last-child{ margin-bottom: 0; }
.payment-option:hover{ border-color: rgba(0,0,0,.08); }
.payment-option input[type="radio"]{
  width: 20px; height: 20px;
  accent-color: var(--purple-2);
}
.payment-option img{ height: 22px; }
.payment-option .brand-text{ font-weight: 800; font-size: 1.15rem; letter-spacing: -.02em; }

/* =========================================================
   PORTFOLIO list rows
   ========================================================= */
.folio-row{
  padding: 1.75rem 0;
  border-top: 1px solid var(--line);
}
.folio-row:last-child{ border-bottom: 1px solid var(--line); }
.folio-row h4{
  font-family: "Instrument Serif", serif;
  font-size: 1.6rem;
  margin-bottom: .35rem;
}
.folio-row p{
  color: var(--muted);
  font-size: .85rem;
  margin-bottom: 0;
}
.folio-row.text-end p{ margin-left: auto; max-width: 340px; }
.folio-row.text-start p{ max-width: 340px; }

/* =========================================================
   FAQ accordion
   ========================================================= */
.faq-item{ border-top: 1px solid var(--line); padding: 1.15rem 0; }
.faq-item:last-child{ border-bottom: 1px solid var(--line); }
.faq-q{
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-weight: 600;
  font-size: .95rem;
}
.faq-q .plus{
  font-size: 1.2rem;
  color: var(--muted);
  transition: transform .2s ease;
  flex-shrink: 0;
  margin-left: 1rem;
}
.faq-item.open .faq-q .plus{ transform: rotate(45deg); }
.faq-a{
  max-height: 0;
  overflow: hidden;
  transition: max-height .25s ease;
  color: var(--muted);
  font-size: .87rem;
}
.faq-item.open .faq-a{ max-height: 200px; margin-top: .65rem; }

/* =========================================================
   PRODUCTS — category pills + showcase
   ========================================================= */
.category-pill{
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: .55rem 1.3rem;
  font-size: .85rem;
  font-weight: 500;
  background: #fff;
}
.category-pill.active{ background: var(--black); color: #fff; border-color: var(--black); }

.showcase-panel{
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  background: #fff;
}
.showcase-visual{
  min-height: 260px;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
}
.showcase-visual::before{
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,.55) 100%);
}
.showcase-footer{
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.showcase-footer h4{ font-size: 1.05rem; font-weight: 700; margin-bottom: .25rem; }
.showcase-footer p{ font-size: .84rem; color: var(--muted); margin-bottom: 0; }
.showcase-kicker{
  font-family: "Instrument Serif", serif;
  font-style: italic;
  font-size: 1.3rem;
  margin-bottom: .75rem;
}

/* =========================================================
   AUTH pages (Sign in / Sign up)
   ========================================================= */
.auth-wrap{ min-height: 100vh; display: flex; align-items: center; }
.auth-card{ width: 100%; max-width: 420px; }
.form-label-ofast{ font-size: .85rem; font-weight: 600; margin-bottom: .4rem; }
.form-control-ofast{
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: .85rem 1rem .85rem 2.6rem;
  font-size: .92rem;
  width: 100%;
}
.form-control-ofast:focus{
  outline: none;
  border-color: var(--purple-1);
  box-shadow: 0 0 0 3px rgba(178,75,243,.15);
}
.input-icon-wrap{ position: relative; }
.input-icon-wrap i{
  position: absolute;
  left: 1rem; top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 1rem;
}
.auth-split-visual{
  min-height: 100vh;
  background: linear-gradient(155deg, var(--purple-1) 0%, var(--purple-2) 45%, var(--purple-4) 90%);
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 3rem;
}

/* =========================================================
   FOOTER
   ========================================================= */
.ofast-footer{
  background: var(--black);
  color: #fff;
  padding: 5rem 0 0;
}
.ofast-footer .foot-copy{
  color: #a9a4ae;
  font-size: .9rem;
  max-width: 340px;
}
.ofast-footer .foot-bottom{
  border-top: 1px solid rgba(255,255,255,.08);
  margin-top: 4rem;
  padding: 1.5rem 0;
  font-size: .8rem;
  color: #8d8794;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .75rem;
}
.ofast-footer .foot-bottom a{ color: #8d8794; margin-left: 1.25rem; }
.ofast-footer .foot-bottom a:hover{ color: #fff; }

/* =========================================================
   MISC
   ========================================================= */
.stat-num{
  font-family: "Instrument Serif", serif;
  font-style: italic;
  font-size: 2.4rem;
}
.rounded-img{ border-radius: var(--radius-lg); overflow: hidden; }
.tag-chip{
  display: inline-block;
  font-size: .78rem;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: .4rem .9rem;
  margin: .2rem;
  color: var(--ink-soft);
  background: #fff;
}

@media (max-width: 991.98px){
  .section{ padding: 4rem 0; }
  h1.display-hero{ font-size: 2.5rem !important; }
}
@media (max-width: 575.98px){
  .price-card-dark .feature-list{ grid-template-columns: 1fr; }
}

/* =========================================================
   JOY — micro-animation layer
   Gated behind body.js so content is never hidden if a
   script fails to load, and behind prefers-reduced-motion
   so anyone who's asked for less motion just gets a
   normal, static page.
   ========================================================= */
@media (prefers-reduced-motion: no-preference){
  html{ scroll-behavior: smooth; }

  /* gentle float on the Fast Club cards */
  .fastclub-card, .fastclub-mini{
    animation: ofastFloat 6.5s ease-in-out infinite;
  }
  .fastclub-mini{ animation-delay: -1.4s; }
  @keyframes ofastFloat{
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50%      { transform: translateY(-9px) rotate(.5deg); }
  }

  /* scroll reveal, only once body.js is set by the inline boot script */
  body.js .reveal{
    opacity: 0;
    transform: translateY(26px);
    transition: opacity .7s cubic-bezier(.16,.84,.44,1),
                transform .7s cubic-bezier(.16,.84,.44,1);
  }
  body.js .reveal.in-view{ opacity: 1; transform: translateY(0); }

  /* card / panel hover lift */
  .tile-card, .showcase-panel{
    transition: transform .35s cubic-bezier(.16,.84,.44,1), box-shadow .35s ease;
  }
  .tile-card:hover, .showcase-panel:hover{
    transform: translateY(-6px);
    box-shadow: 0 34px 70px -28px rgba(30,10,45,.45);
  }

  /* icon tiles wobble toward whatever they represent */
  .icon-tile{
    transition: transform .4s cubic-bezier(.34,1.56,.64,1), box-shadow .35s ease;
  }
  .feature-block:hover .icon-tile{
    transform: scale(1.08) rotate(-4deg);
    box-shadow: 0 20px 44px -16px rgba(124,31,201,.5);
  }

  /* portfolio rows nudge toward the reading direction */
  .folio-row{ transition: padding .25s ease; }
  .folio-row:not(.text-md-end):hover{ padding-left: .5rem; }
  .folio-row.text-md-end:hover{ padding-right: .5rem; }

  /* arrow links nudge their icon on hover */
  .link-arrow i{ display: inline-block; transition: transform .25s cubic-bezier(.34,1.56,.64,1); }
  .link-arrow:hover i{ transform: translateX(5px); }

  /* payment method pop when selected */
  .payment-option.pop{ animation: ofastPop .35s cubic-bezier(.34,1.56,.64,1); }
  @keyframes ofastPop{
    0%   { transform: scale(1); }
    45%  { transform: scale(1.025); }
    100% { transform: scale(1); }
  }

  .category-pill{ transition: all .2s ease; }
  .category-pill:active{ transform: scale(.95); }
}

.payment-option.selected{
  border-color: var(--purple-2);
  background: #faf3ff;
}

/* buttons: a touch more spring, on or off reduced-motion */
.btn-ofast{
  transition: transform .25s cubic-bezier(.34,1.56,.64,1), box-shadow .25s ease, opacity .15s ease, background .15s ease;
}
.btn-ofast-dark:hover{ box-shadow: 0 16px 32px -14px rgba(0,0,0,.4); }
.btn-ofast-purple:hover{ box-shadow: 0 16px 32px -14px rgba(124,31,201,.5); }
.btn-ofast-light:hover{ box-shadow: 0 16px 32px -14px rgba(0,0,0,.18); }

/* nav pill fill instead of just a border flip */
.nav-pill{ transition: all .2s ease; }
.nav-pill:hover{ background: rgba(22,18,26,.05); }

/* faq answer: fade in alongside the height reveal */
.faq-a{
  opacity: 0;
  transition: max-height .35s cubic-bezier(.16,.84,.44,1), opacity .3s ease, margin-top .35s ease;
}
.faq-item.open .faq-a{ opacity: 1; }
.faq-q .plus{ transition: transform .3s cubic-bezier(.34,1.56,.64,1), color .2s ease; }
.faq-item.open .faq-q{ color: var(--purple-2); }
