/* ================================
   Kanil PRwire Pricing — style.css
   Clean + Premium + Responsive
   ================================ */

:root{
  --bg:#ffffff;
  --text:#0b1220;
  --muted:#5b677a;
  --line:#e6eaf2;

  /* Brand */
  --brand:#0B5FFF;
  --brand2:#00B3A4;

  --shadow: 0 10px 30px rgba(11,18,32,.08);
  --shadow2: 0 18px 45px rgba(11,18,32,.10);
  --radius:18px;
}

*{box-sizing:border-box}
html,body{height:100%}
html{overflow-x:hidden}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Apple Color Emoji","Segoe UI Emoji";
  background: var(--bg);
  color: var(--text);
  overflow-x:hidden;
}

a{color:inherit}
.page{min-height:100vh}

/* container */
.container{
  width:min(1120px, calc(100% - 32px));
  margin:0 auto;
}

/* topbar */
.topbar{
  position:sticky;
  top:0;
  z-index:50;
  background:rgba(255,255,255,.88);
  backdrop-filter: blur(10px);
  border-bottom:1px solid var(--line);
}
.topbar-row{
  display:flex;
  align-items:center;
  justify-content:flex-start;
  padding:14px 0;
}
.top-title{
  font-weight:900;
  letter-spacing:.2px;
}

/* ticker */
.ticker-section{padding:14px 0 2px}
.ticker{
  position:relative;
  overflow:hidden;
  border:1px solid var(--line);
  border-radius:999px;
  background:linear-gradient(180deg,#ffffff,#fbfcff);
  box-shadow: 0 10px 28px rgba(11,18,32,.06);
}
.ticker::before,
.ticker::after{
  content:"";
  position:absolute;
  top:0;bottom:0;
  width:70px;
  z-index:2;
  pointer-events:none;
}
.ticker::before{
  left:0;
  background:linear-gradient(90deg,#fff,rgba(255,255,255,0));
}
.ticker::after{
  right:0;
  background:linear-gradient(270deg,#fff,rgba(255,255,255,0));
}
.ticker-track{
  display:flex;
  gap:40px;
  white-space:nowrap;
  padding:10px 18px;
  font-weight:700;
  font-size:13px;
  color: #22304a;
  animation: tickerMove 22s linear infinite;
}
@keyframes tickerMove{
  from{transform:translateX(0)}
  to{transform:translateX(-50%)}
}

/* sections */
.section{padding:26px 0}
.section-head h2{
  margin:0;
  font-size:28px;
  letter-spacing:.2px;
}
.muted{
  margin:6px 0 0;
  color: var(--muted);
  line-height:1.5;
  font-weight:500;
}

/* Premium accent line under headings */
.section-head h2{
  position:relative;
  display:inline-block;
  padding-bottom:8px;
}
.section-head h2::after{
  content:"";
  position:absolute;
  left:0;
  bottom:0;
  height:3px;
  width:78px;
  border-radius:999px;
  background:linear-gradient(90deg, rgba(11,95,255,.45), rgba(0,179,164,.45));
}

/* grids */
.grid3{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap:18px;
  margin-top:14px;
  align-items:stretch;
}
@media (max-width: 980px){
  .grid3{grid-template-columns: repeat(2, minmax(0, 1fr));}
}
@media (max-width: 640px){
  .grid3{grid-template-columns: 1fr;}
}

/* cards + boxes */
.box, .card{
  background: linear-gradient(180deg, rgba(11,95,255,.06), rgba(0,179,164,.04) 55%, rgba(255,255,255,1));
  border:1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding:16px;
  height:100%;
  position:relative; /* needed for ribbon/overlays */
}
.box:hover, .card:hover{
  box-shadow: var(--shadow2);
  transform: translateY(-1px);
  transition: .18s ease;
}

/* box header */
.box-top, .card-top{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
}
.box h3{
  margin:0;
  font-size:18px;
}
.card-title{
  font-weight:900;
  font-size:18px;
}
.card-top{
  position:relative;
  z-index:9; /* keep title above ribbon */
}

/* chip / badge */
.chip, .badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:7px 10px;
  border-radius:999px;
  border:1px solid rgba(11,95,255,.18);
  background: rgba(11,95,255,.08);
  color: rgba(11,95,255,.95);
  font-weight:800;
  font-size:12px;
  white-space:nowrap;
}

/* Trending: site pills */
.site-list{
  margin:12px 0 0;
  padding:0;
  list-style:none;
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  overflow:visible;
}
.site-list li{margin:0}
.site-link{
  display:inline-flex;
  align-items:center;
  padding:8px 10px;
  border-radius:999px;
  border:1px solid var(--line);
  background:#fff;
  text-decoration:none;
  font-weight:800;
  font-size:13px;
  box-shadow: 0 8px 20px rgba(11,18,32,.06);
}
.site-link:hover{
  border-color:#d7dded;
  text-decoration:underline;
}

/* ✅ Trending sites: WRAP (no scroll) */
.site-list--wrap{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin:12px 0 0;
  padding:0;
  list-style:none;
  overflow:visible;
}
.site-list--wrap li{ flex:0 0 auto; }

/* (Optional) if you ever use row variant */
.site-list--row{
  display:flex;
  flex-wrap:nowrap;
  gap:10px;
  padding:10px 0 0;
  margin:0;
  list-style:none;
  overflow-x:auto;
  -webkit-overflow-scrolling:touch;
}
.site-list--row li{ flex:0 0 auto; }

/* Trending footer line */
.box-foot{
  margin-top:12px;
  padding-top:10px;
  border-top:1px solid rgba(0,0,0,.06);
}

/* meta rows */
.meta{
  margin-top:10px;
  display:flex;
  flex-direction:column;
  gap:6px;
  overflow:visible; /* allow chips to show */
}
.k{
  color:#3c4a63;
  font-weight:800;
}
.v{
  color:#0b1220;
  font-weight:650;
}

/* Keep neatness but don't hide chips blocks */
.meta div{
  overflow:hidden;
  text-overflow:ellipsis;
}

/* Package sample sites: chips */
.meta-sites{
  margin-top:8px;
  display:block !important;
  overflow:visible !important;
  -webkit-line-clamp: unset !important;
  -webkit-box-orient: unset !important;
}
.site-chips--row{
  display:flex;
  flex-wrap:wrap;      /* ✅ WRAP so all chips show */
  gap:8px;
  margin-top:8px;
  overflow:visible;    /* ✅ no horizontal cut */
}
.site-chip{
  display:inline-flex;
  align-items:center;
  flex:0 0 auto;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(0,0,0,.08);
  background:#fff;
  font-size:13px;
  font-weight:600;
  white-space:nowrap;
}

/* price row */
.price-row{
  margin-top:14px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}
.price{
  font-weight:1000;
  font-size:22px;
  letter-spacing:.2px;
}

/* enquire small button */
.mini-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:10px 14px;
  border-radius:14px;
  border:1px solid var(--line);
  background:#fff;
  text-decoration:none;
  font-weight:900;
  box-shadow: 0 10px 20px rgba(11,18,32,.06);
}
.mini-btn:hover{
  border-color:#d7dded;
  transform: translateY(-1px);
  transition:.18s ease;
}

/* ✅ “Most Popular” ribbon on 2nd package card (NO overlap) */
.section:nth-of-type(2) .grid3 .card:nth-child(2){
  border-color: rgba(11,95,255,.25);
  box-shadow: 0 18px 45px rgba(11,18,32,.12);
  padding-top:44px; /* ✅ creates space for ribbon */
}
.section:nth-of-type(2) .grid3 .card:nth-child(2)::before{
  content:"Most Popular";
  position:absolute;
  top:14px;
  left:16px;
  padding:6px 10px;
  border-radius:999px;
  font-size:12px;
  font-weight:1000;
  color: rgba(11,95,255,.95);
  background: rgba(11,95,255,.10);
  border:1px solid rgba(11,95,255,.18);
  z-index:8;
  pointer-events:none;
}

/* CTA box */
.cta-box{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:16px;
  border-radius: var(--radius);
  border:1px solid var(--line);
  background: linear-gradient(135deg, rgba(11,95,255,.06), rgba(0,179,164,.05), #fff);
  box-shadow: var(--shadow);
}
@media(max-width: 720px){
  .cta-box{flex-direction:column;align-items:flex-start}
  .cta-buttons{width:100%;justify-content:flex-start;flex-wrap:wrap}
}
.cta-left h3{margin:0 0 6px}
.cta-buttons{
  display:flex;
  gap:10px;
  align-items:center;
  justify-content:flex-end;
}

/* buttons */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:12px 16px;
  border-radius:14px;
  border:1px solid var(--line);
  background:#fff;
  text-decoration:none;
  font-weight:900;
  box-shadow: 0 10px 20px rgba(11,18,32,.06);
}
.btn:hover{
  border-color:#d7dded;
  transform: translateY(-1px);
  transition:.18s ease;
}
.btn.primary{
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  color:#fff;
  border-color: transparent;
}
.btn.ghost{
  background: rgba(11,95,255,.08);
  border-color: rgba(11,95,255,.18);
  color: rgba(11,95,255,.95);
}

/* footer */
.footer{
  border-top:1px solid var(--line);
  padding:16px 0 30px;
  margin-top:10px;
}

/* =========================================
   Mobile-first responsive + smooth animations
   (paste at END of style.css)
   ========================================= */

/* Smooth feel */
:root{
  --ease: cubic-bezier(.2,.8,.2,1);
}

/* Prevent any accidental sideways scroll */
body, .page{
  max-width: 100%;
  overflow-x: hidden;
}

/* Make all hover transitions smooth */
.box, .card, .btn, .mini-btn, .site-link, .chip, .badge{
  transition: transform .22s var(--ease), box-shadow .22s var(--ease), border-color .22s var(--ease), background .22s var(--ease), opacity .22s var(--ease), filter .22s var(--ease);
  will-change: transform;
}

/* Slightly premium hover (desktop only) */
@media (hover:hover){
  .box:hover, .card:hover{
    transform: translateY(-2px);
  }
  .site-link:hover{
    transform: translateY(-1px);
  }
  .btn:hover, .mini-btn:hover{
    transform: translateY(-1px);
  }
}

/* Soft entrance animation (no JS needed) */
@keyframes softPop {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
.section{
  animation: softPop .45s var(--ease) both;
}
.section:nth-of-type(2){ animation-delay: .06s; }
.section:nth-of-type(3){ animation-delay: .12s; }

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

/* --- Mobile polish --- */
@media (max-width: 640px){

  .container{
    width: min(1120px, calc(100% - 22px));
  }

  /* Headings scale nicely */
  .section-head h2{
    font-size: 24px;
  }
  .topbar-row{
    padding: 12px 0;
  }
  .top-title{
    font-size: 15px;
    letter-spacing: .1px;
  }

  /* Cards spacing + touch-friendly */
  .box, .card{
    padding: 14px;
    border-radius: 16px;
  }

  /* Chips/badges smaller on phone */
  .chip, .badge{
    padding: 6px 10px;
    font-size: 11px;
  }

  /* Site pills: allow wrapping + keep readable */
  .site-list{
    gap: 8px;
  }
  .site-link{
    padding: 8px 10px;
    font-size: 12.5px;
    max-width: 100%;
  }

  /* Meta text readability */
  .meta{
    gap: 7px;
  }
  .k{ font-size: 13px; }
  .v{ font-size: 14px; }

  /* Price row: keep stable */
  .price{
    font-size: 21px;
  }

  /* CTA: full width buttons stack nicely */
  .cta-box{
    padding: 14px;
    gap: 12px;
  }
  .cta-buttons{
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 10px;
  }
  .btn{
    width: auto;
    padding: 12px 14px;
  }

  /* Enquire button: larger tap area */
  .mini-btn{
    padding: 11px 16px;
    border-radius: 14px;
  }
}

/* --- Very small phones --- */
@media (max-width: 420px){
  .section{ padding: 22px 0; }
  .section-head h2{ font-size: 22px; }
  .muted{ font-size: 14px; }

  /* Make CTA buttons full width for tiny screens */
  .cta-buttons .btn{
    width: 100%;
    justify-content: center;
  }
}

/* --- Tablet polish --- */
@media (min-width: 641px) and (max-width: 980px){
  .section-head h2{ font-size: 26px; }
  .box, .card{ padding: 16px; }
}

/* Optional: smoother scrolling for anchors */
html{
  scroll-behavior: smooth;
}