/* Saverista — investor marketing site
   Brand colours sampled from the approved mockup: purple #2F0E5F, gold #EDBE56. */

:root {
  --purple-900: #1C0640;
  --purple-800: #2F0E5F;
  --purple-700: #3E1A78;
  --purple-600: #4E2590;
  --gold:       #EDBE56;
  --gold-600:   #D6A63D;
  --ink:        #1A1327;
  --body:       #55506180;
  --muted:      #625B73;
  --line:       #E7E3EF;
  --surface:    #F7F5FA;
  --white:      #FFFFFF;

  --shell: 1200px;
  --gut: 20px;
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-pill: 999px;

  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --script: "Parisienne", "Brush Script MT", cursive;

  --shadow-card: 0 1px 2px rgba(28, 6, 64, .05), 0 8px 24px rgba(28, 6, 64, .06);
  --shadow-lift: 0 18px 50px rgba(28, 6, 64, .18);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

h1, h2, h3 { margin: 0; line-height: 1.12; letter-spacing: -.02em; font-weight: 800; }
p { margin: 0; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--gold); color: var(--purple-900);
  padding: 10px 16px; border-radius: var(--r-sm); font-weight: 700; text-decoration: none;
  transition: top .15s ease;
}
.skip-link:focus { top: 12px; }

:where(a, button):focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 6px;
}

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gut);
}

/* ───────── buttons ───────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; min-height: 48px; padding: 12px 26px;
  border-radius: var(--r-pill); border: 1.5px solid transparent;
  font-weight: 700; font-size: .95rem; text-decoration: none;
  cursor: pointer; transition: transform .15s ease, background-color .15s ease, border-color .15s ease;
}
.btn--sm { min-height: 40px; padding: 8px 20px; font-size: .85rem; }
.btn--gold { background: var(--gold); color: var(--purple-900); }
.btn--gold:hover { background: var(--gold-600); transform: translateY(-1px); }
.btn--ghost { border-color: rgba(255,255,255,.55); color: var(--white); }
.btn--ghost:hover { border-color: var(--white); background: rgba(255,255,255,.1); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.eyebrow {
  margin: 0 0 14px; font-size: .72rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase; color: var(--gold);
}
.eyebrow--dots span { opacity: .7; margin-inline: 6px; }
.eyebrow--rule { display: flex; align-items: center; gap: 10px; }
.eyebrow--rule::before { content: ""; width: 26px; height: 2px; background: currentColor; flex: none; }

.lede { color: var(--muted); font-size: 1.02rem; max-width: 56ch; }
.section--purple .lede, .hero__lede { color: rgba(255,255,255,.82); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--gold-600); font-weight: 700; font-size: .92rem; text-decoration: none;
  border-bottom: 1.5px solid currentColor; padding-bottom: 2px;
}
.link-arrow::after { content: "→"; transition: transform .15s ease; }
.link-arrow:hover::after { transform: translateX(3px); }

/* ───────── nav ───────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--purple-800);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.nav__inner { display: flex; align-items: center; gap: 16px; min-height: 68px; }

.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.logo__mark { width: 30px; height: 30px; flex: none; }
.logo__word { color: var(--white); font-weight: 800; letter-spacing: .1em; font-size: .92rem; }
.logo--sm .logo__mark { width: 26px; height: 26px; }

.nav__links { margin-left: auto; display: flex; align-items: center; gap: 28px; }
.nav__links a {
  color: rgba(255,255,255,.86); text-decoration: none; font-size: .88rem; font-weight: 500;
}
.nav__links a:hover { color: var(--white); }
.nav__cta { color: var(--purple-900) !important; }

.nav__toggle {
  display: none; margin-left: auto; width: 44px; height: 44px;
  background: transparent; border: 1px solid rgba(255,255,255,.3);
  border-radius: var(--r-sm); cursor: pointer;
}
.nav__toggle-bars { display: grid; gap: 5px; justify-items: center; }
.nav__toggle-bars i { display: block; width: 18px; height: 2px; background: var(--white); border-radius: 2px; }

@media (max-width: 899px) {
  .nav__toggle { display: grid; place-items: center; }
  .nav__links {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--purple-800); border-bottom: 1px solid rgba(255,255,255,.1);
    padding: 8px var(--gut) 20px;
    display: none;
  }
  .nav__links.is-open { display: flex; }
  .nav__links a { padding: 14px 4px; border-bottom: 1px solid rgba(255,255,255,.08); font-size: 1rem; }
  .nav__cta { margin-top: 14px; border-bottom: 0 !important; }
}

/* ───────── hero ───────── */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(120% 90% at 85% 10%, var(--purple-600) 0%, transparent 55%),
    linear-gradient(160deg, var(--purple-800) 0%, var(--purple-900) 100%);
  color: var(--white);
}
.hero__inner { display: grid; gap: 32px; padding-block: 48px 56px; }
.hero__title { font-size: clamp(2.1rem, 7vw, 3.6rem); }
.hero__title em { font-style: normal; color: var(--gold); }
.hero__lede { margin: 18px 0 26px; font-size: 1.05rem; max-width: 46ch; }

/* Sits below the copy on desktop and below the photo on phones; the grid gap spaces it. */
.hero__stats {
  display: flex; flex-wrap: wrap; gap: 0; margin: 0; position: relative; z-index: 2;
  border-top: 1px solid rgba(255,255,255,.18); padding-top: 20px;
}
.hero__stats > div { padding-right: 26px; margin-right: 26px; border-right: 1px solid rgba(255,255,255,.18); }
.hero__stats > div:last-child { border-right: 0; padding-right: 0; margin-right: 0; }
.hero__stats dt { font-size: 1.7rem; font-weight: 800; color: var(--gold); line-height: 1.1; }
.hero__stats dd { margin: 2px 0 0; font-size: .82rem; color: rgba(255,255,255,.78); }
.hero__stats-wide dt { font-size: 1.15rem; color: var(--white); }

/* Mobile: the photo is a band under the copy. Desktop: it bleeds into the right of the hero. */
.hero__visual { position: relative; margin: 0; border-radius: var(--r-lg); overflow: hidden; min-height: 300px; }
.hero__visual img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }
.hero__visual.is-empty {
  background:
    radial-gradient(90% 70% at 30% 20%, rgba(237,190,86,.25) 0%, transparent 60%),
    linear-gradient(150deg, var(--purple-600), var(--purple-900));
  border: 1px solid rgba(255,255,255,.14);
}
/* Veil that melts the photo into the purple instead of ending on a hard edge. */
.hero__visual::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(270deg, rgba(28,6,64,.62) 0%, rgba(28,6,64,.26) 22%, rgba(28,6,64,0) 44%),
    linear-gradient(180deg, rgba(47,14,95,.5) 0%, rgba(47,14,95,0) 38%);
}
.hero__script {
  position: absolute; right: 16px; top: 14px; bottom: auto; z-index: 1;
  font-family: var(--script); font-size: clamp(1.7rem, 6vw, 2.4rem);
  line-height: 1.2; text-align: right; color: var(--gold);
  text-shadow: 0 2px 16px rgba(28,6,64,.85);
}

@media (min-width: 900px) {
  .hero { isolation: isolate; }
  .hero__inner {
    grid-template-columns: minmax(0, 620px); align-items: center;
    padding-block: 76px 88px;
  }
  .hero__copy { position: relative; z-index: 2; }
  .hero__stats { max-width: 620px; }

  .hero__visual {
    position: absolute; top: 0; right: 0; bottom: 0; left: auto;
    width: 54%; min-height: 0; border-radius: 0; z-index: 1;
  }
  .hero__visual img { object-position: 46% 26%; }
  /* Fade the left edge and the bottom of the photo into the hero's purple. */
  .hero__visual::after {
    background:
      linear-gradient(90deg, var(--purple-800) 0%, rgba(47,14,95,.92) 18%, rgba(47,14,95,.45) 42%, rgba(47,14,95,.05) 70%, rgba(47,14,95,0) 100%),
      /* Vignette over the bokeh on the right, so the script keeps its contrast. Measured: it
         takes that corner from ~73 to ~38 luminance against the gold's ~193. */
      linear-gradient(270deg, rgba(28,6,64,.62) 0%, rgba(28,6,64,.3) 18%, rgba(28,6,64,0) 34%),
      linear-gradient(0deg, rgba(28,6,64,.7) 0%, rgba(28,6,64,0) 26%);
  }
  .hero__script {
    right: clamp(24px, 3.2vw, 56px); bottom: auto; top: 12%; transform: none;
    font-size: clamp(1.9rem, 2.6vw, 2.9rem);
  }
}

@media (min-width: 1280px) {
  .hero__visual { width: 52%; }
}

/* ───────── trust band ───────── */
.band { background: var(--surface); border-bottom: 1px solid var(--line); }
.band__inner { display: grid; gap: 18px; padding-block: 22px; }
.band__label, .band__tag {
  font-size: .68rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted);
}
.band__items {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px;
}
.band__items li {
  display: flex; align-items: center; gap: 10px;
  font-size: .9rem; font-weight: 600; color: var(--ink);
}
.band__items svg {
  width: 26px; height: 26px; flex: none;
  fill: none; stroke: var(--purple-700); stroke-width: 1.5;
  stroke-linecap: round; stroke-linejoin: round;
}
@media (min-width: 900px) {
  .band__inner {
    grid-template-columns: auto 1fr auto; align-items: center; gap: 28px;
    padding-block: 18px;
  }
  .band__label { max-width: 15ch; }
  .band__items { grid-template-columns: repeat(4, auto); justify-content: space-between; gap: 24px; }
  .band__tag { text-align: right; max-width: 14ch; }
}

/* ───────── generic section ───────── */
.section { padding-block: 56px; }
.section h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); margin-bottom: 16px; }
.section--purple { background: var(--purple-800); color: var(--white); }
.section--purple h2 { color: var(--white); }
.section--tint { background: var(--surface); }
@media (min-width: 900px) { .section { padding-block: 84px; } }

/* ───────── problem ───────── */
.problem { display: grid; gap: 34px; }
.stat-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.stat-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 22px 20px; box-shadow: var(--shadow-card); text-align: center;
}
.stat-card svg {
  width: 30px; height: 30px; margin: 0 auto 12px;
  fill: none; stroke: var(--purple-700); stroke-width: 1.5;
  stroke-linecap: round; stroke-linejoin: round;
}
.stat-card__value { font-size: 1.6rem; font-weight: 800; color: var(--purple-800); }
.stat-card__label { margin-top: 6px; font-size: .84rem; color: var(--muted); }
@media (min-width: 700px) { .stat-cards { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) {
  .problem { grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center; }
}

.stat-sources {
  margin-top: 16px; font-size: .74rem; line-height: 1.6; color: var(--muted);
}
.stat-sources a { color: var(--purple-700); font-weight: 600; }

/* ───────── solution loop ───────── */
.solution { display: grid; gap: 40px; }
.solution .btn { margin-top: 22px; }

.loop { display: grid; gap: 14px; }
.loop__ring { display: none; }
.loop__hub {
  display: flex; align-items: center; gap: 10px; justify-content: center;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--r-pill); padding: 10px 18px;
  font-weight: 800; letter-spacing: .06em; text-transform: uppercase; font-size: .8rem;
}
.loop__hub-mark { width: 28px; height: 28px; flex: none; }

.loop__node {
  display: grid; grid-template-columns: auto 1fr; align-items: center;
  column-gap: 12px; row-gap: 2px;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.16);
  border-radius: var(--r-md); padding: 14px 16px;
}
.loop__icon {
  grid-row: span 2; display: grid; place-items: center;
  width: 42px; height: 42px; border-radius: 50%;
  background: rgba(237,190,86,.16); border: 1px solid rgba(237,190,86,.45);
}
.loop__icon svg {
  width: 22px; height: 22px; fill: none; stroke: var(--gold);
  stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
}
.loop__title { font-weight: 800; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.loop__desc { font-size: .88rem; color: rgba(255,255,255,.8); }

@media (min-width: 1000px) {
  .solution { grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }

  /* Desktop: the three nodes orbit the hub. */
  /* Absolutely-positioned children give the box no intrinsic size, so set it explicitly. */
  .loop { position: relative; aspect-ratio: 1; width: min(100%, 460px); justify-self: center; display: block; }
  .loop__ring { display: block; position: absolute; inset: 0; width: 100%; height: 100%; }
  .loop__orbit { fill: none; stroke: rgba(255,255,255,.16); stroke-width: 1.5; stroke-dasharray: 3 7; }
  .loop__arc { fill: none; stroke: rgba(237,190,86,.5); stroke-width: 1.5; }

  .loop__hub {
    position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
    flex-direction: column; gap: 6px; border-radius: 50%;
    width: 128px; height: 128px; justify-content: center; padding: 0;
    background: rgba(255,255,255,.1);
  }
  .loop__hub-mark { width: 44px; height: 44px; }

  .loop__node {
    position: absolute; width: 190px; text-align: center;
    grid-template-columns: 1fr; justify-items: center; row-gap: 4px;
    padding: 16px 14px; background: rgba(28,6,64,.55);
  }
  .loop__icon { grid-row: auto; }
  .loop__node--member   { left: 50%; top: 0; transform: translateX(-50%); }
  .loop__node--merchant { left: 0; bottom: 0; }
  .loop__node--org      { right: 0; bottom: 0; }
}

/* ───────── why now ───────── */
.whynow { display: grid; gap: 32px; }
/* The illustration is the panel's own background, so it is painted immediately.
   A real photo at assets/why-now.jpg simply covers it. */
.whynow__visual {
  position: relative; margin: 0; border-radius: var(--r-md); overflow: hidden; min-height: 240px;
  background: url("assets/why-now.svg") center/cover no-repeat, var(--purple-900);
}
.whynow__visual img { width: 100%; height: 100%; object-fit: cover; }

.whynow__visual::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(28,6,64,.15) 0%, rgba(28,6,64,.82) 62%);
}
.whynow__quote {
  position: absolute; right: 20px; bottom: 20px; z-index: 1;
  max-width: 13ch; text-align: right;
  color: var(--white); font-weight: 700; font-size: 1.05rem; line-height: 1.3;
}
@media (min-width: 1000px) {
  .whynow { grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
  .whynow__visual { min-height: 320px; }
}

/* ───────── business model ───────── */
.model { display: grid; gap: 28px; }
.model__list {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 14px;
}
.model__list li {
  display: flex; align-items: center; gap: 10px;
  font-size: .92rem; font-weight: 600;
  padding-bottom: 14px; border-bottom: 1px solid var(--line);
}
.model__list li:last-child { border-bottom: 0; padding-bottom: 0; }
.model__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--gold); flex: none; }

.vision {
  background: var(--purple-800); color: var(--white);
  border-radius: var(--r-md); padding: 26px 24px;
}
.vision h3 { font-size: 1.25rem; margin-bottom: 14px; }
.vision__path { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: .9rem; font-weight: 600; }
.vision__path i { color: var(--gold); font-style: normal; }

@media (min-width: 1000px) {
  .model { grid-template-columns: 1fr 1fr; align-items: start; column-gap: 56px; }
  .model__head { grid-column: 1; }
  .model__list { grid-column: 1; grid-template-columns: repeat(2, 1fr); column-gap: 28px; }
  .vision { grid-column: 2; grid-row: 1 / span 2; align-self: stretch; padding: 34px 32px; }
  .vision h3 { font-size: 1.5rem; }
}

/* ───────── closing ───────── */
.closing {
  background: linear-gradient(120deg, var(--purple-800), var(--purple-900));
  color: var(--white);
}
.closing__inner { display: grid; gap: 22px; padding-block: 44px; }
.closing h2 { font-size: clamp(1.45rem, 3.4vw, 2rem); margin-bottom: 8px; }
.closing p { color: rgba(255,255,255,.82); }
@media (min-width: 900px) {
  .closing__inner { grid-template-columns: 1fr auto; align-items: center; gap: 40px; padding-block: 52px; }
}

/* ───────── investor deck request ───────── */
.deck { display: grid; gap: 16px; }
.deck__label {
  font-size: .72rem; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--gold);
}
.deck__fields { display: grid; gap: 12px; }
.deck__field { display: grid; gap: 6px; }
.deck__field > span { font-size: .8rem; font-weight: 600; color: rgba(255,255,255,.82); }
.deck__field > span i { font-style: normal; font-weight: 400; color: rgba(255,255,255,.55); }
.deck__field input {
  min-height: 46px; padding: 10px 14px;
  border-radius: var(--r-sm); border: 1.5px solid rgba(255,255,255,.28);
  background: rgba(255,255,255,.08); color: var(--white);
  font: inherit; font-size: .95rem;
}
.deck__field input::placeholder { color: rgba(255,255,255,.45); }
.deck__field input:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-color: transparent; }
.deck__field input[aria-invalid="true"] { border-color: #FF9B9B; }
.deck__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.deck__note { font-size: .78rem; color: rgba(255,255,255,.6); }
.deck__status { font-size: .88rem; font-weight: 600; min-height: 1.2em; }
.deck__status[data-state="error"] { color: #FFC4C4; }
.deck__status[data-state="ok"] { color: var(--gold); }
.deck__status a { color: var(--gold); font-weight: 700; }
.deck button[disabled] { opacity: .6; cursor: progress; }

@media (min-width: 700px) {
  .deck__fields { grid-template-columns: repeat(3, 1fr); gap: 14px; }
}
@media (min-width: 900px) {
  .deck { min-width: 460px; }
}

/* ───────── footer ───────── */
.foot { background: var(--purple-900); color: rgba(255,255,255,.7); padding-block: 26px; }
.foot__inner { display: grid; gap: 14px; }
.foot__note { font-size: .78rem; max-width: 70ch; line-height: 1.55; }
.foot__copy { font-size: .78rem; }
@media (min-width: 900px) {
  .foot__inner { grid-template-columns: auto 1fr auto; align-items: center; gap: 32px; }
  .foot__copy { text-align: right; }
}
