/* ==========================================================================
   PakLink Corporate Data Rates — design tokens
   ========================================================================== */

:root{
  /* --- color: base --- */
  --ink-950:   #0B1210;
  --ink-800:   #12211C;
  --ink-700:   #1B2B25;

  /* --- color: brand green (matches paklink.com.pk theme-color #0FA958) --- */
  --brand-500: #0FA958;
  --brand-600: #0C8C49;
  --brand-700: #0A733D;
  --brand-100: #E3F5EA;
  --brand-050: #F2FAF5;

  /* --- color: neutrals --- */
  --paper:     #FBFCFB;
  --surface:   #FFFFFF;
  --mist:      #F3F6F4;
  --line:      #E1E8E3;
  --line-soft: #EDF2EF;

  --text-900:  #10201A;
  --text-700:  #3A4A43;
  --text-500:  #64756D;
  --text-400:  #8A9A92;

  /* --- color: amber accent, used only for the "taxes excluded" note --- */
  --flag-700:  #92600B;
  --flag-100:  #FBF0DA;

  /* --- type --- */
  --font-display: 'Space Grotesk', 'Segoe UI', sans-serif;
  --font-body:    'Inter', 'Segoe UI', sans-serif;

  /* --- layout --- */
  --measure: 72ch;
  --radius-sm: 6px;
  --radius-md: 10px;
  --container: 1120px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

@media (prefers-color-scheme: dark){
  :root{ color-scheme: light; }
}

*, *::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; }
}

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

h1, h2, h3{
  font-family: var(--font-display);
  color: var(--text-900);
  margin: 0;
  letter-spacing: -0.01em;
}

p{ margin: 0; }

a{ color: inherit; text-decoration: none; }

img, svg{ display: block; max-width: 100%; }

:focus-visible{
  outline: 2px solid var(--brand-600);
  outline-offset: 3px;
  border-radius: 4px;
}

.container{
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

.visually-hidden{
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

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

.site-header{
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(251, 252, 251, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-header__bar{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 16px;
}

.brand{
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.brand__mark{
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--text-900);
}

.brand__mark span{ color: var(--brand-600); }

.brand__divider{
  width: 1px;
  height: 18px;
  background: var(--line);
}

.brand__product{
  font-size: 0.92rem;
  color: var(--text-500);
  font-weight: 500;
}

.header-nav{
  display: flex;
  align-items: center;
  gap: 28px;
}

.header-nav a{
  font-size: 0.92rem;
  color: var(--text-700);
  transition: color 0.15s var(--ease);
}
.header-nav a:hover{ color: var(--brand-700); }

.header-nav .btn{ font-size: 0.88rem; }

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

.btn{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.15s var(--ease), border-color 0.15s var(--ease), transform 0.15s var(--ease);
}

.btn-primary{
  background: var(--brand-600);
  color: #fff;
}
.btn-primary:hover{ background: var(--brand-700); }

.btn-ghost{
  background: transparent;
  border-color: var(--line);
  color: var(--text-700);
}
.btn-ghost:hover{ border-color: var(--brand-600); color: var(--brand-700); }

/* ==========================================================================
   Hero — the signal-path motif
   ========================================================================== */

.hero{
  position: relative;
  padding-block: 72px 56px;
  overflow: hidden;
}

.hero__grid{
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.eyebrow{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.86rem;
  color: var(--brand-700);
  font-weight: 600;
  margin-bottom: 18px;
}

.eyebrow__dot{
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--brand-500);
  box-shadow: 0 0 0 4px var(--brand-100);
}

.hero h1{
  font-size: clamp(2.1rem, 3.6vw, 3.1rem);
  line-height: 1.08;
  max-width: 14ch;
}

.hero__lede{
  margin-top: 20px;
  max-width: 46ch;
  font-size: 1.05rem;
  color: var(--text-700);
}

.hero__meta{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.pill{
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 0.86rem;
  color: var(--text-700);
  font-weight: 500;
}

.pill--location{
  background: var(--brand-050);
  border-color: var(--brand-100);
  color: var(--brand-700);
  font-weight: 600;
}

.pill svg{ width: 14px; height: 14px; flex-shrink: 0; }

.hero__actions{
  display: flex;
  gap: 12px;
  margin-top: 32px;
}

/* signal path visual */
.signal{
  position: relative;
  height: 320px;
}

.signal svg{ width: 100%; height: 100%; }

.signal-path{
  fill: none;
  stroke: var(--line);
  stroke-width: 1.4;
}

.signal-node circle{
  fill: var(--surface);
  stroke: var(--line);
  stroke-width: 1.4;
}

.signal-node text{
  font-family: var(--font-body);
  font-size: 9.5px;
  font-weight: 600;
  fill: var(--text-500);
}

.signal-pulse{
  fill: var(--brand-500);
  filter: drop-shadow(0 0 5px rgba(15,169,88,0.55));
  offset-path: path("M 20 260 C 90 260 90 160 170 160 C 260 160 260 60 340 60");
  animation: travel 3.4s var(--ease) infinite;
}

@keyframes travel{
  0%   { offset-distance: 0%;   opacity: 0; }
  8%   { opacity: 1; }
  92%  { opacity: 1; }
  100% { offset-distance: 100%; opacity: 0; }
}

@media (prefers-reduced-motion: reduce){
  .signal-pulse{ animation: none; offset-distance: 40%; opacity: 1; }
}

/* ==========================================================================
   Section scaffolding
   ========================================================================== */

section{ padding-block: 56px; }

.section-head{
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.section-head h2{
  font-size: 1.55rem;
}

.section-head__desc{
  max-width: 52ch;
  color: var(--text-500);
  font-size: 0.96rem;
  margin-top: 8px;
}

.service-tag{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-500);
}

.service-tag svg{
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--brand-600);
}

/* ==========================================================================
   Rate tables
   ========================================================================== */

.rate-block{
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 20px;
}

.rate-block__head{
  padding: 22px 26px;
  border-bottom: 1px solid var(--line-soft);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  flex-wrap: wrap;
}

.rate-block__title{
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--text-900);
}

.rate-block__desc{
  margin-top: 6px;
  max-width: 60ch;
  color: var(--text-500);
  font-size: 0.92rem;
}

.rate-block__note{
  font-size: 0.8rem;
  color: var(--brand-700);
  background: var(--brand-050);
  border: 1px solid var(--brand-100);
  padding: 5px 11px;
  border-radius: 999px;
  font-weight: 600;
  white-space: nowrap;
}

.rate-table-wrap{ overflow-x: auto; }

.rate-table{
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
}

.rate-table caption{ display: none; }

.rate-table thead th{
  text-align: right;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--text-500);
  padding: 12px 26px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.rate-table thead th:first-child{ text-align: left; }

.rate-table tbody th{
  text-align: left;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-900);
  padding: 15px 26px;
  white-space: nowrap;
}

.rate-table tbody td{
  text-align: right;
  padding: 15px 26px;
  font-variant-numeric: tabular-nums;
  font-size: 0.98rem;
  color: var(--text-700);
  white-space: nowrap;
}

.rate-table tbody td .unit{
  color: var(--text-400);
  font-size: 0.78rem;
  font-weight: 500;
  margin-left: 3px;
}

.rate-table tbody tr{
  border-top: 1px solid var(--line-soft);
  transition: background-color 0.12s var(--ease);
}

.rate-table tbody tr:hover{ background: var(--mist); }

.rate-table tbody td:last-child,
.rate-table thead th:last-child{
  color: var(--brand-700);
  font-weight: 700;
}

/* ==========================================================================
   Definitions
   ========================================================================== */

.defs-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.def-card{
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 22px 24px;
}

.def-card__term{
  font-family: var(--font-display);
  font-size: 1.02rem;
  color: var(--text-900);
  display: flex;
  align-items: center;
  gap: 10px;
}

.def-card__badge{
  width: 30px; height: 30px;
  border-radius: 8px;
  background: var(--brand-050);
  border: 1px solid var(--brand-100);
  color: var(--brand-700);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.78rem;
  font-weight: 700;
  font-family: var(--font-body);
  flex-shrink: 0;
}

.def-card__desc{
  margin-top: 10px;
  font-size: 0.92rem;
  color: var(--text-500);
  line-height: 1.6;
}

/* ==========================================================================
   Commercial note
   ========================================================================== */

.notice{
  background: var(--ink-950);
  border-radius: var(--radius-md);
  padding: 32px 34px;
  color: #EAF3EE;
}

.notice__title{
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: #fff;
  margin-bottom: 14px;
}

.notice ul{
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 11px;
}

.notice li{
  display: flex;
  gap: 11px;
  font-size: 0.93rem;
  color: #C6D6CD;
  line-height: 1.55;
}

.notice li svg{
  flex-shrink: 0;
  margin-top: 3px;
  width: 15px; height: 15px;
  color: var(--brand-500);
}

/* ==========================================================================
   CTA strip
   ========================================================================== */

.cta-strip{
  border: 1px solid var(--line);
  background: var(--brand-050);
  border-radius: var(--radius-md);
  padding: 30px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.cta-strip h3{
  font-size: 1.2rem;
}

.cta-strip p{
  margin-top: 6px;
  color: var(--text-500);
  font-size: 0.92rem;
}

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

.site-footer{
  border-top: 1px solid var(--line);
  padding-block: 32px;
  margin-top: 24px;
}

.site-footer__row{
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: var(--text-500);
}

.site-footer__brand{
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-700);
  font-weight: 600;
  font-family: var(--font-display);
}

.site-footer__brand span{ color: var(--brand-600); }

/* ==========================================================================
   404 page
   ========================================================================== */

.not-found{
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 18px;
}

.not-found__code{
  font-family: var(--font-display);
  font-size: 4rem;
  color: var(--brand-600);
}

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

@media (max-width: 860px){
  .hero__grid{ grid-template-columns: 1fr; }
  .signal{ height: 180px; order: -1; opacity: 0.85; }
  .defs-grid{ grid-template-columns: 1fr; }
  .header-nav a:not(.btn){ display: none; }
}

.rate-block__scroll-hint{ display: none; }

@media (max-width: 640px){
  .brand__product{ display: none; }
  .brand__divider{ display: none; }
  .header-nav .btn{ padding: 8px 14px; font-size: 0.82rem; }

  .hero__actions{ flex-direction: column; }
  .hero__actions .btn{ justify-content: center; width: 100%; }

  .rate-table-wrap{
    position: relative;
    -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent 100%);
            mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent 100%);
  }
  .rate-block__scroll-hint{
    display: block;
    font-size: 0.76rem;
    color: var(--text-400);
    padding: 10px 26px 16px;
    border-top: 1px solid var(--line-soft);
  }
}

@media (max-width: 560px){
  .rate-block__head{ flex-direction: column; }
  .cta-strip{ flex-direction: column; align-items: flex-start; }
  .site-footer__row{ flex-direction: column; align-items: flex-start; }
}
