/* ============================================================
   Sentosa B2B Marketplace - Customer landing page styles
   Layers on top of colors_and_type.css + showcase.css.
   Customer-facing marketing surfaces only.
   ============================================================ */

/* ---------- Eyebrow / section intro ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; color: var(--orange-link); margin: 0 0 14px; }
.eyebrow.on-dark { color: var(--gold-500); }
.eyebrow .bar { width: 26px; height: 2px; background: var(--signature-keyline); border-radius: 2px; }

.sec-intro { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.sec-intro.left { margin-left: 0; text-align: left; }
.sec-intro h2 { font-size: clamp(1.75rem, 3vw, 2.25rem); font-weight: 700; letter-spacing: -.02em; line-height: 1.18; margin: 0 0 14px; }
.sec-intro p { font-size: 1.0625rem; line-height: 1.6; color: var(--fg2); margin: 0; }
.section-dark .sec-intro h2 { color: #fff; }
.section-dark .sec-intro p { color: var(--fg-on-dark-2); }

/* ---------- Trust strip (hero meta replacement keeps showcase styles) ---------- */

/* ---------- Why grid ---------- */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.why { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 26px 24px; display: flex; flex-direction: column; gap: 12px; position: relative; overflow: hidden; }
.why::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px;
  background: var(--signature-keyline); opacity: 0; transition: opacity .15s; }
.why:hover::after { opacity: 1; }
.why .wicon { width: 46px; height: 46px; border-radius: var(--radius-md); background: var(--orange-50);
  border: 1px solid var(--orange-100); display: flex; align-items: center; justify-content: center; color: var(--orange-900); }
.why .wicon i, .why .wicon svg { width: 22px; height: 22px; }
.why h3 { margin: 4px 0 0; font-size: 1.0625rem; font-weight: 600; letter-spacing: -.01em; }
.why p { margin: 0; font-size: 13.5px; line-height: 1.6; color: var(--fg2); }

/* ---------- Audience split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split + .split { margin-top: 80px; }
.split.reverse .split-visual { order: -1; }
.split-text h2 { font-size: clamp(1.625rem, 2.6vw, 2rem); font-weight: 700; letter-spacing: -.02em; line-height: 1.2; margin: 0 0 16px; }
.split-text > p { font-size: 1.0625rem; line-height: 1.65; color: var(--fg2); margin: 0 0 24px; max-width: 52ch; }
.feature-list { list-style: none; padding: 0; margin: 0 0 30px; display: flex; flex-direction: column; gap: 14px; }
.feature-list li { display: flex; gap: 13px; align-items: flex-start; font-size: 15px; line-height: 1.5; }
.feature-list .fl-ic { width: 24px; height: 24px; border-radius: var(--radius-pill); background: var(--success-bg);
  color: #15784A; display: flex; align-items: center; justify-content: center; flex: none; margin-top: 1px; }
.feature-list .fl-ic i, .feature-list .fl-ic svg { width: 14px; height: 14px; }
.feature-list b { font-weight: 600; }
.feature-list span { color: var(--fg2); }

/* Visual frame around reused product panels */
.split-visual { position: relative; }
.split-visual .panel { box-shadow: var(--elev-2); }
.visual-tag { position: absolute; z-index: 2; background: var(--charcoal-2); color: #fff; border: 1px solid #3A3A3A;
  border-radius: var(--radius-md); padding: 12px 16px; box-shadow: 0 14px 40px rgba(0,0,0,.35); }
.visual-tag .vt-label { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #9A9A9A; }
.visual-tag .vt-value { font-size: 1.25rem; font-weight: 700; margin-top: 3px; }
.visual-tag .vt-sub { font-size: 11.5px; color: var(--fg-on-dark-2); margin-top: 1px; }

/* ---------- How it works ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.step { background: var(--charcoal-2); border: 1px solid #3A3A3A; border-radius: var(--radius-lg);
  padding: 26px 24px; display: flex; flex-direction: column; gap: 12px; position: relative; }
.step .snum { font-family: var(--font-mono); font-size: 13px; font-weight: 600; color: var(--gold-500);
  display: flex; align-items: center; gap: 10px; }
.step .snum::before { content: ""; width: 24px; height: 2px; background: var(--signature-keyline); border-radius: 2px; }
.step .sicon { width: 42px; height: 42px; border-radius: var(--radius-md); background: #1A1A1A; border: 1px solid #3A3A3A;
  display: flex; align-items: center; justify-content: center; color: var(--gold-500); }
.step h4 { margin: 2px 0 0; font-size: 1rem; font-weight: 600; color: #fff; }
.step p { margin: 0; font-size: 13px; line-height: 1.6; color: var(--fg-on-dark-2); }

/* ---------- Portals ---------- */
.portals { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 1100px) { .portals { grid-template-columns: 1fr 1fr; } }
.portal-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-xl);
  overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--elev-1); }
.portal-top { padding: 28px 30px 24px; border-bottom: 1px solid var(--border); display: flex; align-items: flex-start; gap: 16px; }
.portal-ic { width: 52px; height: 52px; border-radius: var(--radius-lg); display: flex; align-items: center; justify-content: center; flex: none; }
.portal-ic.buyer { background: var(--orange-50); border: 1px solid var(--orange-100); color: var(--orange-900); }
.portal-ic.seller { background: var(--gold-50); border: 1px solid var(--gold-200); color: var(--gold-700); }
.portal-ic.admin { background: var(--neutral-100); border: 1px solid var(--neutral-300); color: var(--fg1); }
.portal-ic i, .portal-ic svg { width: 26px; height: 26px; }
.portal-top .pt-kicker { font-size: 11.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--fg3); }
.portal-top h3 { margin: 4px 0 6px; font-size: 1.375rem; font-weight: 700; letter-spacing: -.01em; }
.portal-top p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--fg2); }
.portal-body { padding: 24px 30px; display: flex; flex-direction: column; gap: 16px; flex: 1; }
.portal-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 11px; }
.portal-list li { display: flex; gap: 11px; align-items: flex-start; font-size: 14px; color: var(--fg1); line-height: 1.45; }
.portal-list .pl-ic { color: var(--orange-link); flex: none; margin-top: 2px; }
.portal-list .pl-ic i, .portal-list .pl-ic svg { width: 16px; height: 16px; }
.portal-foot { padding: 0 30px 28px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.portal-foot .pf-note { font-size: 12.5px; color: var(--fg3); }

/* ---------- CTA band ---------- */
.cta-band { background: var(--charcoal); border: 1px solid #3A3A3A; border-radius: var(--radius-xl);
  padding: 48px 56px; display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--signature-keyline); }
.cta-band h2 { font-size: clamp(1.625rem, 2.6vw, 2rem); font-weight: 700; letter-spacing: -.02em; color: #fff; margin: 0 0 10px; line-height: 1.2; }
.cta-band p { margin: 0; font-size: 1.0625rem; line-height: 1.6; color: var(--fg-on-dark-2); max-width: 48ch; }
.cta-band .cta-actions { display: flex; gap: 14px; flex-wrap: wrap; justify-content: flex-end; }

/* ---------- Header sign-in cluster ---------- */
.topbar .auth { display: flex; align-items: center; gap: 10px; margin-left: 8px; }

/* ---------- Footer customer links ---------- */
.footer .fcol a { display: block; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .why-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 880px) {
  .split, .split.reverse { grid-template-columns: 1fr; gap: 32px; }
  .split.reverse .split-visual { order: 0; }
  .split + .split { margin-top: 56px; }
  .portals { grid-template-columns: 1fr; }
  .cta-band { grid-template-columns: 1fr; padding: 32px 28px; gap: 24px; }
  .cta-band .cta-actions { justify-content: flex-start; }
}
@media (max-width: 620px) {
  .why-grid, .steps { grid-template-columns: 1fr; }
  .topbar .auth .btn-ghost-dark { display: none; }
}

/* ---------- Singapore Government masthead ---------- */
.sg-masthead { background: #F0F0F0; color: #5B5B5B; font-size: 14px; font-family: var(--font-sans); }
.sg-masthead .wrap { padding-top: 5px; padding-bottom: 5px; }
.sgm-row { display: flex; align-items: center; gap: 8px; }
.sgm-flag { width: 18px; height: 12px; border-radius: 2px; overflow: hidden; display: inline-flex;
  flex-direction: column; flex: none; box-shadow: 0 0 0 1px rgba(0,0,0,.08); }
.sgm-flag span:first-child { flex: 1; background: #EF3340; }
.sgm-flag span:last-child { flex: 1; background: #fff; }
.sgm-toggle { background: none; border: 0; cursor: pointer; color: #5B5B5B; font-family: var(--font-sans);
  font-size: 14px; padding: 0; text-decoration: underline; text-underline-offset: 2px; }
.sgm-toggle:focus-visible { outline: 2px solid var(--orange-700); outline-offset: 2px; }
.sgm-panel[hidden] { display: none; }
.sgm-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; padding: 16px 0 18px; max-width: 820px; }
.sgm-panel strong { display: block; color: #323232; font-weight: 600; }
.sgm-panel p { margin: 2px 0 0; font-size: 13.5px; line-height: 1.5; }
@media (max-width: 700px) { .sgm-panel { grid-template-columns: 1fr; gap: 16px; } }

/* ---------- Homepage photography ---------- */
/* Island strip: real photography under the section intro */
.island-strip { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin: 0 0 40px; }
.island-strip figure { position: relative; margin: 0; border-radius: var(--radius-lg);
  overflow: hidden; aspect-ratio: 4 / 3; background: var(--neutral-100); }
.island-strip img { width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .5s cubic-bezier(.2,.6,.2,1); }
.island-strip figure:hover img { transform: scale(1.06); }
/* Caption sits over photography, so the scrim must guarantee legibility on any image.
   Automated contrast tools cannot measure text over a photo; the overlay is sized so
   white text clears 4.5:1 against the darkest point of the gradient regardless of the
   image beneath, with a text shadow as belt and braces. */
.island-strip figcaption { position: absolute; left: 0; right: 0; bottom: 0;
  padding: 28px 12px 11px; color: #fff; font-size: 13px; font-weight: 600;
  letter-spacing: .02em; text-shadow: 0 1px 3px rgba(0,0,0,.55);
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,.35) 45%, rgba(0,0,0,.82) 100%); }
@media (max-width: 900px) {
  .island-strip { grid-template-columns: repeat(3, 1fr); }
  .island-strip figure:nth-child(n+4) { display: none; }
}
