/* Velto Commerce storefront. Mobile-first. Design system from the FoodTech brief:
   ivory #F8F6EF, gold #EAC768, charcoal #18241F, per-product --accent. */

:root {
  --ivory: #f8f6ef;
  --ivory-2: #efebdf;
  --paper: #ffffff;
  --gold: #eac768;
  --gold-ink: #3a2e05;
  --ink: #18241f;
  --ink-2: #3b4641;
  --muted: #646b66;
  --line: #ddd8c9;
  --accent: #18241f;
  --ok: #1d6b45;
  --err: #a1261d;
  --radius: 14px;
  --radius-lg: 22px;
  --wrap: 1120px;
  --head: "Plus Jakarta Sans", system-ui, sans-serif;
  --body: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --shadow: 0 1px 2px rgba(24, 36, 31, 0.06), 0 8px 24px rgba(24, 36, 31, 0.06);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font: 400 16px/1.65 var(--body);
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
  text-underline-offset: 3px;
}
h1,
h2,
h3 {
  font-family: var(--head);
  line-height: 1.18;
  letter-spacing: -0.015em;
  margin: 0 0 0.6em;
  text-wrap: balance;
}
h1 {
  font-size: clamp(1.9rem, 1.2rem + 3vw, 3.1rem);
  font-weight: 800;
}
h2 {
  font-size: clamp(1.5rem, 1.1rem + 1.8vw, 2.3rem);
  font-weight: 800;
}
h3 {
  font-size: 1.15rem;
  font-weight: 700;
}
p {
  margin: 0 0 1em;
}
:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
  border-radius: 4px;
}
.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--ink);
  color: var(--ivory);
  padding: 8px 14px;
  border-radius: 8px;
  z-index: 100;
}
.skip:focus {
  left: 8px;
}

.wrap {
  width: min(100% - 40px, var(--wrap));
  margin-inline: auto;
}
.narrow {
  max-width: 760px;
  margin-inline: auto;
}
.center {
  text-align: center;
}
.prose p {
  font-size: 1.06rem;
  color: var(--ink-2);
}
.eyebrow {
  font: 600 0.78rem/1.4 var(--body);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.8em;
}
.lead {
  font-size: 1.15rem;
  color: var(--ink-2);
}
.lead-sm {
  font-size: 1.08rem;
  color: var(--ink-2);
  margin-top: 1.5rem;
}
.micro {
  font-size: 0.85rem;
  color: var(--muted);
}
.row-gap {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
}
.row-gap > label {
  flex: 1 1 180px;
}
.stack {
  display: grid;
  gap: 14px;
}

/* ---- header / footer ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(248, 246, 239, 0.92);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 60px;
  gap: 16px;
}
.brand {
  font: 800 1.1rem var(--head);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.nav {
  display: flex;
  gap: 18px;
  align-items: center;
  font-size: 0.95rem;
}
.nav a {
  text-decoration: none;
  color: var(--ink-2);
}
.nav a:hover {
  color: var(--ink);
}
.nav a:not(.cart-link) {
  display: none;
}
.cart-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}
.cart-count {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--ivory);
  font-size: 0.75rem;
}
.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 96px;
  font-size: 0.88rem;
  color: var(--muted);
}
.footer-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: space-between;
}
.footer-row nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

/* ---- buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  padding: 12px 22px;
  font: 700 1rem/1.25 var(--head);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s;
  text-align: center;
}
.btn:active {
  transform: translateY(1px);
}
.btn:disabled {
  opacity: 0.6;
  cursor: progress;
}
.btn-lg {
  padding: 16px 28px;
  font-size: 1.05rem;
}
.btn-sm {
  padding: 8px 14px;
  font-size: 0.9rem;
}
.btn-block {
  width: 100%;
}
.btn-gold {
  background: var(--gold);
  color: var(--gold-ink);
  box-shadow: 0 6px 18px rgba(234, 199, 104, 0.35);
}
.btn-gold:hover {
  background: #e2bb4f;
}
.btn-dark {
  background: var(--ink);
  color: var(--ivory);
}
.btn-dark:hover {
  background: #0d1512;
}
.btn-outline {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 2px var(--ink);
}
.btn-light {
  background: var(--ivory);
  color: var(--ink);
}
.btn-danger {
  background: var(--err);
  color: #fff;
}
.link-btn {
  background: none;
  border: 0;
  padding: 0;
  color: var(--muted);
  text-decoration: underline;
  cursor: pointer;
  font: inherit;
}
.link-btn.danger {
  color: var(--err);
}
.cta-form {
  margin: 0.4rem 0 0.6rem;
}
.cta-form .btn {
  width: 100%;
  white-space: normal;
}

/* ---- sections ---- */
section {
  padding: 56px 0;
}
.s-light {
  background: var(--paper);
}
.s-ivory {
  background: var(--ivory);
}
.s-dark {
  background: var(--accent);
  color: var(--ivory);
}
.s-dark .eyebrow,
.s-dark .lead,
.s-dark .micro,
.s-dark p {
  color: rgba(248, 246, 239, 0.82);
}
.s-hero {
  padding: 40px 0 56px;
  background: radial-gradient(1200px 500px at 85% -10%, color-mix(in srgb, var(--accent) 10%, transparent), transparent), var(--ivory);
}
.s-home {
  padding: 72px 0;
}
.hero-grid {
  display: grid;
  gap: 32px;
  align-items: center;
}
.hero-copy h1 {
  margin-bottom: 0.5em;
}

/* placeholder images */
.ph {
  position: relative;
  margin: 0;
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--accent) 9%, var(--ivory-2)) 0 14px, color-mix(in srgb, var(--accent) 5%, var(--ivory-2)) 14px 28px);
  border: 1px dashed color-mix(in srgb, var(--accent) 35%, transparent);
}
.ph img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ph figcaption {
  position: absolute;
  inset: auto 12px 12px 12px;
  display: grid;
  gap: 2px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--ink);
  font-size: 0.78rem;
  line-height: 1.35;
}
.ph-file {
  font-weight: 700;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.ph-alt {
  color: var(--muted);
}
.ph.has-img figcaption {
  display: none;
}

/* S02 scene + chat */
.scene {
  position: relative;
  margin: 8px 0 28px;
}
.chat {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}
.bubble {
  max-width: 85%;
  margin: 0;
  padding: 12px 16px;
  border-radius: 18px;
  font-size: 0.98rem;
  box-shadow: var(--shadow);
}
.bubble-customer {
  background: var(--paper);
  border: 1px solid var(--line);
  border-bottom-left-radius: 4px;
}
.bubble-owner {
  justify-self: end;
  background: #d9f3dc;
  border-bottom-right-radius: 4px;
}

/* S03 pains */
.pain-list {
  display: grid;
  gap: 18px;
  margin: 28px 0;
}
.pain {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 16px;
  align-items: center;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 12px;
}
.pain p {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 500;
}
.pain .ph {
  border-radius: 12px;
}
.pain .ph figcaption {
  display: none;
}
.stakes {
  font: 700 1.2rem/1.45 var(--head);
  color: var(--ink);
}

/* S04 compare */
.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 28px 0 8px;
}
.compare-card {
  border-radius: var(--radius-lg);
  padding: 12px 12px 18px;
  border: 1px solid var(--line);
}
.compare-card h3 {
  margin: 14px 0 6px;
  font-size: 1.02rem;
}
.compare-card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--ink-2);
}
.compare-before {
  background: #f4efe9;
}
.compare-after {
  background: color-mix(in srgb, var(--accent) 8%, white);
  border-color: color-mix(in srgb, var(--accent) 30%, white);
}
.compare-card .ph figcaption {
  display: none;
}

/* S06 steps */
.steps {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  display: grid;
  gap: 22px;
}
.step-n {
  margin: 14px 0 4px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}
.step h3 {
  margin-bottom: 4px;
}
.step p {
  color: var(--ink-2);
}

/* S07 preview */
.preview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

/* S10 audience */
.audience {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 28px 0 12px;
}
.aud h3 {
  font-size: 0.98rem;
  margin: 10px 2px 0;
}
.aud .ph figcaption {
  display: none;
}

/* S11 offer */
.offer {
  display: grid;
  gap: 32px;
  align-items: start;
}
.offer-card {
  background: var(--paper);
  color: var(--ink);
  border-radius: var(--radius-lg);
  padding: 22px;
  margin-top: 18px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}
.offer-card p,
.s-dark .offer-card p {
  color: var(--ink);
}
.offer-name {
  font: 800 1.2rem var(--head);
  margin-bottom: 12px;
}
.deliverables,
.offer-facts {
  margin: 0 0 14px;
  padding-left: 1.2em;
}
.offer-facts {
  list-style: none;
  padding: 0;
}
.offer-facts li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 8px;
}
.offer-facts li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35em;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' stroke='%23fff' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") center/12px no-repeat;
}
.offer-price {
  font: 800 2.2rem var(--head);
  margin: 6px 0 12px;
}
.offer-price s {
  font-size: 1.2rem;
  color: var(--muted);
  font-weight: 600;
  margin-right: 6px;
}

/* S12 buy steps */
.buy-steps {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.buy-steps li {
  display: grid;
  justify-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.95rem;
}
.buy-steps svg {
  width: 52px;
  height: 52px;
  padding: 13px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 10%, white);
  stroke: var(--accent);
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* S13 faq */
.faq {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}
.faq details {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 18px;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 28px 16px 0;
  font-weight: 600;
  position: relative;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 12px;
  font: 400 1.5rem var(--body);
  color: var(--muted);
}
.faq details[open] summary::after {
  content: "−";
}
.faq details p {
  color: var(--ink-2);
  padding-bottom: 6px;
}

/* S14 final */
.s-final .ps {
  margin-top: 18px;
  font-style: italic;
}
.disclaimer {
  margin: 36px 0 0;
  padding-top: 18px;
  border-top: 1px solid rgba(248, 246, 239, 0.2);
  font-size: 0.82rem;
}

/* sticky mobile CTA */
.sticky-cta {
  position: fixed;
  left: 10px;
  right: 10px;
  bottom: 10px;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 10px 10px 16px;
  background: var(--ink);
  color: var(--ivory);
  border-radius: 999px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
  transform: translateY(140%);
  transition: transform 0.25s ease;
}
.sticky-cta.show {
  transform: none;
}
.sticky-cta div {
  display: grid;
  line-height: 1.25;
  font-size: 0.82rem;
}
.sticky-cta strong {
  font-size: 0.95rem;
}
.sticky-cta form {
  margin: 0;
}

/* ---- catalogue ---- */
.grid {
  display: grid;
  gap: 18px;
  margin: 28px 0;
}
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.card-media {
  display: block;
  aspect-ratio: 4/3;
  background: var(--accent);
}
.card-media.big {
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.card-swatch {
  height: 100%;
  display: grid;
  place-items: center;
  padding: 24px;
  background: radial-gradient(circle at 30% 20%, rgba(234, 199, 104, 0.35), transparent 55%), var(--accent);
  color: var(--ivory);
  font: 800 1.5rem/1.2 var(--head);
  text-align: center;
}
.card-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.card-body h3 a {
  text-decoration: none;
}
.card-body p {
  color: var(--ink-2);
  font-size: 0.95rem;
}
.card-foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.card-foot form {
  margin: 0;
}
.price {
  font: 800 1.3rem var(--head);
}

/* ---- cart / checkout / order ---- */
.lines {
  list-style: none;
  padding: 0;
  margin: 18px 0;
  border-top: 1px solid var(--line);
}
.line {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.line form {
  margin: 0;
}
.line-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex: none;
}
.line-name {
  flex: 1;
  display: grid;
}
.line-name span {
  font-size: 0.85rem;
  color: var(--muted);
}
.line-price {
  font-weight: 700;
  white-space: nowrap;
}
.total-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 1.1rem;
  margin: 8px 0 22px;
}
.total-row strong {
  font: 800 1.5rem var(--head);
}
.empty {
  text-align: center;
  padding: 40px 0;
}
.checkout {
  display: grid;
  gap: 28px;
}
.checkout h1 {
  font-size: 1.7rem;
}
.summary {
  background: var(--ivory);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 20px;
  align-self: start;
}
.summary h2 {
  font-size: 1.15rem;
}
form label {
  display: grid;
  gap: 6px;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 14px;
}
form label small {
  font-weight: 400;
  color: var(--muted);
}
.opt {
  font-weight: 400;
  color: var(--muted);
}
input,
select,
textarea {
  width: 100%;
  font: 400 1rem/1.4 var(--body);
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
}
input:focus,
select:focus,
textarea:focus {
  border-color: var(--ink);
  outline: none;
  box-shadow: 0 0 0 3px rgba(234, 199, 104, 0.45);
}
input[type="color"] {
  padding: 4px;
  height: 46px;
}
label.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-weight: 400;
}
label.check input {
  width: 20px;
  height: 20px;
  flex: none;
  margin-top: 3px;
}
.notice {
  border-radius: 12px;
  padding: 14px 16px;
  margin: 14px 0;
  font-size: 0.95rem;
  border: 1px solid;
}
.notice ul {
  margin: 6px 0 0;
  padding-left: 1.2em;
}
.notice-info {
  background: #f3f1e8;
  border-color: var(--line);
}
.notice-ok {
  background: #e7f4ec;
  border-color: #b9dfc8;
  color: var(--ok);
}
.notice-error {
  background: #fbeceb;
  border-color: #efc4c0;
  color: var(--err);
}
.downloads {
  display: grid;
  gap: 12px;
  margin: 22px 0 32px;
}
.dl {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 12px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--ivory);
}
.dl small {
  grid-column: 1 / -1;
  color: var(--muted);
}
.h-sm {
  font-size: 1.1rem;
  margin-top: 28px;
}
.files {
  list-style: none;
  padding: 0;
  margin: 18px 0;
  display: grid;
  gap: 10px;
}
.file {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--ivory);
  text-decoration: none;
  font-weight: 600;
}
.file small {
  color: var(--muted);
  font-weight: 400;
}

/* ---- breakpoints ---- */
@media (min-width: 720px) {
  section {
    padding: 80px 0;
  }
  .nav a:not(.cart-link) {
    display: inline;
  }
  .hero-grid {
    grid-template-columns: 1.05fr 1fr;
    gap: 48px;
  }
  .s-hero {
    padding: 64px 0 80px;
  }
  .cta-form .btn {
    width: auto;
  }
  .pain-list {
    grid-template-columns: 1fr 1fr;
  }
  .pain {
    grid-template-columns: 1fr;
    padding: 14px 14px 20px;
  }
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
  .audience {
    grid-template-columns: repeat(4, 1fr);
  }
  .offer {
    grid-template-columns: 1.1fr 1fr;
    gap: 48px;
  }
  .grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .checkout {
    grid-template-columns: 1.3fr 1fr;
    gap: 48px;
  }
  .chat {
    position: absolute;
    right: 24px;
    bottom: 24px;
    width: min(380px, 60%);
  }
  .sticky-cta {
    display: none;
  }
  .site-footer {
    padding-bottom: 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* ---- landing page refinements (v3) ---- */
.header-cta {
  margin: 0;
}
.header-cta .btn {
  box-shadow: none;
  white-space: nowrap;
}
.trust {
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
  display: grid;
  gap: 6px;
  font-size: 0.9rem;
  color: var(--ink-2);
}
.trust li {
  position: relative;
  padding-left: 24px;
}
.trust li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.3em;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' stroke='%23fff' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") center/11px no-repeat;
}
.sales .s-hero h1 {
  font-size: clamp(2rem, 1.3rem + 3.2vw, 3.3rem);
  letter-spacing: -0.025em;
}
.sales section h2 {
  font-size: clamp(1.45rem, 1.1rem + 1.5vw, 2.1rem);
}
.sales .prose,
.sales .narrow.prose {
  max-width: 680px;
}
.sales .prose p {
  line-height: 1.75;
}
.sales .s-light + .s-light,
.sales .s-ivory + .s-ivory {
  border-top: 1px solid var(--line);
}

@media (min-width: 720px) {
  .trust {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 22px;
  }
  /* S03: alternating rows (brief: "four alternating pain cards") */
  .sales .pain-list {
    grid-template-columns: 1fr;
    gap: 22px;
    max-width: 900px;
    margin-inline: auto;
  }
  .sales .pain {
    grid-template-columns: 300px 1fr;
    gap: 32px;
    padding: 16px;
  }
  .sales .pain p {
    font-size: 1.15rem;
  }
  .sales .pain-rev {
    grid-template-columns: 1fr 300px;
  }
  .sales .pain-rev .ph {
    order: 2;
  }
  .sales .pain .ph figcaption {
    display: grid;
  }
}

/* landing header title (replaces store name on ad landing pages) */
.landing-title {
  margin: 0;
  font: 600 0.92rem/1.3 var(--body);
  color: var(--ink-2);
  min-width: 0;
  padding: 8px 0;
}
.landing-title strong {
  font: 800 1rem/1.3 var(--head);
  color: var(--ink);
  letter-spacing: -0.01em;
}
@media (max-width: 719px) {
  .landing-title span {
    display: block;
    font-size: 0.8rem;
    font-weight: 500;
  }
  .header-cta .btn {
    padding: 8px 12px;
    font-size: 0.85rem;
  }
}
.landing-title span::before {
  content: " - ";
}
@media (max-width: 719px) {
  .landing-title span::before {
    content: none;
  }
  /* Mobile already has the sticky bottom CTA: let the tall title header scroll away. */
  .sales .site-header {
    position: static;
  }
}
