/* ==========================================================================
   Pak-eSim — design system
   Tokens are lifted verbatim from design-idea/Pak-eSim Landing.dc.html.
   ========================================================================== */

:root {
  /* Brand */
  --teal:        #0E7C86;
  --teal-dark:   #0A5E66;
  --teal-deep:   #0F3236;
  --teal-soft:   #7FC6CD;
  --teal-tint:   #E4F1F2;
  --teal-wash:   #F2F7F7;

  /* Surfaces */
  --bg:          #F7FAFA;
  --surface:     #FFFFFF;

  /* Ink */
  --ink:         #142524;
  --body:        #3D5453;
  --muted:       #5E7473;
  --on-dark:     #B8D4D7;
  --on-dark-dim: #6E9296;

  /* Lines */
  --line:        #E3ECEC;
  --line-strong: #D6E3E3;

  /* Status */
  --error:       #B3402E;
  --error-bg:    #FBEAE7;
  --ok:          #0A5E66;
  --ok-bg:       #E4F1F2;

  /* Type */
  --font-head: 'Sora', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Manrope', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* Radii */
  --r-ctl:   11px;
  --r-card:  18px;
  --r-panel: 28px;
  --r-pill:  999px;

  /* Elevation */
  --sh-card:  0 4px 14px rgba(20, 50, 52, .05);
  --sh-lift:  0 14px 34px rgba(20, 50, 52, .10);
  --sh-hero:  0 24px 60px rgba(20, 50, 52, .12);
  --sh-teal:  0 8px 20px rgba(14, 124, 134, .25);

  /* Layout */
  --wrap: 1140px;
  --gut:  32px;

  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* --------------------------------------------------------------- reset --- */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

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

img, svg, video { max-width: 100%; height: auto; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }

/* The [hidden] attribute must beat any component that sets `display`.
   Without this, .btn (inline-flex) and .plan (flex) stay visible when the
   checker and the plan filter set hidden. */
[hidden] { display: none !important; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -.02em;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(2rem, 1.35rem + 2.7vw, 3.25rem); letter-spacing: -.03em; line-height: 1.08; }
h2 { font-size: clamp(1.6rem, 1.25rem + 1.5vw, 2.25rem); }
h3 { font-size: clamp(1.15rem, 1.05rem + .4vw, 1.35rem); }
p  { margin: 0 0 1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

a { color: var(--teal); text-decoration: none; transition: color .15s var(--ease); }
a:hover { color: var(--teal-dark); }

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

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--teal); color: #fff; padding: 12px 20px;
  border-radius: 0 0 var(--r-ctl) 0; font-weight: 700;
}
.skip-link:focus { left: 0; color: #fff; }

.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px;
  overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}

/* -------------------------------------------------------------- layout --- */

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }
.wrap--narrow { max-width: 780px; }
.wrap--mid    { max-width: 960px; }

.section      { padding-block: clamp(56px, 7vw, 88px); }
.section--tight { padding-block: clamp(40px, 5vw, 64px); }

.eyebrow {
  display: block;
  font-size: 13px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--teal); margin-bottom: 12px;
}
.eyebrow--light { color: var(--teal-soft); }

.section__head { max-width: 620px; margin-bottom: clamp(28px, 4vw, 40px); }
.section__head p { color: var(--body); margin-top: 12px; font-size: 1.0625rem; }

.lede { font-size: 1.0625rem; color: var(--body); line-height: 1.7; }

/* ------------------------------------------------------------- buttons --- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 28px; border-radius: var(--r-ctl);
  font-weight: 700; font-size: 15.5px; line-height: 1.2;
  border: 1.5px solid transparent; cursor: pointer;
  text-align: center; white-space: nowrap;
  transition: background-color .18s var(--ease), color .18s var(--ease),
              border-color .18s var(--ease), transform .18s var(--ease),
              box-shadow .18s var(--ease);
}
.btn:active { transform: translateY(1px); }

.btn--primary { background: var(--teal); color: #fff; box-shadow: var(--sh-teal); }
.btn--primary:hover { background: var(--teal-dark); color: #fff; box-shadow: 0 10px 26px rgba(14,124,134,.32); }

.btn--ghost { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--teal); color: var(--teal); }

.btn--outline { background: transparent; color: var(--teal); border-color: var(--teal); }
.btn--outline:hover { background: var(--teal); color: #fff; }

.btn--light { background: #fff; color: var(--teal); }
.btn--light:hover { background: var(--teal-tint); color: var(--teal-dark); }

.btn--block { display: flex; width: 100%; }
.btn--sm { padding: 10px 18px; font-size: 14px; }
.btn--lg { padding: 16px 34px; font-size: 16.5px; }

/* ----------------------------------------------------------------- nav --- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 250, 250, .92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }

.nav {
  height: 68px; display: flex; align-items: center;
  justify-content: space-between; gap: 24px;
}
.nav__logo img { height: 44px; width: auto; }

.nav__menu {
  display: flex; align-items: center; gap: 26px;
  list-style: none; margin: 0; padding: 0;
  font-size: 14.5px; font-weight: 600;
}
.nav__menu a { color: var(--body); white-space: nowrap; }
.nav__menu a:hover,
.nav__menu .current-menu-item > a { color: var(--teal); }

.nav__actions { display: flex; align-items: center; gap: 14px; }

.nav__cart {
  position: relative; display: inline-flex; align-items: center; gap: 7px;
  font-weight: 700; font-size: 14.5px; color: var(--body);
  padding: 8px 10px; border-radius: var(--r-ctl);
}
.nav__cart:hover { color: var(--teal); background: var(--teal-tint); }
.nav__cart svg { width: 19px; height: 19px; }
.nav__cart-count {
  min-width: 19px; height: 19px; padding: 0 5px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--teal); color: #fff; border-radius: var(--r-pill);
  font-size: 11.5px; font-weight: 700;
}

.nav__toggle {
  display: none; background: none; border: 1.5px solid var(--line-strong);
  border-radius: 10px; padding: 8px 10px; cursor: pointer; color: var(--ink);
}
.nav__toggle svg { width: 20px; height: 20px; }

@media (max-width: 980px) {
  .nav__toggle { display: inline-flex; }
  .nav__menu {
    position: fixed; inset: 68px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--surface); border-bottom: 1px solid var(--line);
    padding: 8px var(--gut) 20px; font-size: 16px;
    box-shadow: var(--sh-lift);
    display: none;
  }
  .nav__menu.is-open { display: flex; }
  .nav__menu li { border-bottom: 1px solid var(--line); }
  .nav__menu li:last-child { border-bottom: 0; }
  .nav__menu a { display: block; padding: 14px 0; }
  .nav__cta { display: none; }
}

/* ---------------------------------------------------------------- hero --- */

.hero {
  display: grid; grid-template-columns: 1.15fr .85fr;
  gap: 64px; align-items: center;
  padding-block: clamp(48px, 6vw, 88px) clamp(44px, 5vw, 72px);
}
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 44px; }
  .hero__art { order: -1; }
}

.hero__col { display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }

.pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--teal-tint); color: var(--teal-dark);
  font-size: 12.5px; font-weight: 700; letter-spacing: .03em;
  text-transform: uppercase;
  padding: 7px 14px; border-radius: var(--r-pill);
}

.hero__sub { font-size: 1.125rem; line-height: 1.65; color: var(--body); max-width: 500px; margin: 0; }

.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero__reassure {
  display: flex; gap: 26px; flex-wrap: wrap; margin-top: 4px;
  font-size: 13.5px; font-weight: 600; color: var(--muted);
  list-style: none; padding: 0;
}
.hero__reassure li::before { content: "✓"; color: var(--teal); font-weight: 700; margin-right: 6px; }

/* phone card */
.phone {
  width: 288px; margin-inline: auto;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 36px; box-shadow: var(--sh-hero);
  padding: 20px 20px 28px;
  display: flex; flex-direction: column; gap: 16px;
}
.phone__notch { width: 96px; height: 5px; background: var(--line); border-radius: var(--r-pill); margin: 0 auto; }
.phone__head { text-align: center; padding-top: 8px; display: flex; flex-direction: column; gap: 4px; }
.phone__head span:first-child { font-size: 11.5px; font-weight: 700; color: var(--muted); letter-spacing: .08em; }
.phone__head span:last-child { font-family: var(--font-head); font-size: 21px; font-weight: 700; }
.phone__qr {
  align-self: center; width: 168px; height: 168px; border-radius: 16px;
  border: 1px solid var(--line);
  background:
    repeating-linear-gradient(45deg, #EDF4F4 0 8px, #F7FAFA 8px 16px);
  display: grid; place-items: center;
  font-family: ui-monospace, monospace; font-size: 11px; color: var(--muted);
  text-align: center; padding: 0 12px;
}
.phone__rows { display: flex; flex-direction: column; gap: 8px; }
.phone__row {
  display: flex; justify-content: space-between; font-size: 13px;
  padding: 10px 14px; background: var(--teal-wash); border-radius: 10px;
}
.phone__row span:first-child { color: var(--muted); font-weight: 600; }
.phone__row span:last-child { font-weight: 700; }
.phone__row--ok span:last-child { color: var(--teal); }

/* --------------------------------------------------------- trust strip --- */

.trust {
  background: var(--surface);
  border-block: 1px solid var(--line);
}
.trust__list {
  display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  padding-block: 20px; margin: 0; list-style: none;
  font-size: 14px; font-weight: 700; color: var(--body);
}
.trust__list li { display: flex; align-items: center; gap: 9px; }
.trust__list svg { width: 18px; height: 18px; color: var(--teal); flex: 0 0 auto; }
@media (max-width: 760px) {
  .trust__list { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; font-size: 13px; }
}

/* --------------------------------------------------------------- cards --- */

.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-card); padding: 26px;
  display: flex; flex-direction: column; gap: 14px;
}

.grid { display: grid; gap: 20px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .grid--4 { grid-template-columns: repeat(2, 1fr); } .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 660px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

.step__n {
  font-family: var(--font-head); font-size: 15px; font-weight: 700;
  color: var(--teal); background: var(--teal-tint);
  width: 36px; height: 36px; border-radius: 10px;
  display: grid; place-items: center;
}
.step h3 { font-size: 17px; }
.step p { font-size: 14px; line-height: 1.6; color: var(--body); }

.why__icon {
  width: 40px; height: 40px; border-radius: 11px;
  background: var(--teal-tint); color: var(--teal);
  display: grid; place-items: center;
}
.why__icon svg { width: 21px; height: 21px; }

/* ------------------------------------------------------- plan / product --- */

.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; }
.filter {
  padding: 9px 20px; border-radius: var(--r-pill);
  border: 1.5px solid var(--line-strong); background: var(--surface);
  color: var(--body); font-size: 14px; font-weight: 700; cursor: pointer;
  transition: all .16s var(--ease);
}
.filter:hover { border-color: var(--teal); color: var(--teal); }
.filter.is-active { background: var(--teal); border-color: var(--teal); color: #fff; }

.plan {
  position: relative;
  background: var(--surface); border: 1.5px solid var(--line);
  border-radius: 20px; padding: 28px;
  display: flex; flex-direction: column; gap: 16px;
  box-shadow: var(--sh-card);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.plan:hover { transform: translateY(-3px); box-shadow: var(--sh-lift); border-color: var(--line-strong); }
.plan.is-popular { border-color: var(--teal); }

.plan__flag {
  position: absolute; top: -12px; left: 28px;
  background: var(--teal); color: #fff;
  font-size: 11.5px; font-weight: 700; letter-spacing: .04em;
  padding: 5px 12px; border-radius: var(--r-pill); text-transform: uppercase;
}
.plan__top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.plan__data { font-family: var(--font-head); font-size: 28px; font-weight: 700; letter-spacing: -.02em; }
.plan__data a { color: inherit; }
.plan__data a:hover { color: var(--teal); }
.plan__validity { font-size: 13px; font-weight: 700; color: var(--muted); white-space: nowrap; }
.plan__price { font-family: var(--font-head); font-size: 25px; font-weight: 700; color: var(--teal); }
.plan__price .woocommerce-Price-currencySymbol { font-size: .7em; font-weight: 700; }
.plan__feats { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; list-style: none;
               font-size: 13.5px; color: var(--body); font-weight: 600; }
.plan__feats li::before { content: "✓"; color: var(--teal); font-weight: 700; margin-right: 7px; }
.plan__cta { margin-top: auto; }

/* --------------------------------------------------- device checker UI --- */

.checker-panel {
  background: var(--teal-deep); border-radius: var(--r-panel);
  padding: clamp(32px, 5vw, 56px);
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 4vw, 56px);
  align-items: center;
}
@media (max-width: 860px) { .checker-panel { grid-template-columns: 1fr; } }
.checker-panel h2 { color: #fff; }
.checker-panel p  { color: var(--on-dark); font-size: 1.0625rem; line-height: 1.65; }

.checker {
  background: var(--surface); border-radius: 20px; padding: 32px;
  display: flex; flex-direction: column; gap: 14px;
}
.checker label { font-size: 13.5px; font-weight: 700; color: var(--body); }
.checker select, .field select, .field input, .field textarea {
  width: 100%; padding: 12px 14px; border-radius: 10px;
  border: 1.5px solid var(--line-strong); background: var(--surface);
  font-size: 15px; font-weight: 600; color: var(--ink);
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.checker select:focus, .field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--teal); outline: none; box-shadow: 0 0 0 3px rgba(14,124,134,.14);
}
.checker select:disabled { background: var(--teal-wash); color: var(--muted); cursor: not-allowed; }

.result { border-radius: 12px; padding: 16px 18px; display: flex; flex-direction: column; gap: 4px; }
.result strong { font-size: 15px; }
.result span { font-size: 13.5px; color: var(--body); line-height: 1.5; }
.result--ok   { background: var(--ok-bg); }
.result--ok strong { color: var(--ok); }
.result--no   { background: var(--error-bg); }
.result--no strong { color: var(--error); }
.result[hidden] { display: none; }

/* ----------------------------------------------------------------- faq --- */

.faq { display: flex; flex-direction: column; gap: 12px; }
.faq__item { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.faq__q {
  width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
  padding: 18px 22px; font-family: var(--font-head); font-size: 16px; font-weight: 600;
  color: var(--ink); display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq__q:hover { color: var(--teal); }
.faq__icon { color: var(--teal); font-size: 20px; flex: 0 0 auto; line-height: 1; transition: transform .2s var(--ease); }
.faq__q[aria-expanded="true"] .faq__icon { transform: rotate(45deg); }
.faq__a { padding: 0 22px 20px; font-size: 14.5px; line-height: 1.65; color: var(--body); }
.faq__a[hidden] { display: none; }

/* ------------------------------------------------------------ cta band --- */

.cta-band { background: var(--teal); }
.cta-band__inner {
  padding-block: clamp(48px, 6vw, 72px);
  display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: #C9E5E8; margin: 10px 0 0; font-size: 1.0625rem; }

/* -------------------------------------------------------------- footer --- */

.site-footer { background: var(--teal-deep); color: var(--on-dark); margin-top: auto; }
.site-footer a { color: var(--on-dark); }
.site-footer a:hover { color: #fff; }

.footer__top {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px;
  padding-block: clamp(40px, 5vw, 56px);
}
@media (max-width: 860px) { .footer__top { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 520px) { .footer__top { grid-template-columns: 1fr; } }

.footer__logo { background: #fff; border-radius: 12px; padding: 8px 14px; display: inline-block; }
.footer__logo img { height: 34px; width: auto; }
.footer__brand p { margin-top: 14px; font-size: 14px; line-height: 1.65; max-width: 34ch; }
.footer h3 { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: #fff; margin-bottom: 14px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.09);
  padding-block: 22px; display: flex; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--on-dark-dim);
}
.footer__bottom a { color: var(--on-dark-dim); }

/* --------------------------------------------------------------- pages --- */

.page-hero { padding-block: clamp(44px, 5vw, 68px) clamp(24px, 3vw, 36px); }
.page-hero h1 { margin-bottom: 16px; }
.page-hero .lede { max-width: 62ch; }

.prose { font-size: 1.0625rem; line-height: 1.75; color: var(--body); }
.prose h2 { color: var(--ink); margin: 2em 0 .6em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { color: var(--ink); margin: 1.6em 0 .5em; }
.prose ul, .prose ol { padding-left: 1.25em; margin: 0 0 1em; }
.prose li { margin-bottom: .5em; }
.prose a { text-decoration: underline; text-underline-offset: 2px; }

.breadcrumbs { font-size: 13.5px; color: var(--muted); padding-top: 20px; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.breadcrumbs li::after { content: "/"; margin-left: 8px; color: var(--line-strong); }
.breadcrumbs li:last-child::after { content: ""; }
.breadcrumbs a { color: var(--muted); font-weight: 600; }
.breadcrumbs a:hover { color: var(--teal); }

.notice-box {
  background: var(--teal-tint); border-left: 4px solid var(--teal);
  border-radius: 0 12px 12px 0; padding: 18px 22px; margin: 24px 0;
  font-size: 14.5px; color: var(--ink);
}

/* -------------------------------------------------------------- utility --- */

.stack   { display: flex; flex-direction: column; }
.gap-8   { gap: 8px; }  .gap-12 { gap: 12px; } .gap-16 { gap: 16px; }
.gap-24  { gap: 24px; } .gap-32 { gap: 32px; }
.center  { text-align: center; }
.mt-24   { margin-top: 24px; }
.hidden  { display: none !important; }

.plan__name {
  margin: -6px 0 0; font-size: 12.5px; font-weight: 700;
  letter-spacing: .02em; text-transform: uppercase; color: var(--muted);
}

/* Must out-specify `.footer ul`, which sets flex-direction: column. */
.footer .footer__legal {
  display: flex; flex-direction: row; gap: 20px; flex-wrap: wrap;
  list-style: none; margin: 0; padding: 0;
}
