/* ==========================================================================
   Pinbobs — B2B Website
   Design system: color, type, layout, components
   ========================================================================== */

:root{
  /* --- Brand colors (fixed) --- */
  --blue: #2e72f6;
  --blue-ink: #1f4fb0;
  --magenta: #d61bd4;
  --magenta-ink: #9c159b;

  /* --- Neutrals --- */
  --ink: #14161f;
  --ink-soft: #565a6c;
  --ink-faint: #8a8ea1;
  --paper: #ffffff;
  --mist: #f5f6fb;
  --mist-deep: #eceffa;
  --line: #e3e5f0;

  /* --- Gradient signature --- */
  --grad: linear-gradient(120deg, var(--blue) 0%, var(--magenta) 100%);
  --grad-soft: linear-gradient(120deg, rgba(46,114,246,0.10) 0%, rgba(214,27,212,0.10) 100%);

  /* --- Type --- */
  --font-display: 'Comfortaa', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;

  /* --- Radius / shadow --- */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 26px;
  --r-pill: 999px;
  --shadow-sm: 0 2px 10px rgba(20,22,31,0.05);
  --shadow-md: 0 12px 32px rgba(20,22,31,0.08);

  /* --- Layout --- */
  --maxw: 1180px;
  --pad: clamp(20px, 5vw, 64px);
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *, *::before, *::after{ animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

body{
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img{ max-width: 100%; display: block; }
a{ color: inherit; text-decoration: none; }
ul{ margin: 0; padding: 0; list-style: none; }
button{ font-family: inherit; cursor: pointer; }
svg{ display: block; }

h1, h2, h3, h4{
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.01em;
  margin: 0;
}
h1{ font-size: clamp(2.3rem, 4.4vw, 3.7rem); font-weight: 700; }
h2{ font-size: clamp(1.7rem, 2.8vw, 2.5rem); }
h3{ font-size: clamp(1.15rem, 1.6vw, 1.4rem); }
p{ margin: 0; }

.container{
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad);
}

/* Charm-ring signature icon: base style applies everywhere it's dropped in */
.charm-mark{ width: 14px; height: 14px; flex-shrink: 0; border-radius: 50%; object-fit: contain; }

.eyebrow{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--magenta-ink);
  margin-bottom: 14px;
}

.lede{
  font-size: 1.12rem;
  color: var(--ink-soft);
  max-width: 640px;
}

/* ---------- Buttons ---------- */
.btn{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.96rem;
  padding: 14px 26px;
  border-radius: var(--r-pill);
  border: 1.5px solid transparent;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
  white-space: nowrap;
}
.btn-primary{
  background: var(--grad);
  color: #fff;
  box-shadow: 0 8px 20px rgba(214,27,212,0.22);
}
.btn-primary:hover{ transform: translateY(-2px); box-shadow: 0 14px 28px rgba(214,27,212,0.3); }
.btn-primary:focus-visible{ outline: 3px solid var(--blue-ink); outline-offset: 3px; }
.btn-ghost{
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover{ border-color: var(--blue); color: var(--blue-ink); transform: translateY(-2px); }
.btn-ghost:focus-visible{ outline: 3px solid var(--blue-ink); outline-offset: 3px; }
.btn-block{ width: 100%; justify-content: center; }
.btn-sm{ padding: 10px 20px; font-size: 0.86rem; }

/* ---------- Header ---------- */
.site-header{
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .container{
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
}
.logo{
  display: flex;
  align-items: center;
}
.logo-img{
  height: 47px;
  width: auto;
  display: block;
}
.footer-brand .logo-img{ height: 24px; }

.nav-desktop{ display: flex; align-items: center; gap: 8px; }
.nav-desktop a{
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--ink-soft);
  padding: 10px 16px;
  border-radius: var(--r-pill);
  transition: color .15s ease, background .15s ease;
}
.nav-desktop a:hover{ color: var(--ink); background: var(--mist); }
.nav-desktop a.active{ color: var(--blue-ink); background: var(--mist-deep); }

.header-cta{ display: flex; align-items: center; gap: 10px; }

.nav-toggle{
  display: none;
  width: 44px; height: 44px;
  border-radius: var(--r-sm);
  border: 1.5px solid var(--line);
  background: var(--paper);
  align-items: center;
  justify-content: center;
}
.nav-toggle span{
  display: block; width: 18px; height: 2px; background: var(--ink); position: relative;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle span::before, .nav-toggle span::after{
  content: ''; position: absolute; left: 0; width: 18px; height: 2px; background: var(--ink); transition: transform .2s ease;
}
.nav-toggle span::before{ top: -6px; }
.nav-toggle span::after{ top: 6px; }
.nav-toggle[aria-expanded="true"] span{ background: transparent; }
.nav-toggle[aria-expanded="true"] span::before{ transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after{ transform: translateY(-6px) rotate(-45deg); }

.nav-mobile{
  display: none;
  flex-direction: column;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  padding: 10px var(--pad) 22px;
}
.nav-mobile a{
  padding: 14px 4px;
  font-weight: 600;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}
.nav-mobile a:last-child{ border-bottom: none; }
.nav-mobile.open{ display: flex; }

@media (max-width: 880px){
  .nav-desktop{ display: none; }
  .header-cta .btn-ghost{ display: none; }
  .nav-toggle{ display: flex; }
}

/* ---------- Hero ---------- */
.hero{
  padding: 72px 0 90px;
  position: relative;
  overflow: hidden;
}
.hero .container{
  display: grid;
  grid-template-columns: 1.05fr 0.85fr;
  gap: 56px;
  align-items: center;
}
.hero h1{ margin-bottom: 22px; }
.hero .lede{ margin-bottom: 34px; }
.hero-ctas{ display: flex; gap: 14px; flex-wrap: wrap; }
.hero-visual{ position: relative; }

@media (max-width: 940px){
  .hero .container{ grid-template-columns: 1fr; }
  .hero-visual{ order: -1; max-width: 420px; margin: 0 auto; }
}

/* ---------- Strap illustration (signature) ---------- */
.strap-illustration{ width: 100%; height: auto; }

/* ---------- Sections ---------- */
section{ padding: 88px 0; }
.section-mist{ background: var(--mist); }
.section-head{ max-width: 680px; margin-bottom: 50px; }
.section-head.center{ margin-left: auto; margin-right: auto; text-align: center; }

.divider{
  height: 1px;
  background: var(--line);
  border: none;
  margin: 0;
}

/* ---------- Trust / industries bar ---------- */
.industry-bar{
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
}
.industry-bar div{
  background: var(--paper);
  padding: 22px 14px;
  text-align: center;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink-soft);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.industry-bar svg{ width: 26px; height: 26px; }
@media (max-width: 860px){ .industry-bar{ grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 480px){ .industry-bar{ grid-template-columns: repeat(2, 1fr); } }

/* ---------- Cards ---------- */
.grid-2{ display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.grid-3{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.grid-4{ display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
@media (max-width: 940px){ .grid-3{ grid-template-columns: 1fr 1fr; } .grid-4{ grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px){ .grid-2, .grid-3, .grid-4{ grid-template-columns: 1fr; } }

.card{
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 36px;
  transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}
.card:hover{ box-shadow: var(--shadow-md); transform: translateY(-3px); border-color: transparent; }
.card .card-icon{
  width: 52px; height: 52px;
  border-radius: var(--r-sm);
  background: var(--grad-soft);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.card .card-icon svg{ width: 26px; height: 26px; }
.card h3{ margin-bottom: 10px; }
.card p{ color: var(--ink-soft); font-size: 0.97rem; }

.card-flat{
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  padding: 28px;
  background: var(--paper);
}

/* Product pillar card (large, two-up) */
.pillar{
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.pillar .placeholder-img{ margin-bottom: 4px; }
.pillar h3{ font-size: 1.5rem; }
.pillar ul{ display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
.pillar ul li{
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 0.95rem; color: var(--ink-soft);
}
.pillar ul li .charm-mark{ margin-top: 3px; }

/* ---------- Placeholder image blocks ---------- */
.placeholder-img{
  position: relative;
  border-radius: var(--r-md);
  background: var(--grad-soft);
  border: 1.5px dashed rgba(46,114,246,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  min-height: 160px;
}
.placeholder-img::before{
  content: '';
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(135deg, rgba(20,22,31,0.035) 0 2px, transparent 2px 14px);
}
.placeholder-img .ph-label{
  position: relative;
  text-align: center;
  padding: 18px;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink-faint);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.placeholder-img .ph-label svg{ width: 30px; height: 30px; opacity: 0.6; }
.ratio-16-9{ aspect-ratio: 16/9; }
.ratio-1-1{ aspect-ratio: 1/1; }
.ratio-4-3{ aspect-ratio: 4/3; }
.ratio-3-4{ aspect-ratio: 3/4; }

/* Real photo container: same rounded shape as placeholders, no dashed hatch */
.photo-img{
  position: relative;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--mist);
}
.photo-img img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ---------- Process / steps ---------- */
.process{
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  position: relative;
}
.process::before{
  content: '';
  position: absolute;
  top: 27px; left: 6%; right: 6%;
  height: 2px;
  background: var(--grad);
  opacity: 0.25;
  z-index: 0;
}
.process-step{ position: relative; z-index: 1; padding: 0 14px; }
.process-step .num{
  width: 54px; height: 54px;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: 1.05rem;
  margin-bottom: 18px;
  color: var(--blue-ink);
}
.process-step h4{ font-size: 1rem; margin-bottom: 8px; }
.process-step p{ font-size: 0.88rem; color: var(--ink-soft); }
@media (max-width: 940px){
  .process{ grid-template-columns: 1fr 1fr; gap: 32px 20px; }
  .process::before{ display: none; }
}
@media (max-width: 560px){ .process{ grid-template-columns: 1fr; } }

/* ---------- Stats ---------- */
.stat-row{ display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.stat-row.cols-3{ grid-template-columns: repeat(3, 1fr); }
.stat b{
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2rem, 3vw, 2.6rem);
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat span{ font-size: 0.88rem; color: var(--ink-soft); font-weight: 600; }
@media (max-width: 760px){ .stat-row{ grid-template-columns: 1fr 1fr; } }

/* ---------- Quote / testimonial ---------- */
.quote-card{
  background: var(--ink);
  color: #fff;
  border-radius: var(--r-lg);
  padding: 48px;
  position: relative;
}
.quote-card p{ font-family: var(--font-display); font-size: 1.35rem; line-height: 1.5; margin-bottom: 24px; }
.quote-card .who{ display: flex; align-items: center; gap: 14px; }
.quote-card .who .avatar{
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--grad);
}
.quote-card .who b{ display: block; font-size: 0.94rem; }
.quote-card .who span{ font-size: 0.84rem; color: rgba(255,255,255,0.6); }

/* ---------- Work / portfolio grid ---------- */
.work-card{
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--paper);
  transition: box-shadow .2s ease, transform .2s ease;
}
.work-card:hover{ box-shadow: var(--shadow-md); transform: translateY(-3px); }
.work-card .work-body{ padding: 24px; }
.tag-row{ display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.tag{
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: var(--r-pill);
  background: var(--mist-deep);
  color: var(--blue-ink);
}
.work-card p{ color: var(--ink-soft); font-size: 0.92rem; }

/* ---------- CTA band ---------- */
.cta-band{
  background: var(--ink);
  border-radius: var(--r-lg);
  padding: 64px var(--pad);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band::before{
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 15% 20%, rgba(46,114,246,0.35), transparent 45%),
              radial-gradient(circle at 85% 80%, rgba(214,27,212,0.35), transparent 45%);
}
.cta-band > *{ position: relative; }
.cta-band h2{ color: #fff; margin-bottom: 16px; }
.cta-band p{ color: rgba(255,255,255,0.7); max-width: 540px; margin: 0 auto 32px; }
.cta-band .hero-ctas{ justify-content: center; }
.cta-band .btn-ghost{ color: #fff; border-color: rgba(255,255,255,0.3); }
.cta-band .btn-ghost:hover{ border-color: #fff; }

/* ---------- FAQ accordion ---------- */
.faq-item{
  border-bottom: 1px solid var(--line);
}
.faq-item:first-child{ border-top: 1px solid var(--line); }
.faq-q{
  width: 100%;
  background: none; border: none;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 4px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--ink);
  text-align: left;
}
.faq-q .plus{
  width: 22px; height: 22px; flex-shrink: 0; margin-left: 20px; position: relative;
}
.faq-q .plus::before, .faq-q .plus::after{
  content: ''; position: absolute; background: var(--blue-ink); transition: transform .25s ease;
}
.faq-q .plus::before{ left: 0; top: 50%; width: 100%; height: 2px; transform: translateY(-50%); }
.faq-q .plus::after{ top: 0; left: 50%; width: 2px; height: 100%; transform: translateX(-50%); }
.faq-item.open .plus::after{ transform: translateX(-50%) rotate(90deg); opacity: 0; }
.faq-a{
  max-height: 0; overflow: hidden; transition: max-height .3s ease;
}
.faq-a p{ padding: 0 4px 24px; color: var(--ink-soft); font-size: 0.95rem; max-width: 640px; }
.faq-item.open .faq-a{ max-height: 260px; }

/* ---------- Forms ---------- */
.form-grid{ display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-field{ display: flex; flex-direction: column; gap: 8px; }
.form-field.full{ grid-column: 1 / -1; }
.form-field label{ font-size: 0.85rem; font-weight: 700; color: var(--ink); }
.form-field .req{ color: var(--magenta-ink); }
.form-field input, .form-field select, .form-field textarea{
  font-family: var(--font-body);
  font-size: 0.96rem;
  padding: 13px 16px;
  border-radius: var(--r-sm);
  border: 1.5px solid var(--line);
  background: var(--mist);
  color: var(--ink);
  transition: border-color .15s ease, background .15s ease;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus{
  outline: none; border-color: var(--blue); background: var(--paper);
}
.form-field textarea{ resize: vertical; min-height: 130px; }
.form-check{ display: flex; align-items: flex-start; gap: 10px; font-size: 0.86rem; color: var(--ink-soft); }
.form-check input{ margin-top: 4px; }
.form-note{ font-size: 0.82rem; color: var(--ink-faint); margin-top: 14px; }
@media (max-width: 700px){ .form-grid{ grid-template-columns: 1fr; } }

.form-status{
  display: none;
  padding: 14px 18px;
  border-radius: var(--r-sm);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 20px;
}
.form-status.show{ display: block; }
.form-status.ok{ background: rgba(46,114,246,0.1); color: var(--blue-ink); }
.form-status.err{ background: rgba(214,27,212,0.1); color: var(--magenta-ink); }

/* ---------- Contact info blocks ---------- */
.contact-info-list{ display: flex; flex-direction: column; gap: 22px; }
.contact-info-item{ display: flex; gap: 16px; }
.contact-info-item .ic{
  width: 44px; height: 44px; border-radius: var(--r-sm);
  background: var(--grad-soft);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.contact-info-item .ic svg{ width: 20px; height: 20px; }
.contact-info-item b{ display: block; font-size: 0.92rem; margin-bottom: 3px; }
.contact-info-item span, .contact-info-item a{ font-size: 0.92rem; color: var(--ink-soft); }
.contact-info-item a:hover{ color: var(--blue-ink); }

/* ---------- Legal pages ---------- */
.legal{ max-width: 780px; }
.legal h2{ margin-top: 46px; margin-bottom: 14px; font-size: 1.3rem; }
.legal h2:first-child{ margin-top: 0; }
.legal p, .legal li{ color: var(--ink-soft); font-size: 0.97rem; margin-bottom: 14px; }
.legal ul{ padding-left: 20px; list-style: disc; }
.legal a{ color: var(--blue-ink); text-decoration: underline; }
.legal .updated{ font-size: 0.85rem; color: var(--ink-faint); margin-bottom: 40px; }

/* ---------- Page header (subpages) ---------- */
.page-hero{
  padding: 56px 0 60px;
  background: var(--mist);
  border-bottom: 1px solid var(--line);
}
.page-hero .eyebrow{ margin-bottom: 12px; }
.page-hero .lede{ margin-top: 18px; }
.breadcrumb{ font-size: 0.85rem; color: var(--ink-faint); margin-bottom: 18px; }
.breadcrumb a{ color: var(--ink-faint); }
.breadcrumb a:hover{ color: var(--blue-ink); }

/* ---------- Values / Team ---------- */
.value-item{ display: flex; gap: 18px; }
.value-item .num{
  font-family: var(--font-display); font-weight: 700; font-size: 1.1rem;
  color: var(--ink-faint);
  flex-shrink: 0;
}
.team-card{ text-align: left; }
.team-card .placeholder-img{ margin-bottom: 16px; }
.team-card b{ display: block; font-size: 1rem; }
.team-card span{ font-size: 0.86rem; color: var(--ink-soft); }

/* ---------- Footer ---------- */
.site-footer{
  background: var(--ink);
  color: rgba(255,255,255,0.65);
  padding: 72px 0 30px;
}
.footer-grid{
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-brand .logo{ color: #fff; margin-bottom: 16px; }
.footer-brand p{ font-size: 0.9rem; max-width: 280px; }
.footer-col h4{
  font-family: var(--font-display);
  color: #fff;
  font-size: 0.86rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.footer-col ul{ display: flex; flex-direction: column; gap: 12px; }
.footer-col a{ font-size: 0.9rem; transition: color .15s ease; }
.footer-col a:hover{ color: #fff; }
.footer-bottom{
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 26px;
  font-size: 0.82rem;
  flex-wrap: wrap;
  gap: 14px;
}
.footer-legal{ display: flex; gap: 20px; flex-wrap: wrap; }
.social-row{ display: flex; gap: 10px; margin-top: 18px; }
.social-row a{
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center;
}
.social-row a:hover{ border-color: #fff; }
.social-row svg{ width: 16px; height: 16px; }

@media (max-width: 860px){
  .footer-grid{ grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px){
  .footer-grid{ grid-template-columns: 1fr; }
  .footer-bottom{ flex-direction: column; align-items: flex-start; }
}

/* ---------- Utility ---------- */
.mt-0{ margin-top: 0; }
.text-center{ text-align: center; }
.mx-auto{ margin-left: auto; margin-right: auto; }
.flex-center{ display: flex; align-items: center; justify-content: center; }
.gap-10{ gap: 10px; }
.visually-hidden{
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
