/*
 * Saleleni homepage (design v2). Loaded after site.css, on the homepage template only.
 * Hero carousel, proof, AI accordion, pinned Growth, process, founder, testimonials, checklist,
 * insights teaser and contact. Shared pieces (header, pills, bands, footer) are in site.css.
 */

/* The first black band rises over the hero so the slide colour shows in its rounded corners. */
.sl-hero + .sl-section--dark { margin-top: calc(var(--sheet-r) * -1); padding-top: calc(var(--section) + var(--sheet-r)); }

/* ---------- Hero carousel ----------
   Two full-width slides stacked in one grid cell (the taller one sets the height).
   Slide 1: AI, on brand amber. Slide 2: growth services, on light off-white with an amber graphic.
   The dark proof band below overlaps the bottom --sheet-r px of the hero, so each slide
   carries that extra bottom padding and the rounded corners show the slide colour. */
.sl-hero { position: relative; --ctl: var(--ink); }
.sl-slides { display: grid; }
.sl-slide {
  grid-area: 1 / 1;
  background: var(--slide-bg); color: var(--slide-ink);
  padding: clamp(48px, 7vw, 96px) 0 calc(var(--sheet-r) + 96px);
  opacity: 0; visibility: hidden;
  transition: opacity .45s ease, visibility 0s linear .45s;
}
.sl-slide.is-active { opacity: 1; visibility: visible; transition: opacity .45s ease; }
.sl-slide--ai     { --slide-bg: var(--amber); --slide-ink: #000; --slide-sub: rgba(0,0,0,.78); }
.sl-slide--growth { --slide-bg: var(--mist);  --slide-ink: #000; --slide-sub: var(--graphite); }
.sl-slide :focus-visible { outline-color: var(--slide-ink); }
.sl-slide__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.sl-hero__title {
  margin: 0;
  font-size: clamp(2.5rem, 5.6vw, 5.25rem);
  font-weight: 900; line-height: 0.96; letter-spacing: -0.04em; word-spacing: 0.04em;
  max-width: 13ch;
}
.sl-hero__intro { margin: clamp(24px, 3vw, 36px) 0 0; max-width: 32em; font-size: clamp(1.0625rem, 1.5vw, 1.25rem); line-height: 1.55; color: var(--slide-sub); }
.sl-hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 32px; margin-top: clamp(28px, 3.5vw, 44px); }
.sl-slide .sl-text-link:hover { color: var(--slide-ink); opacity: .7; }
.sl-slide .sl-pill { border-color: var(--slide-ink); }
.sl-slide .sl-pill--primary { border-color: var(--amber); }
.sl-slide .sl-pill--primary:hover { border-color: var(--ink); }

/* Carousel dots */
.sl-hero-controls { position: absolute; left: 0; right: 0; bottom: calc(var(--sheet-r) + 28px); z-index: 2; }
.sl-hero-controls .sl-wrap { display: flex; align-items: center; }
.sl-hero-dots { display: flex; }
.sl-hero-dot { position: relative; width: 28px; height: 44px; padding: 0; border: 0; background: transparent; cursor: pointer; }
.sl-hero-dot:first-child { margin-left: -8px; }
.sl-hero-dot::before {
  content: ''; position: absolute; left: 50%; top: 50%; width: 12px; height: 12px; border-radius: 50%;
  transform: translate(-50%, -50%); box-shadow: inset 0 0 0 2px var(--ctl); background: transparent;
  transition: background-color .2s ease;
}
.sl-hero-dot[aria-selected="true"]::before { background: var(--ctl); }
.sl-hero-dot:hover::before { background: color-mix(in srgb, var(--ctl) 35%, transparent); }
.sl-hero-dot[aria-selected="true"]:hover::before { background: var(--ctl); }
.sl-hero-dot:focus-visible { outline: 2px solid var(--ctl); outline-offset: 0; border-radius: 8px; }
/* Small pause / play control next to the dots */
.sl-hero-pause { display: grid; place-items: center; width: 44px; height: 44px; margin-left: 6px; padding: 0; border: 0; background: transparent; color: var(--ctl); cursor: pointer; border-radius: 50%; }
.sl-hero-pause svg { width: 12px; height: 12px; }
.sl-hero-pause .sl-i-play { display: none; }
.sl-hero.is-stopped .sl-hero-pause .sl-i-play { display: block; }
.sl-hero.is-stopped .sl-hero-pause .sl-i-pause { display: none; }
.sl-hero-pause:hover { background: color-mix(in srgb, var(--ctl) 12%, transparent); }
.sl-hero-pause:focus-visible { outline: 2px solid var(--ctl); outline-offset: 0; }

/* Illustrations: flat cards, no borders (decorative, hidden from screen readers) */
.sl-art { position: relative; width: 100%; max-width: 440px; justify-self: end; }
.sl-art--duo { aspect-ratio: 1 / 1.02; max-width: 470px; }
.sl-card-ui {
  border-radius: 26px; background: var(--paper); color: #000;
  /* soft, wide shadow (Shiprazor-style lift), tinted per slide so it never looks grey on amber */
  box-shadow: 0 2px 6px var(--shadow-near), 0 30px 60px -14px var(--shadow-far);
}
.sl-slide--ai     { --shadow-near: rgba(90, 50, 0, .14);  --shadow-far: rgba(90, 50, 0, .55); }
.sl-slide--growth { --shadow-near: rgba(20, 20, 30, .10); --shadow-far: rgba(20, 20, 30, .42); }

/* Slide 1: a shopper chat with the store assistant */
.sl-chat { padding: 22px 22px 24px; }
.sl-chat__head { display: flex; align-items: center; gap: 10px; padding-bottom: 14px; border-bottom: 1px solid var(--rule); font-size: 0.9375rem; font-weight: 700; }
.sl-chat__head img { width: 28px; height: 28px; }
.sl-chat__head span { margin-left: auto; font-size: 0.75rem; font-weight: 500; color: var(--stone); display: inline-flex; align-items: center; gap: 6px; }
.sl-chat__head span::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--tick); }
.sl-bubble { margin: 14px 0 0; padding: 12px 16px; border-radius: 18px; font-size: 1rem; line-height: 1.4; max-width: 84%; }
.sl-bubble--you { margin-left: auto; background: #000; color: var(--paper); border-bottom-right-radius: 6px; }
.sl-bubble--bot { background: #ECECE8; border-bottom-left-radius: 6px; }
.sl-bubble__chip { display: inline-block; margin-top: 8px; padding: 5px 12px; border-radius: 999px; background: var(--amber); font-size: 0.75rem; font-weight: 700; }

/* Slide 2: an amber funnel card (where shoppers drop off) and a dark campaign card */
.sl-funnel { position: absolute; top: 0; left: 0; width: 88%; padding: 22px 24px 24px; background: var(--amber); }
.sl-funnel h3 { margin: 0 0 16px; font-size: 0.9375rem; font-weight: 800; }
.sl-frow { display: grid; grid-template-columns: 92px 1fr; align-items: center; gap: 12px; margin-top: 11px; font-size: 0.8125rem; font-weight: 500; }
.sl-frow i { display: block; height: 22px; border-radius: 6px; background: #000; }
.sl-frow--leak i { background: var(--paper); }
.sl-frow--leak { font-weight: 800; }
.sl-fnote { margin: 14px 0 0; font-size: 0.75rem; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.sl-fnote::before { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--paper); }
.sl-bars { position: absolute; right: 0; bottom: 5%; width: 58%; padding: 18px 20px 16px; background: #000; color: var(--paper); }
.sl-bars h3 { margin: 0; font-size: 0.8125rem; font-weight: 800; }
.sl-bars__plot { display: flex; align-items: flex-end; gap: 7px; height: 78px; margin-top: 12px; }
.sl-bars__plot i { flex: 1; display: block; border-radius: 5px 5px 0 0; background: var(--paper); }
.sl-bars__plot i:last-child { background: var(--amber); }



/* ---------- Proof ---------- */
.sl-proof { list-style: none; margin: 56px 0 0; padding: 0; border-top: 1px solid var(--rule); }
.sl-proof li {
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 12px 48px; align-items: end;
  padding: clamp(28px, 3.5vw, 44px) 0; border-bottom: 1px solid var(--rule);
}
.sl-proof__figure { font-size: clamp(3.5rem, 8vw, 7rem); font-weight: 900; line-height: 0.9; letter-spacing: -0.05em; }
.sl-proof__text { margin: 0; max-width: 30em; font-size: clamp(1.125rem, 1.6vw, 1.375rem); line-height: 1.5; }
.sl-proof__text span { display: block; margin-top: 8px; font-size: 1rem; color: var(--graphite); }
.sl-proof-after { margin-top: 32px; }

/* ---------- AI services accordion (old-site pattern) ---------- */
.sl-services { margin-top: 56px; border-top: 1px solid var(--rule); }
.sl-service { border-bottom: 1px solid var(--rule); }
.sl-service summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  min-height: 64px; padding: 14px 0;
}
.sl-service summary::-webkit-details-marker { display: none; }
.sl-service__label { font-size: 0.9375rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.sl-service__price { font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--stone); margin-left: 12px; }
.sl-service__toggle {
  flex: none; position: relative; width: 36px; height: 36px; border: 2px solid var(--ink); border-radius: 50%;
  transition: background-color .2s ease;
}
.sl-service__toggle::before, .sl-service__toggle::after {
  content: ''; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; background: var(--ink);
  transform: translate(-50%, -50%); transition: transform .25s ease, background-color .2s ease;
}
.sl-service__toggle::after { transform: translate(-50%, -50%) rotate(90deg); }
.sl-service summary:hover .sl-service__toggle { background: var(--ink); }
.sl-service summary:hover .sl-service__toggle::before,
.sl-service summary:hover .sl-service__toggle::after { background: var(--paper); }

/* Open item: the label grows into a heading, like "Build & Maintain" on the old site */
.sl-service[open] summary { padding-top: 40px; }
.sl-service[open] .sl-service__label { font-size: clamp(1.75rem, 3.2vw, 2.5rem); letter-spacing: -0.03em; text-transform: none; line-height: 1.1; }
.sl-service[open] .sl-service__toggle::after { transform: translate(-50%, -50%) rotate(0deg); }

.sl-service__body { padding: 8px 0 44px; max-width: 42em; }
.sl-service__body p { margin: 0; color: var(--graphite); font-size: 1.0625rem; line-height: 1.7; }
.sl-ticks { list-style: none; margin: 24px 0 32px; padding: 0; }
.sl-ticks li { position: relative; padding-left: 28px; margin: 10px 0; font-size: 1rem; }
.sl-ticks li::before { content: ''; position: absolute; left: 0; top: 0.8em; width: 14px; height: 2px; background: var(--tick); }

.sl-open-note { margin: 40px 0 0; max-width: 40em; font-size: clamp(1.125rem, 1.5vw, 1.25rem); line-height: 1.6; }

/* ---------- Growth services ---------- */
/* Scroll-pinned layout: the left column (heading, intro, button) stays put while the cards on the right
   scroll past it, until the last card has gone by. Pure CSS (position: sticky), no scroll listeners. */
.sl-pin { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.sl-pin__left { position: sticky; top: 128px; }          /* 72px header + breathing room */
.sl-pin__left .sl-section__title { font-size: clamp(2rem, 3.6vw, 3.25rem); }
.sl-pin__left .sl-section-cta { margin-top: 36px; }
.sl-growth { display: grid; gap: 28px; }
.sl-growth__item {
  display: flex; flex-direction: column;
  min-height: clamp(200px, 26vh, 250px); padding: clamp(28px, 3vw, 40px);
  border-radius: 26px; background: #fff;
  box-shadow: 0 2px 6px rgba(20, 20, 30, .06), 0 30px 60px -18px rgba(20, 20, 30, .22);
}
.sl-growth__item h3 { margin: 0; font-size: clamp(1.625rem, 2.6vw, 2.25rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; }
.sl-growth__item p { margin: 16px 0 0; max-width: 30em; color: var(--graphite); font-size: 1.0625rem; line-height: 1.65; }
.sl-growth__proof { margin-top: auto !important; padding-top: 28px; color: var(--ink) !important; font-weight: 700; font-size: 1rem !important; }



/* A light card inside a dark band (the contact form) goes back to dark-on-light colours */
.sl-section--dark .sl-section--dark .sl-card .sl-pill { border-color: var(--amber); color: var(--ink); }
.sl-section--dark .sl-card .sl-pill:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.sl-section--dark .sl-card .sl-pill--primary .sl-pill__icon { background: var(--ink); color: var(--amber); }
.sl-section--dark .sl-card :focus-visible { outline-color: var(--ink); }

/* ---------- Process: four steps in order, so numbers are earned ---------- */
.sl-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 40px; margin-top: 64px; }
.sl-steps li { padding-top: 24px; border-top: 1px solid var(--rule); }
.sl-steps h3 { margin-top: 0; font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; }
.sl-steps p { margin-top: 10px; color: var(--graphite); font-size: 1rem; line-height: 1.6; }

/* ---------- Founder ---------- */
.sl-founder { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.sl-founder__photo { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 26px; box-shadow: 0 2px 6px rgba(20, 20, 30, .06), 0 30px 60px -18px rgba(20, 20, 30, .28); }
.sl-founder .sl-section__title { font-size: clamp(2rem, 3.6vw, 3.25rem); }
.sl-founder__text { margin-top: 28px; max-width: 34em; color: var(--graphite); font-size: clamp(1.0625rem, 1.5vw, 1.25rem); line-height: 1.65; }
.sl-founder__text + .sl-founder__text { margin-top: 16px; }
.sl-quote { margin-top: 40px; max-width: 30em; font-size: clamp(1.25rem, 1.9vw, 1.5rem); font-weight: 700; line-height: 1.4; letter-spacing: -0.01em; }
.sl-quote cite { display: block; margin-top: 14px; font-size: 0.9375rem; font-weight: 500; font-style: normal; color: var(--stone); letter-spacing: 0; }

/* ---------- Testimonials (only rendered once a named one exists) ---------- */
.sl-quotes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; margin-top: 56px; }
.sl-quotes figure { padding: clamp(28px, 3vw, 40px); border-radius: 26px; background: #fff; box-shadow: 0 2px 6px rgba(20, 20, 30, .06), 0 30px 60px -18px rgba(20, 20, 30, .22); }
.sl-quotes blockquote { font-size: 1.375rem; font-weight: 600; line-height: 1.4; letter-spacing: -0.01em; }
.sl-quotes figcaption { margin-top: 20px; font-size: 0.9375rem; color: var(--stone); }
.sl-quotes figcaption strong { display: block; color: var(--ink); }

/* ---------- Checklist: an amber band with the form in a white card ---------- */
.sl-checklist { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.sl-checklist .sl-section__title { font-size: clamp(2rem, 3.8vw, 3.5rem); }
.sl-checklist__list { margin-top: 28px; max-width: 32em; border-top: 1px solid var(--rule); }
.sl-checklist__list li { padding: 13px 0; border-bottom: 1px solid var(--rule); font-size: 1.0625rem; line-height: 1.45; }
.sl-checklist__fine { margin-top: 18px; font-size: 0.875rem; color: rgba(0, 0, 0, .7); }
.sl-card { padding: clamp(28px, 3vw, 40px); border-radius: 26px; background: var(--paper); color: var(--ink); box-shadow: 0 2px 6px rgba(90, 50, 0, .14), 0 30px 60px -14px rgba(90, 50, 0, .5); }


/* ---------- Forms (class names `form-*`, `contact-form`, `lead-magnet-form` are what form.js uses) ---------- */
.sl-form { margin-top: 20px; }
.sl-form .form-group { margin-top: 16px; }
.sl-form .sl-row { display: grid; grid-template-columns: minmax(0, 1fr) 1fr; gap: 0 16px; }
.sl-label { display: block; margin-bottom: 6px; font-size: 0.8125rem; font-weight: 700; color: var(--ink); }
.sl-site .sl-input {
  display: block; width: 100%; max-width: none; min-height: 52px; padding: 13px 16px;
  border: 2px solid transparent; border-radius: 14px; background: #ECEBE5; color: var(--ink);
  font: inherit; font-size: 1rem; line-height: 1.4; box-shadow: none; appearance: none;
}
.sl-site .sl-input::placeholder { color: #7B7C80; }
.sl-site .sl-input:focus { outline: none; border-color: var(--ink); background: #fff; }
.sl-site select.sl-input { background-image: linear-gradient(45deg, transparent 50%, #000 50%), linear-gradient(135deg, #000 50%, transparent 50%); background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 44px; }
.sl-site textarea.sl-input { min-height: 120px; resize: vertical; }
.sl-site .sl-input.is-error { border-color: #B3261E; }
.form-error { display: block; min-height: 0; margin-top: 4px; font-size: 0.8125rem; font-weight: 600; color: #B3261E; }
.sl-form .sl-pill { width: 100%; justify-content: space-between; margin-top: 24px; cursor: pointer; }
.sl-form .sl-pill:disabled { opacity: .6; cursor: progress; }
.sl-fine { margin-top: 14px; font-size: 0.8125rem; line-height: 1.5; color: var(--stone); }
.sl-fine a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.form-status { margin-top: 14px; font-size: 0.9375rem; font-weight: 600; line-height: 1.5; }
.form-status--success { color: #0F6B3A; }
.form-status--error { color: #B3261E; }
.form-status__download { color: inherit; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Contact (black band) ---------- */
.sl-contact { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.sl-contact .sl-section__title { font-size: clamp(2rem, 3.8vw, 3.5rem); }
.sl-next { margin-top: 36px; max-width: 32em; border-top: 1px solid var(--rule); }
.sl-next li { padding: 13px 0; border-bottom: 1px solid var(--rule); font-size: 1.0625rem; line-height: 1.45; }
.sl-next__title { margin-top: 36px; font-size: 1rem; font-weight: 800; }
.sl-email { display: inline-block; margin-top: 28px; font-size: 1.125rem; font-weight: 700; }
.sl-contact .sl-form { margin-top: -16px; }   /* the card has no title, so cancel the first field's top gap */
.sl-contact .sl-card { background: var(--paper); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .6); }


/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .sl-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; }
}
@media (max-width: 860px) {
  .sl-proof li { grid-template-columns: minmax(0, 1fr); }
  .sl-pin, .sl-founder, .sl-checklist, .sl-contact, .sl-quotes { grid-template-columns: minmax(0, 1fr); }
  .sl-pin__left { position: static; }                      /* no pinning on small screens: simple stack */
  .sl-growth__item { min-height: 0; }
  .sl-slide__grid { grid-template-columns: minmax(0, 1fr); }
  /* stack the two growth-slide cards so nothing covers text on small screens */
  .sl-art { justify-self: start; max-width: 380px; margin-top: 8px; }
  .sl-art--duo { aspect-ratio: auto; display: block; }
  .sl-art--duo .sl-card-ui { position: relative; inset: auto; width: auto; }
  .sl-art--duo .sl-funnel { width: 100%; }
  .sl-art--duo .sl-bars { width: 64%; margin: -14px 0 0 auto; }
  .sl-hero__title { max-width: 14ch; }
}
@media (max-width: 560px) {
  .sl-steps { grid-template-columns: minmax(0, 1fr); }
  .sl-form .sl-row { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 420px) {
  .sl-hero__actions { width: 100%; }
  .sl-hero__actions .sl-pill { width: 100%; justify-content: space-between; }
}
