/* ==========================================================================
   AirGo Tel — shared service-page styles
   Used by /international-calling, /mobile-recharge and /travel-esim, which
   share the same breadcrumb, hero, form-control, notice, step, benefit, FAQ
   and final-CTA patterns. Loaded after design-tokens.css + base.css.
   ========================================================================== */

/* ---------- Breadcrumbs ---------- */

.ag-crumbs {
  max-width: var(--ag-content-max);
  margin: 0 auto;
  padding: 16px var(--ag-gutter) 0;
  font-size: 13px;
  color: var(--ag-muted);
  font-weight: 600;
}
.ag-crumbs a { color: var(--ag-muted); }
.ag-crumbs a:hover { color: var(--ag-navy); }
.ag-crumbs__sep { opacity: .5; }
.ag-crumbs__current { color: var(--ag-navy); font-weight: 700; }

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

.ag-shero {
  max-width: var(--ag-content-max);
  margin: 0 auto;
  padding: 26px var(--ag-gutter) 8px;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 40px;
  align-items: center;
}

.ag-shero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--ag-azure-100);
  border: 1px solid var(--ag-azure-200);
  color: #0E7A8C;
  font-size: 13px;
  font-weight: 800;
  padding: 7px 13px;
  border-radius: var(--ag-radius-pill);
  margin-bottom: 20px;
}
.ag-shero__badge svg { width: 15px; height: 15px; color: var(--ag-navy); }

.ag-shero h1 {
  font-size: 48px;
  font-weight: 800;
  margin-bottom: 16px;
  text-wrap: balance;
}

.ag-shero__lead {
  font-size: 18px;
  color: var(--ag-muted);
  max-width: 500px;
  margin-bottom: 26px;
  line-height: 1.55;
}

.ag-shero__ctas { display: flex; gap: 12px; flex-wrap: wrap; }

/* Dark side panel */
.ag-spanel {
  background: linear-gradient(140deg, #0B2038, #123C7A);
  border-radius: var(--ag-radius-2xl);
  padding: 30px;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.ag-spanel__dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(143, 194, 255, .15) 1.3px, transparent 1.3px);
  background-size: 26px 26px;
  opacity: .5;
  pointer-events: none;
}
.ag-spanel__inner { position: relative; }
.ag-spanel__title {
  font-size: 13px;
  color: #9EB1C4;
  font-weight: 700;
  margin-bottom: 14px;
}

.ag-spanel__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.ag-spanel__row:last-child { border-bottom: 0; }
.ag-spanel__row-name {
  display: flex;
  align-items: center;
  gap: 11px;
  font-weight: 700;
  font-size: 15px;
}
.ag-spanel__row-name img { width: 22px; height: 15px; border-radius: 2px; flex-shrink: 0; }
.ag-spanel__row-value { font-weight: 800; color: var(--ag-azure-400); font-size: 13.5px; }

/* ---------- Panel / card shell ---------- */

.ag-panel {
  background: var(--ag-card);
  border: var(--ag-border);
  border-radius: var(--ag-radius-2xl);
  box-shadow: 0 20px 50px rgba(11, 32, 56, .08);
  padding: 28px;
}
.ag-panel h2 { font-size: 24px; font-weight: 800; margin-bottom: 4px; }
.ag-panel__sub { color: var(--ag-muted); font-size: 14.5px; margin-bottom: 20px; }

.ag-plain {
  background: var(--ag-card);
  border: var(--ag-border);
  border-radius: 20px;
  padding: 28px;
}
.ag-plain h2 { font-size: 24px; font-weight: 800; margin-bottom: 6px; }
.ag-plain__sub { color: var(--ag-muted); font-size: 14.5px; margin-bottom: 20px; }

/* ---------- Form controls (COMPONENT-STATES.md) ---------- */

.ag-field { display: block; }

.ag-label {
  display: block;
  font-size: 13px;
  font-weight: 800;
  color: var(--ag-slate);
  margin-bottom: 7px;
}

.ag-control,
.ag-static {
  width: 100%;
  background: var(--ag-page);
  border: var(--ag-border-emphasis);
  border-radius: 12px;
  padding: 13px 14px;
  font-weight: 700;
  color: var(--ag-navy);
  font-size: 15px;
  outline: none;
}
.ag-control { cursor: pointer; }
.ag-control:focus { border-color: var(--ag-azure); }
.ag-control:disabled {
  background: var(--ag-page);
  color: var(--ag-faint);
  cursor: not-allowed;
}

.ag-static { display: flex; align-items: center; gap: 9px; }
.ag-static img { width: 22px; height: 15px; border-radius: 2px; flex-shrink: 0; }

.ag-help { font-size: 12.5px; color: var(--ag-faint); margin-top: 6px; }

/* Segmented toggle */
.ag-seg {
  display: flex;
  gap: 6px;
  background: var(--ag-hover-fill);
  padding: 4px;
  border-radius: 10px;
}
.ag-seg__btn {
  border: 0;
  padding: 9px 16px;
  border-radius: var(--ag-radius-sm);
  font-weight: 800;
  font-size: 13.5px;
  cursor: pointer;
  background: transparent;
  color: var(--ag-muted);
  min-height: 40px;
}
.ag-seg__btn[aria-pressed="true"] { background: var(--ag-navy); color: #fff; }

/* ---------- Result states ---------- */

.ag-state { margin-top: 20px; }
.ag-state > [hidden] { display: none; }

/* Idle / empty — dashed frame, icon, explanation, recovery action */
.ag-empty {
  border: 1px dashed var(--ag-line-strong);
  border-radius: var(--ag-radius-xl);
  padding: 34px;
  text-align: center;
  color: var(--ag-faint);
}
.ag-empty__icon { display: flex; justify-content: center; margin-bottom: 10px; }
.ag-empty__icon svg { width: 32px; height: 32px; color: var(--ag-navy); }
.ag-empty__title { font-size: var(--ag-text-base); font-weight: 700; color: var(--ag-muted); }
.ag-empty__sub { font-size: 13.5px; color: var(--ag-faint); margin-top: 6px; }
.ag-empty__action { display: inline-block; margin-top: 14px; font-size: 13.5px; font-weight: 800; }

/* Loading skeleton row */
.ag-loading {
  border: var(--ag-border);
  border-radius: var(--ag-radius-xl);
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.ag-spinner {
  width: 26px;
  height: 26px;
  border: 3px solid var(--ag-line);
  border-top-color: var(--ag-azure);
  border-radius: 50%;
  animation: agSpin .8s linear infinite;
  flex-shrink: 0;
}
@keyframes agSpin { to { transform: rotate(360deg); } }
.ag-loading__title { font-weight: 800; color: var(--ag-navy); }
.ag-loading__sub { font-size: 13px; color: var(--ag-muted); }

/* Notice variants — info / warning / error */
.ag-notice {
  border-radius: var(--ag-radius-xl);
  padding: 22px;
  animation: agIn .3s ease;
  display: flex;
  gap: 13px;
  align-items: flex-start;
}
.ag-notice__icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ag-notice__icon svg { width: 20px; height: 20px; }
.ag-notice__title { font-size: 16px; font-weight: 800; color: var(--ag-navy); margin-bottom: 5px; }
.ag-notice__body { font-size: 14px; line-height: 1.5; }
.ag-notice__action {
  display: inline-block;
  margin-top: 12px;
  font-size: 13.5px;
  font-weight: 800;
  border: 0;
  border-radius: 10px;
  padding: 11px 18px;
  cursor: pointer;
}

.ag-notice--info { border: 1px solid var(--ag-azure-200); background: linear-gradient(120deg, var(--ag-azure-50), #fff); }
.ag-notice--info .ag-notice__icon { background: var(--ag-azure-100); color: var(--ag-azure-600); }
.ag-notice--info .ag-notice__body { color: var(--ag-muted); }

.ag-notice--warning { border: 1px solid var(--ag-warning-border); background: var(--ag-warning-surface); }
.ag-notice--warning .ag-notice__icon { background: #FDECCB; color: var(--ag-warning); }
.ag-notice--warning .ag-notice__body { color: var(--ag-warning-text); }
.ag-notice--warning .ag-notice__action { background: var(--ag-navy); color: #fff; }

.ag-notice--error { border: 1px solid var(--ag-error-border); background: var(--ag-error-surface); }
.ag-notice--error .ag-notice__icon { background: #FBD9DA; color: var(--ag-error); }
.ag-notice--error .ag-notice__body { color: var(--ag-error-text); }
.ag-notice--error .ag-notice__action { background: var(--ag-error); color: #fff; }

/* Availability pill */
.ag-pill-ok {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--ag-success-surface);
  color: var(--ag-success);
  font-size: 12.5px;
  font-weight: 800;
  padding: 7px 12px;
  border-radius: var(--ag-radius-pill);
}
.ag-pill-ok__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ag-success); }

/* ---------- Two-up feature cards ---------- */

.ag-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }

.ag-duo__card {
  background: var(--ag-card);
  border: var(--ag-border);
  border-radius: 20px;
  padding: 28px;
}
.ag-duo__card--dark {
  background: var(--ag-navy);
  color: #fff;
  border-color: transparent;
  position: relative;
  overflow: hidden;
}
.ag-duo__eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  color: var(--ag-azure-600);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 10px;
}
.ag-duo__card--dark .ag-duo__eyebrow { color: var(--ag-azure-400); }
.ag-duo__card h3 { font-size: 22px; font-weight: 800; margin-bottom: 10px; }
.ag-duo__card--dark h3 { color: #fff; }
.ag-duo__card p { font-size: var(--ag-text-base); color: var(--ag-muted); line-height: 1.6; margin-bottom: 18px; }
.ag-duo__card--dark p { color: var(--ag-on-dark-body); }

.ag-ticks { display: flex; flex-direction: column; gap: 10px; }
.ag-tick {
  display: flex;
  gap: 9px;
  font-size: 14.5px;
  color: var(--ag-slate);
  font-weight: 600;
  align-items: flex-start;
}
.ag-tick svg { width: 15px; height: 15px; color: var(--ag-success); flex-shrink: 0; margin-top: 2px; }

.ag-inset {
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--ag-radius-lg);
  padding: 18px;
  margin-bottom: 16px;
}
.ag-inset__top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.ag-inset__name { font-weight: 800; font-size: 16px; }
.ag-inset__meta { font-size: 13px; color: #9EB1C4; margin-top: 6px; }

.ag-btn--onDark {
  display: block;
  text-align: center;
  font-size: 14.5px;
  font-weight: 800;
  color: var(--ag-navy);
  background: var(--ag-azure-400);
  padding: 13px;
  border-radius: var(--ag-radius-md);
}
.ag-btn--onDark:hover { background: var(--ag-azure-300); color: var(--ag-navy); }

/* ---------- Data table ---------- */

.ag-tablewrap { overflow-x: auto; }

.ag-table { width: 100%; border-collapse: collapse; }
.ag-table thead tr { border-bottom: 2px solid var(--ag-line); }
.ag-table th {
  text-align: left;
  padding: 12px 14px;
  font-size: 12.5px;
  font-weight: 800;
  color: var(--ag-faint);
  text-transform: uppercase;
  letter-spacing: .05em;
}
.ag-table th.is-num, .ag-table td.is-num { text-align: right; }
.ag-table tbody tr { border-bottom: 1px solid #EEF3F7; }
.ag-table td { padding: 14px; font-weight: 700; color: var(--ag-navy); }
.ag-table td.is-num { font-family: var(--ag-font-display); font-weight: 800; }
.ag-table__country { display: flex; align-items: center; gap: 10px; }
.ag-table__country img { width: 20px; height: 14px; border-radius: 2px; flex-shrink: 0; }

.ag-tablenote {
  font-size: 12px;
  color: var(--ag-faint);
  margin-top: 14px;
  font-style: italic;
}

/* ---------- Dark step band ---------- */

.ag-band { background: var(--ag-navy); color: #fff; margin-top: 16px; }
.ag-band__inner {
  max-width: var(--ag-content-max);
  margin: 0 auto;
  padding: 56px var(--ag-gutter);
}
.ag-band h2 { font-size: 30px; font-weight: 800; text-align: center; margin-bottom: 38px; color: #fff; }

.ag-stepgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }

.ag-step {
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--ag-radius-xl);
  padding: 22px;
}
.ag-step__n {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: linear-gradient(140deg, #1F73F1, #1A5FCC);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ag-font-display);
  font-weight: 800;
  margin-bottom: 14px;
}
/* Recharge uses the coral ramp for its step numbers. */
.ag-step__n--coral { background: linear-gradient(140deg, #FF5C39, #FF8A5B); }

.ag-step h3 { font-size: 16px; font-weight: 800; margin-bottom: 6px; color: #fff; }
.ag-step p { font-size: 13.5px; color: #9EB1C4; line-height: 1.5; }

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

.ag-benefits {
  max-width: var(--ag-content-max);
  margin: 0 auto;
  padding: 48px var(--ag-gutter) 20px;
}
.ag-benefits > h2 { font-size: 28px; font-weight: 800; text-align: center; margin-bottom: 32px; }

.ag-benefit {
  background: var(--ag-card);
  border: var(--ag-border);
  border-radius: var(--ag-radius-xl);
  padding: 24px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.ag-benefit__icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 12px;
  background: var(--ag-azure-100);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ag-azure-600);
}
.ag-benefit__icon svg { width: 21px; height: 21px; }
.ag-benefit h3 { font-size: 16px; font-weight: 800; margin-bottom: 5px; }
.ag-benefit p { font-size: 13.5px; color: var(--ag-muted); line-height: 1.5; }

/* ---------- Destination link tiles ---------- */

.ag-tiles {
  max-width: var(--ag-content-max);
  margin: 0 auto;
  padding: 28px var(--ag-gutter);
}
.ag-tiles > h2 { font-size: 28px; font-weight: 800; margin-bottom: 22px; }

.ag-tile {
  background: var(--ag-card);
  border: var(--ag-border);
  border-radius: var(--ag-radius-lg);
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  transition: border-color var(--ag-motion-base), box-shadow var(--ag-motion-base);
}
.ag-tile:hover { border-color: var(--ag-azure); box-shadow: 0 12px 26px rgba(11, 32, 56, .08); }
.ag-tile__name {
  display: flex;
  align-items: center;
  gap: 11px;
  font-weight: 800;
  color: var(--ag-navy);
  font-size: var(--ag-text-base);
}
.ag-tile__name img { width: 24px; height: 16px; border-radius: 2px; flex-shrink: 0; }
.ag-tile__go { font-weight: 800; color: var(--ag-azure-600); font-size: 13px; flex-shrink: 0; }

/* ---------- App band ---------- */

.ag-appband {
  max-width: var(--ag-content-max);
  margin: 24px auto;
  padding: 0 var(--ag-gutter);
}
.ag-appband__panel {
  background: linear-gradient(120deg, #123C7A, #0B2038);
  border-radius: var(--ag-radius-2xl);
  padding: 44px;
  color: #fff;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 24px;
  align-items: center;
}
.ag-appband__panel h2 { font-size: 30px; font-weight: 800; margin-bottom: 12px; color: #fff; }
.ag-appband__lead {
  font-size: 16px;
  color: var(--ag-on-dark-body);
  margin-bottom: 22px;
  line-height: 1.55;
}
.ag-appband__badges { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }

.ag-storechip {
  background: #000;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 12px;
  padding: 11px 18px;
  font-weight: 700;
  font-size: 14px;
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  opacity: .55;
}
.ag-storechip svg { width: 15px; height: 15px; flex-shrink: 0; }

.ag-appband__soon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(143, 194, 255, .14);
  border: 1px solid rgba(143, 194, 255, .3);
  color: var(--ag-azure-300);
  font-size: 13.5px;
  font-weight: 800;
  padding: 11px 18px;
  border-radius: var(--ag-radius-pill);
}
.ag-appband__note { font-size: 12px; color: var(--ag-on-dark-muted); margin-top: 12px; }

.ag-appband__qr { display: flex; justify-content: center; }
.ag-qr {
  width: 96px;
  height: 96px;
  background: #fff;
  border: 2px dashed var(--ag-line-strong);
  border-radius: var(--ag-radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 9px;
  font-weight: 800;
  color: var(--ag-faint);
  line-height: 1.3;
  padding: 6px;
}

/* ---------- FAQ ---------- */

.ag-sfaq {
  max-width: 840px;
  margin: 0 auto;
  padding: 36px var(--ag-gutter) 48px;
}
.ag-sfaq > h2 { font-size: 28px; font-weight: 800; text-align: center; margin-bottom: 26px; }

.ag-sfaq__list { display: flex; flex-direction: column; gap: 12px; }

.ag-faq__item {
  background: var(--ag-card);
  border: var(--ag-border);
  border-radius: var(--ag-radius-lg);
  overflow: hidden;
}
.ag-faq__q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  background: transparent;
  border: 0;
  cursor: pointer;
  text-align: left;
}
.ag-faq__q:hover { background: #FAFCFD; }
.ag-faq__q-text { font-size: 15.5px; font-weight: 800; color: var(--ag-navy); }
.ag-faq__sign {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: var(--ag-radius-sm);
  background: var(--ag-hover-fill);
  color: var(--ag-azure-600);
  font-size: 19px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ag-faq__a {
  padding: 0 20px 18px;
  font-size: 14px;
  color: var(--ag-muted);
  line-height: 1.6;
  animation: agIn .2s ease;
}
.ag-faq__a[hidden] { display: none; }

/* ---------- Final CTA ---------- */

.ag-scta {
  max-width: var(--ag-content-max);
  margin: 0 auto 20px;
  padding: 0 var(--ag-gutter);
}
.ag-scta__panel {
  background: var(--ag-gradient-action);
  border-radius: var(--ag-radius-2xl);
  padding: 52px 40px;
  text-align: center;
  color: #fff;
}
.ag-scta__panel h2 { font-size: 34px; font-weight: 800; margin-bottom: 12px; color: #fff; }
.ag-scta__panel p {
  font-size: 17px;
  color: rgba(255, 255, 255, .92);
  max-width: 480px;
  margin: 0 auto 26px;
}
.ag-scta__ctas { display: flex; gap: 13px; justify-content: center; flex-wrap: wrap; }
.ag-scta__btn {
  font-size: 15.5px;
  font-weight: 800;
  padding: 15px 28px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.ag-scta__btn--white { color: var(--ag-coral); background: #fff; }
.ag-scta__btn--white:hover { background: #FFF3EE; color: var(--ag-coral); }
.ag-scta__btn--ghost {
  color: #fff;
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .4);
}
.ag-scta__btn--ghost:hover { background: rgba(255, 255, 255, .26); color: #fff; }

/* ==========================================================================
   Responsive — per RESPONSIVE.md and the prototypes' own media queries
   ========================================================================== */

@media (max-width: 1024px) {
  .ag-shero { grid-template-columns: 1fr; }
  .ag-duo { grid-template-columns: 1fr; }
  .ag-stepgrid { grid-template-columns: repeat(2, 1fr); }
  .ag-appband__panel { grid-template-columns: 1fr; }
  .ag-appband__qr { justify-content: flex-start; }
}

@media (max-width: 820px) {
  .ag-shero h1 { font-size: 38px; }
  .ag-band h2 { font-size: 26px; }
  .ag-appband__panel { padding: 32px 24px; }
  .ag-appband__panel h2 { font-size: 26px; }
  .ag-scta__panel h2 { font-size: 28px; }
}

/* Hit targets: minimum 44x44 on mobile (HANDOFF.md §4, RESPONSIVE.md). */
@media (max-width: 768px) {
  .ag-seg__btn,
  .ag-control,
  .ag-notice__action {
    min-height: 44px;
  }

  .ag-empty__action {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 4px;
  }
}

/* Tables become stacked cards — no horizontal scrolling for primary data. */
@media (max-width: 760px) {
  .ag-tablewrap { overflow-x: visible; }
  .ag-table, .ag-table tbody, .ag-table tr, .ag-table td { display: block; width: 100%; }
  .ag-table thead { display: none; }
  .ag-table tbody tr {
    border: var(--ag-border);
    border-radius: var(--ag-radius-lg);
    padding: 14px;
    margin-bottom: 12px;
  }
  .ag-table td { padding: 6px 0; text-align: left !important; }
  .ag-table td[data-label]::before {
    content: attr(data-label);
    display: block;
    font-size: 11.5px;
    font-weight: 800;
    color: var(--ag-faint);
    text-transform: uppercase;
    letter-spacing: .05em;
    margin-bottom: 2px;
  }
}

@media (max-width: 620px) {
  .ag-stepgrid { grid-template-columns: 1fr; }
  .ag-shero h1 { font-size: 32px; }
  .ag-shero__lead { font-size: 16.5px; }
  .ag-shero__ctas .ag-btn { width: 100%; }
  .ag-panel, .ag-plain, .ag-duo__card { padding: 22px 18px; }
  .ag-scta__panel { padding: 40px 22px; }
  .ag-scta__btn { width: 100%; }
}

@media (max-width: 520px) {
  .ag-empty { padding: 26px 18px; }
  .ag-notice { flex-direction: column; gap: 12px; }
}
