/*
 * /free-numbers/<service> — the service pages.
 *
 * Scoped entirely under .fnapp so it cannot reach the navbar, the footer or
 * any other template's markup. The country pages carry their styling inline
 * across 3,800 lines; this estate keeps it in one file instead, so a change to
 * how a section looks is one edit rather than a search.
 *
 * DESIGN NOTE — WHAT THIS PAGE IS
 * --------------------------------
 * It is a supply report, not a landing page. The one thing here that no
 * competitor can print is a count of codes that actually arrived, per country,
 * in the last thirty days. So the delivery table is the only framed, elevated
 * element on the page and everything else is quiet: plain sections divided by
 * a hairline and space, headings that carry the hierarchy, no decoration.
 *
 * The first version boxed all eight sections in identical white rounded cards
 * and accented everything in #2563eb. That is the default component kit and it
 * was also OFF-BRAND — the shell around it is teal — so the page read as two
 * designs stacked on each other. Everything here is now the house teal, taken
 * DARK ENOUGH TO PASS AA as text (#00695c is 6.6:1 on white; the shell's
 * #019688 is 3.7:1 and is used only for rules, bars and fills, never for type).
 *
 * Deliberately no framework and no web font. The shell already pulls a
 * stylesheet from a third-party CDN, and this estate is the site's biggest
 * organic template; nothing here should be the thing that costs it a metric.
 * The type idea lives in the figures instead: every number on this page is set
 * in tabular, slashed-zero digits so the price and delivery columns read as a
 * ledger rather than as prose that happens to contain numerals.
 */

.fnapp {
  --ink: #12211f;
  --ink-2: #4a5c59;
  --ink-3: #6d807c;
  --brand: #00695c;        /* 6.6:1 on white — safe for text and buttons */
  --brand-deep: #00433a;
  --brand-bright: #019688; /* the shell's teal — fills and rules only */
  --tint: #e8f4f2;
  --paper: #f5f8f7;
  --line: #dbe5e3;
  --line-soft: #eaf1ef;
  --warn-ink: #7a4a06;
  --warn-bg: #fff8ea;
  --warn-line: #f0dcb4;
  --radius: 10px;

  box-sizing: border-box;
  max-width: 1080px;
  margin: 0 auto;
  padding: 20px 20px 72px;
  color: var(--ink);
  /* Stated, not inherited. The shell's only reset arrives from a third-party
     CDN; if that request is slow or blocked this page still has to set its own
     type, and the measure below is calculated against this stack. */
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-text-size-adjust: 100%;
}
.fnapp *, .fnapp *::before, .fnapp *::after { box-sizing: border-box; }

/*
 * The body carried max-width:1080px, which boxed the SHARED navbar and footer
 * at 1080px on this page and only this page — the trust bar stopped short of
 * the window edge here and ran full width everywhere else on the site. The
 * measure belongs to .fnapp, which is this template's own markup.
 */
.fnapp-page { margin: 0; }

.fnapp :focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  border-radius: 4px;
}
/* The skip link sits OUTSIDE .fnapp, so it cannot read the tokens above. */
.fnapp-skip:focus-visible {
  outline: 2px solid #00433a;
  outline-offset: 2px;
}

.fnapp-skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: #00695c;
  color: #fff;
  padding: 10px 16px;
  font-weight: 600;
  text-decoration: none;
}
.fnapp-skip:focus { left: 8px; top: 8px; }

.fnapp-sr {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

/*
 * The JS hides things by setting the `hidden` property, and `hidden` is only a
 * UA-stylesheet `display:none` — so ANY author `display` here silently beats
 * it. Two things broke on that: the sort/filter bar (`display:flex`) showed on
 * a no-JS page as dead controls, and on a phone a filtered-out row
 * (`display:grid` under 700px) stayed on screen. Restated as an author rule so
 * a later layout rule cannot win again.
 */
.fnapp [hidden] { display: none !important; }

/* ---- breadcrumb ---------------------------------------------------------- */

.fnapp-crumb {
  font-size: 13px;
  color: var(--ink-3);
  margin-bottom: 22px;
}
.fnapp-crumb a { color: var(--ink-3); text-decoration: none; }
.fnapp-crumb a:hover { color: var(--brand); text-decoration: underline; }
.fnapp-crumb span { margin: 0 7px; color: #c3d2cf; }
.fnapp-crumb b { color: var(--ink); font-weight: 600; }

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

.fnapp-hero { margin: 0 0 40px; max-width: 44rem; }
.fnapp-hero h1 {
  font-size: clamp(30px, 4.4vw, 44px);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.022em;
  margin: 0 0 18px;
  color: var(--ink);
  text-wrap: balance;
}
.fnapp-answer {
  font-size: 17.5px;
  line-height: 1.62;
  color: var(--ink-2);
  border-left: 3px solid var(--brand-bright);
  padding: 2px 0 2px 18px;
  margin: 0 0 16px;
}
.fnapp-hero p { max-width: 42rem; }

/* ---- sections -----------------------------------------------------------
 * A plain section on the page ground, opened by a hairline. Not a card: eight
 * identical boxes flatten the hierarchy and hand the reader no clue about
 * which one matters.
 */

.fnapp-card {
  border-top: 1px solid var(--line);
  padding: 30px 0 0;
  margin: 0 0 38px;
}
.fnapp-h2 {
  font-size: clamp(21px, 2.5vw, 27px);
  font-weight: 700;
  letter-spacing: -0.016em;
  line-height: 1.25;
  margin: 0 0 10px;
  text-wrap: balance;
}
.fnapp-card h3 { font-size: 17px; font-weight: 700; margin: 22px 0 6px; }
.fnapp-sub { color: var(--ink-2); margin: 0 0 18px; max-width: 46rem; }
.fnapp-sub--warn {
  color: var(--warn-ink);
  background: var(--warn-bg);
  border: 1px solid var(--warn-line);
  border-radius: var(--radius);
  padding: 12px 16px;
}
.fnapp-li { margin: 0 0 6px; }

.fnapp-note {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink-2);
  background: var(--paper);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin: 20px 0 0;
  max-width: 52rem;
}
.fnapp-note--warn {
  background: var(--warn-bg);
  border: 1px solid var(--warn-line);
  color: var(--warn-ink);
}
.fnapp-note b { color: inherit; }

/* ---- the shared pool ----------------------------------------------------- */

.fnapp-pool {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(232px, 1fr));
  gap: 12px;
}
.fnapp-pool li {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px 12px;
  background: #fff;
}
.fnapp-pool__where {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 6px;
  font-size: 12.5px;
  color: var(--ink-3);
  letter-spacing: 0.01em;
}
.fnapp-pool__where img {
  width: 20px; height: 14px;
  object-fit: cover;
  border-radius: 2px;
  flex: none;
}
.fnapp-pool__num {
  margin: 0 0 12px;
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums slashed-zero;
}
.fnapp-pool__act { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
/* The server-rendered placeholder the copy button is written into. display:
   contents so the BUTTON is the flex item here, not an extra wrapper box. */
.fnapp-copy { display: contents; }
.fnapp-copybtn {
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--brand);
  background: var(--tint);
  border: 1px solid transparent;
  border-radius: 7px;
  padding: 5px 12px;
  cursor: pointer;
}
.fnapp-copybtn:hover { background: #d6ebe7; }
.fnapp-copybtn.is-done { background: var(--brand); color: #fff; }
.fnapp-inbox {
  font-size: 13px;
  font-weight: 600;
  color: var(--brand);
  text-decoration: none;
  border-bottom: 1px solid #a9d3cd;
  padding-bottom: 1px;
}
.fnapp-inbox:hover { color: var(--brand-deep); border-bottom-color: var(--brand); }
.fnapp-poolnote { font-size: 13.5px; color: var(--ink-3); margin: 0; }

/* ---- the delivery table: the one framed thing on the page ---------------- */

.fnapp-card--data {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  padding: 26px 26px 24px;
  box-shadow: 0 1px 2px rgba(18, 33, 31, .04), 0 8px 28px -18px rgba(18, 33, 31, .28);
}

.fnapp-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 0 0 18px;
  font-size: 13.5px;
  color: var(--ink-3);
}
.fnapp-meta b { color: var(--ink); font-weight: 700; font-variant-numeric: tabular-nums; }
/* Spaced, not dot-separated: three short facts read as a strip of figures
   rather than as one run-on sentence chopped up by punctuation. */
.fnapp-meta span { display: inline-block; }

.fnapp-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 14px;
}
.fnapp-find { flex: 1 1 200px; max-width: 280px; display: block; }
.fnapp-find input {
  font: inherit;
  font-size: 14px;
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
}
.fnapp-find input::placeholder { color: var(--ink-3); }
.fnapp-find input:focus { border-color: var(--brand); outline-offset: 1px; }

.fnapp-sortset { display: flex; gap: 4px; background: var(--paper); border-radius: 9px; padding: 3px; }
.fnapp-sortset button {
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
  background: transparent;
  border: 0;
  border-radius: 7px;
  padding: 6px 12px;
  cursor: pointer;
  white-space: nowrap;
}
.fnapp-sortset button:hover { color: var(--brand); }
.fnapp-sortset button[aria-pressed="true"] {
  background: #fff;
  color: var(--brand);
  box-shadow: 0 1px 2px rgba(18, 33, 31, .12);
}

.fnapp-tablewrap { overflow-x: auto; }
.fnapp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
.fnapp-table th,
.fnapp-table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line-soft); }
.fnapp-table th:first-child, .fnapp-table td:first-child { padding-left: 0; }
.fnapp-table th:last-child, .fnapp-table td:last-child { padding-right: 0; }

/*
 * includes-web/head.php ships a bare `thead { background:#019688; color:#fff }`
 * in an inline block on every page in the shell. This table's header inherited
 * that fill and then set its own grey type on top of it — #64748b on #019688 is
 * 1.3:1, so the column headings were, in practice, invisible. Both properties
 * are set explicitly here rather than left to whichever rule wins.
 */
.fnapp-table thead th {
  background: #fff;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-3);
  letter-spacing: 0.01em;
  text-transform: none;
  border-bottom: 1px solid var(--line);
  vertical-align: bottom;
  white-space: nowrap;
}
.fnapp-table thead th span { display: block; font-weight: 400; color: #90a29e; font-size: 11.5px; }
.fnapp-table tbody tr:hover { background: #fafcfb; }
.fnapp-table tbody tr:last-child td { border-bottom: 0; }
/* :not(.fnapp-btn) matters — this selector is one class more specific than
   .fnapp-btn, so without it the Buy column's white button text was repainted
   brand teal ON the brand teal fill and every button read as an empty pill. */
.fnapp-table a:not(.fnapp-btn) { color: var(--brand); text-decoration: none; font-weight: 600; }
.fnapp-table a:not(.fnapp-btn):hover { text-decoration: underline; }

.fnapp-price {
  font-weight: 700;
  font-variant-numeric: tabular-nums slashed-zero;
  white-space: nowrap;
  letter-spacing: -0.01em;
}
.fnapp-num { color: var(--ink-2); width: 30%; }
.fnapp-num__v { font-variant-numeric: tabular-nums slashed-zero; font-size: 14px; }
/* The bar is a rank cue beside the exact figure, never instead of it. */
.fnapp-bar {
  display: block;
  height: 5px;
  border-radius: 3px;
  background: var(--line-soft);
  margin: 0 0 5px;
  overflow: hidden;
}
.fnapp-bar i { display: block; height: 100%; background: var(--brand-bright); border-radius: 3px; }
/* td.fnapp-go, not .fnapp-go: the generic `.fnapp-table td` rule above sets
   text-align:left and is one element more specific, so the plain class lost
   and every Buy button sat at the LEFT edge of a 242px column. */
.fnapp-table td.fnapp-go { text-align: right; white-space: nowrap; }
.fnapp-empty { margin: 18px 0 0; color: var(--ink-2); font-size: 14.5px; }

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

.fnapp-btn {
  display: inline-block;
  background: var(--brand);
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  line-height: 1.35;
  padding: 11px 20px;
  border-radius: 8px;
  text-decoration: none;
  border: 1px solid var(--brand);
}
.fnapp-btn:hover { background: var(--brand-deep); border-color: var(--brand-deep); color: #fff; text-decoration: none; }
.fnapp-btn--sm { padding: 7px 14px; font-size: 13.5px; }
.fnapp-btn--ghost { background: #fff; color: var(--brand); border-color: var(--line); }
.fnapp-btn--ghost:hover { background: var(--paper); color: var(--brand-deep); border-color: #b9cfcb; }

/* ---- the three routes ---------------------------------------------------- */

.fnapp-routes { display: grid; grid-template-columns: repeat(auto-fit, minmax(238px, 1fr)); gap: 16px; }
.fnapp-route {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
}
.fnapp-route--best { border-color: var(--brand); background: #fbfdfd; }
.fnapp-route h3 { margin: 0 0 6px; font-size: 16px; }
.fnapp-route p { font-size: 14.5px; color: var(--ink-2); margin: 0 0 14px; }
.fnapp-route__price {
  font-size: 22px;
  font-weight: 800;
  color: var(--ink) !important;
  margin: 0 0 10px !important;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums slashed-zero;
}
.fnapp-route .fnapp-btn { margin-top: auto; text-align: center; }

/* ---- owner prose --------------------------------------------------------- */

.fnapp-prose { max-width: 44rem; }
.fnapp-prose p { margin: 0 0 14px; }
.fnapp-prose h3 { margin: 24px 0 8px; }
.fnapp-prose ul, .fnapp-prose-list { margin: 0 0 14px; padding-left: 22px; }
.fnapp-prose li { margin: 0 0 6px; }
.fnapp-prose strong { font-weight: 650; }

/* ---- steps --------------------------------------------------------------- */

.fnapp-steps { margin: 0; padding-left: 24px; max-width: 46rem; }
.fnapp-steps li { margin: 0 0 12px; padding-left: 4px; }
.fnapp-steps li::marker { color: var(--brand); font-weight: 700; }

/* ---- questions ----------------------------------------------------------- */

.fnapp-faqs { max-width: 48rem; }
.fnapp-faqs details { border-bottom: 1px solid var(--line-soft); padding: 14px 0; }
.fnapp-faqs details:last-child { border-bottom: 0; }
.fnapp-faqs summary {
  cursor: pointer;
  font-weight: 650;
  font-size: 16px;
  list-style: none;
  display: flex;
  gap: 12px;
  align-items: baseline;
}
.fnapp-faqs summary::-webkit-details-marker { display: none; }
.fnapp-faqs summary::before {
  content: "+";
  color: var(--brand);
  font-weight: 700;
  flex: none;
  width: 12px;
}
.fnapp-faqs details[open] summary::before { content: "\2212"; }
.fnapp-faqs summary:hover { color: var(--brand); }
.fnapp-faqs p { margin: 10px 0 0 24px; color: var(--ink-2); }

/* ---- cross-links --------------------------------------------------------- */

.fnapp-next { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 26px; }
.fnapp-next ul { list-style: none; margin: 0; padding: 0; }
.fnapp-next li { margin: 0 0 8px; }
.fnapp-next a { color: var(--brand); text-decoration: none; }
.fnapp-next a:hover { text-decoration: underline; }
.fnapp-next__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 6px 16px; }

/* ---- small screens -------------------------------------------------------
 * The table used to scroll horizontally inside its card, and the Buy column
 * was the one that fell off the edge — so on a phone, on the page's only
 * commercial block, the button was invisible until you thought to swipe a
 * table sideways. Below 700px each row becomes its own block and the button
 * is always in view.
 */

@media (max-width: 700px) {
  .fnapp { padding: 16px 16px 56px; font-size: 15.5px; }
  .fnapp-card { padding-top: 26px; margin-bottom: 32px; }
  .fnapp-card--data { padding: 20px 16px; border-radius: 12px; }

  .fnapp-tablewrap { overflow-x: visible; }
  .fnapp-table, .fnapp-table tbody, .fnapp-table tr, .fnapp-table td { display: block; width: auto; }
  .fnapp-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .fnapp-table tr {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 14px 16px;
    margin: 0 0 10px;
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas: "c p" "n b";
    align-items: center;
    gap: 6px 12px;
  }
  .fnapp-table tbody tr:hover { background: #fff; }
  .fnapp-table td { border: 0; padding: 0; }
  .fnapp-table td:first-child { grid-area: c; font-size: 16px; font-weight: 600; }
  .fnapp-table .fnapp-price { grid-area: p; text-align: right; font-size: 16px; }
  .fnapp-table .fnapp-num { grid-area: n; width: auto; font-size: 13px; }
  .fnapp-table .fnapp-num::before { content: attr(data-label) ": "; color: var(--ink-3); }
  .fnapp-table .fnapp-bar { display: none; }
  .fnapp-table td.fnapp-go { grid-area: b; text-align: right; }
  .fnapp-table td.fnapp-go .fnapp-btn { padding: 9px 18px; font-size: 14.5px; }

  .fnapp-tools { justify-content: stretch; }
  .fnapp-find { max-width: none; }
  .fnapp-sortset { width: 100%; justify-content: space-between; }
  .fnapp-sortset button { flex: 1; text-align: center; padding: 8px 6px; }
}

@media (prefers-reduced-motion: reduce) {
  .fnapp *, .fnapp *::before, .fnapp *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
