/* =========================================================
   CodrAIver — styles.css (CLEAN)
   Focus: clarity, structure, scannability, consistent panels
   Notes:
   - Removed duplicate header/nav/footer blocks
   - Removed unused "topbar" variant rules
   ========================================================= */

:root{
  --bg0:#060a14;
  --bg1:#050a15;

  --panel: rgba(255,255,255,.03);
  --panel2: rgba(255,255,255,.045);
  --line: rgba(255,255,255,.10);

  --text: rgba(234,240,255,.95);
  --muted: rgba(185,198,227,.90);
  --muted2: rgba(185,198,227,.78);

  --brand: #6aa5ff;
  --brand2: #9fc3ff;

  --radius: 16px;
  --shadow: 0 14px 40px rgba(0,0,0,.35);
  --container: 1120px;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }

body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Apple Color Emoji","Segoe UI Emoji";
  background: #0b1220;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Links (site default) */
a{ color: var(--brand2); text-decoration:none; }
a:hover{ text-decoration: underline; }

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

/* =========================
   Header / Navigation
   ========================= */

.header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  padding: 16px 0 14px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.brand{
  display:flex;
  align-items:center;
  gap:12px;
  min-width: 220px;
}

.brand-link{ display:inline-flex; align-items:center; }

/* single, clean logo rule */
.logo-img{
  height: 56px;     /* desktop */
  width:auto;
  display:block;
}

.tag{
  color: var(--muted2);
  font-size: 13px;
  white-space: nowrap;
}

/* IMPORTANT: this matches your HTML: <nav class="top-nav"><a class="nav-link">… */
.top-nav{
  display:flex;
  flex-wrap:wrap;
  justify-content:flex-end;
  gap: 10px;
  align-items:center;
}

.top-nav .nav-link{
  color: rgba(234,240,255,.92);
  font-weight:650;
  font-size: 13.5px;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid transparent;
  text-decoration:none;
  line-height: 1;
  background: transparent;
}

.top-nav .nav-link:hover{
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.98);
  text-decoration:none;
  border-color: rgba(255,255,255,.16);
}

.top-nav .nav-link:focus-visible{
  outline: none;
  box-shadow: 0 0 0 3px rgba(106,165,255,.30);
}

/* Active state (use class="nav-link active" on current page link) */
.top-nav .nav-link.active,
.top-nav .nav-link[aria-current="page"]{
  color: rgba(255,255,255,.98);
  background: rgba(106,165,255,.12);
  border-color: rgba(106,165,255,.32);
}

/* =========================
   Panels / Sections
   ========================= */

.panel{
  margin: 22px 0;
  padding: 22px;
  border-radius: calc(var(--radius) + 4px);
  background: var(--panel);
  border: 1px solid var(--line);
}

.panel-alt{ background: var(--panel2); }

.panel-hero{
  padding: 26px;
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: var(--shadow);
}

.panel-cta{
  background:
    radial-gradient(500px 280px at 15% 20%, rgba(106,165,255,.18), transparent 55%),
    rgba(255,255,255,.035);
  border: 1px solid rgba(255,255,255,.16);
}

.section-head{ max-width: 880px; }

.section-sub{
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.eyebrow{
  margin: 0 0 8px;
  color: rgba(159,195,255,.92);
  font-weight: 650;
  letter-spacing: .2px;
  font-size: 13px;
}

/* =========================
   Type
   ========================= */

h1{
  margin: 0 0 10px;
  letter-spacing: -0.6px;
  font-size: 44px;
  line-height: 1.08;
}

h2{ margin: 0; font-size: 26px; letter-spacing: -0.3px; }
h3{ margin: 0 0 8px; font-size: 16px; letter-spacing: -0.2px; }

.lead{
  margin: 0 0 14px;
  color: rgba(234,240,255,.92);
  font-size: 16px;
  line-height: 1.6;
  max-width: 70ch;
}

/* =========================
   Buttons / CTA
   ========================= */

.cta-row{
  display:flex;
  flex-wrap:wrap;
  gap: 10px;
  margin: 14px 0 14px;
}

.button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.03);
  color: rgba(234,240,255,.95);
  font-weight: 650;
  font-size: 13px;
  text-decoration:none;
  min-height: 38px;
}

.button:hover{ background: rgba(255,255,255,.06); text-decoration:none; }

.button.primary{
  background: rgba(106,165,255,.18);
  border-color: rgba(106,165,255,.40);
  color: rgba(255,255,255,.98);
}
.button.primary:hover{ background: rgba(106,165,255,.26); }

.cta-box{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: 16px;
}

.cta-actions{
  display:flex;
  flex-direction: column;
  gap: 10px;
  align-items: stretch;
  min-width: 260px;
  justify-content:flex-end;
}

.cta-actions .button{
  width: 100%;
  justify-content: center;
}

/* Strong primary CTA (green) */
.cta-actions .button.primary{
  background: linear-gradient(180deg, #c9f7d8 0%, #b8f3c8 100%);
  border: 1px solid #6fce95;
  color: #000000;
  font-weight: 700;
  letter-spacing: 0.2px;
  min-height: 44px;
  box-shadow:
    0 6px 16px rgba(0,0,0,0.25),
    inset 0 1px 0 rgba(255,255,255,0.45);
  transition: background 0.18s ease, box-shadow 0.18s ease, transform 0.12s ease;
}

.cta-actions .button.primary:hover{
  background: linear-gradient(180deg, #bdf1cf 0%, #a6e9bb 100%);
  box-shadow:
    0 10px 24px rgba(0,0,0,0.32),
    inset 0 1px 0 rgba(255,255,255,0.55);
  transform: translateY(-1px);
  color: #000000;
}

.cta-actions .button.primary:active{
  transform: translateY(0);
  box-shadow:
    0 4px 12px rgba(0,0,0,0.28),
    inset 0 2px 6px rgba(0,0,0,0.18);
}

.cta-actions .button.primary:focus-visible{
  outline: none;
  box-shadow:
    0 0 0 3px rgba(184,243,200,0.45),
    0 10px 24px rgba(0,0,0,0.32);
}

/* =========================
   Chips / Proof
   ========================= */

.mini-proof{
  display:flex;
  flex-wrap:wrap;
  gap: 8px;
  margin-top: 12px;
}

.chip{
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.03);
  color: rgba(234,240,255,.92);
  border-radius: 999px;
  padding: 8px 10px;
  font-size: 12px;
}

/* Zapier Partner badge */
.chip.zapier{
  background: #ffffff !important;
  border-color: #ffffff !important;
  color: #000000 !important;
  font-weight: 800 !important;
  letter-spacing: 0.2px !important;
  padding: 10px 12px !important;
  box-shadow: 0 10px 22px rgba(0,0,0,0.35) !important;
}
.chip.zapier::before{
  content: "⚡" !important;
  margin-right: 6px !important;
}

/* =========================
   Pain list
   ========================= */

.pain-list{
  display:grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 12px;
  margin-top: 14px;
}

.pain{
  display:flex;
  gap: 12px;
  align-items:flex-start;
  padding: 12px 14px;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.025);
}

.pain-ico{
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display:flex;
  align-items:center;
  justify-content:center;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.10);
  flex: 0 0 auto;
}

.pain-ico svg{
  width: 18px !important;
  height: 18px !important;
  display:block;
}

.pain-title{ font-weight: 750; letter-spacing: -.1px; margin-bottom: 2px; }
.pain-text{ color: var(--muted); font-size: 14px; line-height: 1.5; }

/* =========================
   Cards / Grids
   ========================= */

.cards-4{
  display:grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 12px;
  margin-top: 14px;
}

.card{
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(255,255,255,.03);
  padding: 14px;
}

.card p{
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

/* Align typography between left/right cards in split layouts */
.split .card p,
.split .card li{
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255,255,255,0.85);
}

/* =========================
   Bullets
   ========================= */

.bullets{
  margin-top: 14px;
  display:grid;
  gap: 10px;
}

.bullets.two-col{
  grid-template-columns: repeat(2, minmax(0,1fr));
}

/* match split column widths so pills align with cards */
.bullets.match-split{
  grid-template-columns: 1.05fr .95fr;
}

.bullet{
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.025);
  border-radius: var(--radius);
  padding: 12px 14px;
  color: rgba(234,240,255,.92);
  font-size: 14px;
  line-height: 1.55;
}

.bullet strong{ color: rgba(255,255,255,.98); }

/* =========================
   Split + visuals
   ========================= */

.split{
  display:grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 14px;
  align-items: stretch;
  margin-top: 14px;
}

.visual-card{
  border-radius: calc(var(--radius) + 6px);
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.16);
  padding: 14px;
  overflow:hidden;
}

.visual-head{ margin-bottom: 10px; }
.visual-title{ font-weight: 750; letter-spacing: -.2px; }
.visual-sub{ margin-top: 4px; color: var(--muted2); font-size: 13px; }
.flow{ width: 100%; height: auto; display:block; }
.visual-foot{ margin-top: 10px; }

.pill{
  display:inline-flex;
  align-items:center;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.03);
  border-radius: 999px;
  padding: 8px 10px;
  font-size: 12px;
  color: rgba(234,240,255,.92);
}

.example-grid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 12px;
}

/* =========================
   Hero visual
   ========================= */

.hero-visual{ margin-bottom: 28px; }

.hero-visual img{
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: 18px;
}

/* =========================
   Footer
   ========================= */

.footer{
  margin: 26px 0 36px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.08);
  display:flex;
  justify-content:space-between;
  gap: 18px;
  flex-wrap:wrap;
}

.small{ font-size: 13px; color: var(--muted2); }

/* footer links should not use the global brand color */
.footer a{ color: rgba(234,240,255,.86); text-decoration:none; border-bottom:1px dashed rgba(255,255,255,.22); }
.footer a:hover{ color: rgba(255,255,255,.98); border-bottom-color: rgba(255,255,255,.40); }

.footer-right{
  display:flex;
  gap: 14px;
  flex-wrap:wrap;
  margin-left: auto;
  justify-content: flex-end;
  text-align: right;
}

/* =========================
   Forms
   ========================= */

/* Ensure textarea uses same font as rest of site */
textarea.field-input{
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Apple Color Emoji","Segoe UI Emoji";
}

/* =========================
   Responsive
   ========================= */

@media (max-width: 980px){
  h1{ font-size: 38px; }
  .pain-list{ grid-template-columns: 1fr; }
  .cards-4{ grid-template-columns: repeat(2, minmax(0,1fr)); }
  .bullets.two-col{ grid-template-columns: 1fr; }
  .bullets.match-split{ grid-template-columns: 1fr; }
  .split{ grid-template-columns: 1fr; }
  .example-grid{ grid-template-columns: 1fr; }
  .cta-box{ flex-direction: column; align-items: stretch; }
  .cta-actions{ justify-content: flex-start; min-width: unset; }
  .header{ flex-direction: column; align-items: flex-start; }
  .top-nav{ justify-content: flex-start; }
  .footer{ flex-direction: column; }
  .footer-right{ justify-content: flex-start; margin-left: 0; text-align: left; }
  .tag{ white-space: normal; }
}

@media (max-width: 720px){
  .logo-img{ height: 34px; }
}

@media (max-width: 520px){
  h1{ font-size: 32px; }
  .cards-4{ grid-template-columns: 1fr; }
}
/* Footer social icons (keeps existing footer layout) */
.footer-right{
  align-items: center; /* align icons with the nav links */
}

.footer-social{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-left: 8px;   /* small gap after Contact */
  flex: 0 0 auto;     /* prevent weird stretching */
}

.footer-social a{
  border-bottom: none !important; /* remove dashed underline */
  text-decoration: none !important;
  line-height: 0;                 /* remove baseline spacing */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: .85;
}

.footer-social a:hover{
  opacity: 1;
}

.footer-social svg{
  width: 18px;
  height: 18px;
  display: block;
}
/* FORCE footer social icons to render */
.footer .footer-social,
.footer .footer-social a,
.footer .footer-social svg{
  display: inline-flex !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.footer .footer-social svg{
  width: 18px !important;
  height: 18px !important;
  fill: rgba(234,240,255,.75) !important;
  color: rgba(234,240,255,.75) !important;
}

.footer .footer-social a:hover svg{
  fill: rgba(234,240,255,.95) !important;
  color: rgba(234,240,255,.95) !important;
}
.page-intro{
  max-width: none;        /* stretch to the right */
  line-height: 1.65;
  opacity: .9;
  white-space: nowrap;   /* force single line (desktop) */
}
@media (max-width: 860px){
  .page-intro{ white-space: normal; } /* allow wrapping on mobile */
}

.why-text{
  margin: 0;
  line-height: 1.65;
  opacity: .95;
  max-width: none;        /* stretch full width */
  font-weight: 500;       /* bold statement */
}
