/* Verity Ledger Styles */

:root{
  --bg: #0b0d10;
  --panel: #0f1318;
  --panel2:#0c1015;
  --text: #e9eef6;
  --muted:#a7b3c5;
  --line:#1b2430;
  --accent:#ffffff;
  --soft:#cfd7e6;
  --ok:#7ee0b8;
  --warn:#ffd37a;
  --shadow: 0 14px 40px rgba(0,0,0,.35);
  --radius: 18px;
  --max: 1120px;
}

*{ box-sizing:border-box; }
/* IMPORTANT: don't reset html/body height in WP templates */
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color:var(--text);
  background:
    radial-gradient(900px 500px at 20% 10%, rgba(255,255,255,.07), transparent 55%),
    radial-gradient(700px 420px at 80% 0%, rgba(255,255,255,.05), transparent 60%),
    radial-gradient(1100px 800px at 50% 120%, rgba(255,255,255,.04), transparent 60%),
    var(--bg);
  line-height:1.6;
}

a{ color:inherit; text-decoration:none; }
a:hover{ text-decoration:underline; text-underline-offset: 4px; }

.wrap{ width: min(var(--max), calc(100% - 48px)); margin: 0 auto; }
.topbar{
  position:sticky; top:0; z-index:50;
  background: rgba(11,13,16,.70);
  backdrop-filter: blur(10px);
  border-bottom:1px solid rgba(255,255,255,.06);
}
.nav{
  display:flex; align-items:center; justify-content:space-between;
  padding:16px 0;
  gap:18px;
}
.brand{ display:flex; align-items:center; gap:12px; min-width:280px; }
.mark{
  width:32px; height:32px;
  display:flex; align-items:center; justify-content:center;
  background: white;
  border-radius:8px;
}
.mark img{
  width: 28px;
  height: 28px;
  border-radius: 6px;
}
.brand .name{ font-weight:700; letter-spacing:.2px; font-size: 16px; }
.brand .tag{ color:var(--muted); font-size:12.5px; margin-top:2px; line-height: 1.3; }

.menu{
  display:flex; gap:18px; align-items:center;
  color: var(--soft);
  font-size:14px;
  flex-wrap:wrap;
  justify-content:flex-end;
}
.menu a{ padding:8px 10px; border-radius:10px; border:1px solid transparent; }
.menu a:hover{
  text-decoration:none;
  border-color: rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
}

.cta{ display:flex; gap:10px; align-items:center; }
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  padding:10px 14px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.05);
  color:var(--text);
  font-size:14px;
  transition: transform .08s ease, background .15s ease, border-color .15s ease;
  white-space:nowrap;
}
.btn:hover{
  text-decoration:none;
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.26);
  transform: translateY(-1px);
}
.btn.primary{
  background: rgba(255,255,255,.95);
  color:#0b0d10;
  border-color: rgba(255,255,255,.9);
}
.btn.primary:hover{ background:#ffffff; }

header.hero{ padding: 80px 0 40px; }
.hero-grid{
  display:grid;
  grid-template-columns: 1.15fr .85fr;
  gap:34px;
  align-items:start;
}
.kicker{
  display:inline-flex; align-items:center; gap:10px;
  padding:8px 12px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  color:var(--soft);
  font-size:13px;
}
.dot{
  width:8px; height:8px; border-radius:99px; background: rgba(255,255,255,.75);
  box-shadow: 0 0 0 3px rgba(255,255,255,.08);
}
h1{
  margin: 18px 0 12px;
  font-size: clamp(34px, 4.1vw, 52px);
  line-height:1.06;
  letter-spacing:-.8px;
}
.sub{
  color: var(--muted);
  font-size: 16.5px;
  max-width: 58ch;
  margin: 0 0 20px;
}
.hero-actions{ display:flex; gap:12px; flex-wrap:wrap; align-items:center; margin-top: 10px; }
.fine{ margin-top: 14px; color: rgba(233,238,246,.70); font-size: 12.5px; }

.panel{
  border:1px solid rgba(255,255,255,.10);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.03));
  box-shadow: var(--shadow);
  overflow:hidden;
}
.panel-head{
  display:flex; align-items:center; justify-content:space-between;
  padding:16px 16px 12px;
  border-bottom:1px solid rgba(255,255,255,.08);
}
.panel-title{ font-weight:700; font-size: 14px; letter-spacing:.2px; color: rgba(233,238,246,.92); }
.panel-body{ padding: 14px 16px 16px; }

.metric{
  display:flex; justify-content:space-between; gap:10px;
  padding:10px 0;
  border-bottom:1px dashed rgba(255,255,255,.10);
  font-size: 13.5px;
  color: var(--soft);
}
.metric:last-child{ border-bottom:none; padding-bottom:0; }
.pill{
  font-size:12px;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.14);
  color: rgba(233,238,246,.88);
  background: rgba(255,255,255,.04);
  white-space:nowrap;
}
.pill.ok{ border-color: rgba(126,224,184,.35); background: rgba(126,224,184,.08); color: rgba(126,224,184,.95); }
.pill.warn{ border-color: rgba(255,211,122,.35); background: rgba(255,211,122,.08); color: rgba(255,211,122,.95); }

section{ padding: 64px 0; }
.section-head{
  display:flex; align-items:flex-end; justify-content:space-between;
  gap:18px; flex-wrap:wrap;
  margin-bottom: 32px;
}
.section-head h2{ margin:0; font-size: 26px; letter-spacing:-.3px; line-height: 1.2; }
.section-head p{ margin:16px 0 0; color: var(--muted); max-width: 72ch; font-size: 16px; line-height: 1.8; }

.cards{ display:grid; grid-template-columns: repeat(3, 1fr); gap:24px; margin-top: 24px; }
.card{
  border:1px solid rgba(255,255,255,.10);
  border-radius: var(--radius);
  background: rgba(255,255,255,.03);
  padding:20px;
}
.card h3{ margin:0 0 16px; font-size: 17px; letter-spacing:.1px; line-height: 1.4; }
.card p{ margin:0; color: var(--muted); font-size: 15px; line-height: 1.7; }
/* Expandable sections */
.expandable-section{
  display: grid; 
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 24px;
}

/* Solution cards with hover preview + click detail */
.solution-cards{
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-top: 48px;
}

.solution-card{
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px;
  background: rgba(255,255,255,.04);
  cursor: pointer;
  overflow: hidden;
  transition: all 0.3s ease;
  position: relative;
}

.solution-card:hover{
  border-color: rgba(255,255,255,.25);
  background: rgba(255,255,255,.08);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,.2);
}

.solution-card.expanded{
  border-color: var(--ok);
  background: rgba(255,255,255,.1);
}

.card-header{
  padding: 24px 18px;
  text-align: center;
  min-height: 90px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}

.card-header h3{
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
}

.card-preview{
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
  font-style: italic;
}

.solution-card:hover .card-preview{
  opacity: 1;
  transform: translateY(0);
}

.card-detail{
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
  border-top: 1px solid transparent;
  background: rgba(0,0,0,.15);
}

.solution-card.expanded .card-detail{
  max-height: 200px;
  padding: 20px 18px;
  border-top-color: rgba(255,255,255,.08);
}

.card-detail p{
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.expandable-cards{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.expandable-callout,
.expandable-card{
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius);
  background: rgba(255,255,255,.04);
  overflow: hidden;
  transition: all 0.2s ease;
}

.expandable-callout:hover,
.expandable-card:hover{
  border-color: rgba(255,255,255,.18);
  background: rgba(255,255,255,.06);
}

.callout-header,
.card-header{
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 18px;
  cursor: pointer;
  user-select: none;
}

.callout-header h3,
.card-header h3{
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}

.expand-icon{
  width: 24px;
  height: 24px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
  font-size: 14px;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.expanded .expand-icon{
  transform: rotate(45deg);
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.22);
}

/* Legacy expandable (not for solution squares) */
.expandable-callout .callout-content,
.expandable-card .card-content{
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.expandable-callout.expanded .callout-content,
.expandable-card.expanded .card-content{
  max-height: 200px;
  padding: 0 18px 18px;
}

.expandable-callout .callout-content p,
.expandable-card .card-content p{
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}
.split{ display:grid; grid-template-columns: 1fr 1fr; gap:14px; }

.steps{ display:grid; gap:10px; }
.step{
  display:flex;
  gap:12px;
  padding:14px;
  border-radius: var(--radius);
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
}
.num{
  width:28px; height:28px;
  border-radius:10px;
  border:1px solid rgba(255,255,255,.18);
  display:grid; place-items:center;
  font-weight:700;
  background: rgba(255,255,255,.04);
  flex: 0 0 auto;
  margin-top:1px;
}
.step h4{ margin:0 0 4px; font-size:14px; }
.step p{ margin:0; color:var(--muted); font-size:13.6px; }

/* Compact workflow click-through */
.workflow-container{
  margin-top: 48px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius);
  background: rgba(255,255,255,.03);
  overflow: hidden;
}

.workflow-tabs{
  display: flex;
  border-bottom: 1px solid rgba(255,255,255,.08);
  background: rgba(0,0,0,.10);
}

.workflow-tab{
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  border-right: 1px solid rgba(255,255,255,.06);
}

.workflow-tab:last-child{
  border-right: none;
}

.workflow-tab:hover{
  background: rgba(255,255,255,.05);
}

.workflow-tab.active{
  background: rgba(255,255,255,.08);
  border-bottom: 2px solid var(--ok);
}

.tab-num{
  width: 24px;
  height: 24px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  flex-shrink: 0;
}

.workflow-tab.active .tab-num{
  background: var(--ok);
  border-color: var(--ok);
  color: #000;
}

.tab-title{
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  line-height: 1.3;
}

.workflow-tab.active .tab-title{
  color: var(--text);
}

.workflow-content{
  position: relative;
  min-height: 450px;
  padding: 32px;
}

.workflow-step{
  display: none;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  align-items: start;
}

.workflow-step.active{
  display: grid;
}

.step-info h4{
  margin: 0 0 16px;
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
}

.step-info p{
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}

.step-visual{
  border-radius: 12px;
  overflow: hidden;
  background: rgba(0,0,0,.15);
}

.step-visual img{
  width: 100%;
  height: auto;
  display: block;
  max-height: 300px;
  object-fit: contain;
}

.mini-scenarios{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.mini-scenario{
  text-align: center;
  padding: 16px;
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 8px;
  background: rgba(0,0,0,.10);
}

.mini-scenario img{
  width: 100%;
  height: auto;
  max-height: 120px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 12px;
}

.mini-scenario span{
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
}

/* Image Modal/Lightbox */
.image-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(5px);
}

.modal-content {
  position: relative;
  margin: 2% auto;
  max-width: 90%;
  max-height: 90%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.modal-close {
  position: absolute;
  top: -40px;
  right: 0;
  color: #fff;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  z-index: 1001;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  transition: background 0.2s ease;
}

.modal-close:hover {
  background: rgba(0, 0, 0, 0.8);
}

#modalImage {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.modal-caption {
  color: #fff;
  text-align: center;
  padding: 16px;
  font-size: 14px;
  background: rgba(0, 0, 0, 0.7);
  border-radius: 6px;
  margin-top: 12px;
  max-width: 500px;
}

@media (max-width: 768px) {
  .modal-content {
    margin: 1% auto;
    max-width: 95%;
    max-height: 95%;
  }
  
  #modalImage {
    max-height: 70vh;
  }
  
  .modal-close {
    top: -35px;
    font-size: 24px;
  }
}

@media (max-width: 1000px) {
  .solution-cards{
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
  }
}

@media (max-width: 768px) {
  .workflow-step{
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .workflow-tabs{
    flex-wrap: wrap;
  }
  
  .workflow-tab{
    flex: 1 1 50%;
  }
  
  .mini-scenarios{
    grid-template-columns: 1fr;
  }
  
  .solution-cards{
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  
  .card-header{
    padding: 20px 14px;
    min-height: 80px;
  }
  
  .card-header h3{
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .solution-cards{
    grid-template-columns: 1fr;
  }
}

.callout{
  border:1px solid rgba(255,255,255,.10);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  padding:18px;
}
.callout h3{ margin:0 0 6px; font-size:16px; }
.callout p{ margin:0; color:var(--muted); font-size:14px; }

.form{ display:grid; gap:12px; margin-top: 12px; }
.row{ display:grid; grid-template-columns: 1fr 1fr; gap:12px; }
label{ display:block; font-size: 12.5px; color: rgba(233,238,246,.80); margin-bottom:6px; }
input, textarea{
  width:100%;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.18);
  color: var(--text);
  padding: 12px 12px;
  font-size: 14px;
  outline: none;
}
input:focus, textarea:focus{
  border-color: rgba(255,255,255,.32);
  box-shadow: 0 0 0 4px rgba(255,255,255,.06);
}
textarea{ min-height: 110px; resize: vertical; }

footer{
  padding: 28px 0 44px;
  border-top: 1px solid rgba(255,255,255,.08);
  color: var(--muted);
  font-size: 13px;
}
.foot{ display:flex; justify-content:space-between; align-items:flex-start; gap:18px; flex-wrap:wrap; }
.foot a{ color: rgba(233,238,246,.82); }
.small-links{ display:flex; gap:14px; flex-wrap:wrap; }

/* ── Hamburger button (mobile only) ── */
.hamburger{
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  padding: 8px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.12);
  background: transparent;
  cursor: pointer;
  flex-shrink: 0;
}
.hamburger span{
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--soft);
  transition: transform .25s ease, opacity .2s ease;
}
.hamburger.open span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2){ opacity: 0; }
.hamburger.open span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 920px){ .hero-grid{ grid-template-columns: 1fr; } }
@media (max-width: 840px){
  .cards{ grid-template-columns: 1fr; }
  .split{ grid-template-columns: 1fr; }
  .row{ grid-template-columns: 1fr; }
  .brand{ min-width:auto; gap: 12px; }
  .mark img{ max-width: 120px; height: 28px; }
}
@media (max-width: 720px){
  .hamburger{ display: flex; }
  .menu{
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: rgba(11,13,16,.97);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255,255,255,.08);
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 12px 16px 20px;
  }
  .menu.open{ display: flex; }
  .menu a{
    padding: 12px 14px;
    font-size: 15px;
    border-radius: 10px;
  }
  .cta{
    flex-direction: column;
    margin-top: 8px;
    gap: 8px;
  }
  .cta .btn{ width: 100%; justify-content: center; padding: 13px 14px; font-size: 15px; }
  .topbar{ position: sticky; }
  .nav{ position: relative; }
}