/*
 * /temp-number/<service> — the service pages.
 *
 * Scoped entirely under .tnapp 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 page about TIME. Every question its visitor arrives with is about
 * how long the number lives, what happens when the window shuts, and whether
 * they are charged when nothing comes. So the lifecycle rail is the one bold,
 * framed thing here and everything else is quiet — the mirror image of the
 * free-numbers estate, where the delivery table is the lead and the lifecycle
 * does not exist. Two pages for one brand only earn their keep while they look
 * as different as they read.
 *
 * The first version boxed six 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, rails and fills, never for type).
 *
 * Deliberately no framework and no web font. The shell already pulls a
 * stylesheet from a third-party CDN, and nothing here should be the thing that
 * costs this estate a Core Web Vitals metric. The type idea lives in the
 * figures instead: every number on the page is set in tabular, slashed-zero
 * digits, so a price column reads as a ledger and not as prose with numerals in
 * it.
 */

.tnapp {
  --ink: #101f1d;
  --ink-2: #485956;
  --ink-3: #6b7e7a;
  --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%;
}
.tnapp *, .tnapp *::before, .tnapp *::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 .tnapp, which is this template's own markup.
 */
.tnapp-page { margin: 0; }

/* There were no focus styles at all. Every control on the page is reachable by
   keyboard and none of them showed where the keyboard was. */
.tnapp :focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  border-radius: 4px;
}
/* The skip link sits OUTSIDE .tnapp, so it cannot read the tokens above. */
.tnapp-skip:focus-visible {
  outline: 2px solid #00433a;
  outline-offset: 2px;
}
.tnapp-skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: #00695c;
  color: #fff;
  padding: 10px 16px;
  font-weight: 600;
  text-decoration: none;
}
.tnapp-skip:focus { left: 8px; top: 8px; }

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

/* The JS hides rows and the tool bar by setting the `hidden` property, and
   `hidden` is only a UA-stylesheet `display:none` — so ANY author `display`
   rule silently beats it. Restated here so the small-screen `display:grid` on a
   table row below cannot un-hide a filtered-out row. */
.tnapp [hidden] { display: none !important; }

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

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

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

.tnapp-hero { margin: 0 0 40px; max-width: 44rem; }
.tnapp-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;
}
.tnapp-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 20px;
}
.tnapp-hero p { max-width: 42rem; }

/*
 * The three facts a buyer wants before reading anything: what it costs, how
 * many countries have proven delivery, and when that was measured. All three
 * are figures this request already holds; none is written unless it is real.
 */
.tnapp-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 32px;
  margin: 0 0 22px;
  padding: 16px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
}
.tnapp-facts li { margin: 0; }
.tnapp-facts b {
  display: block;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
  font-variant-numeric: tabular-nums slashed-zero;
  line-height: 1.25;
}
.tnapp-facts span { font-size: 13.5px; color: var(--ink-3); }

.tnapp-cta { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
/* Every button on this page lands on a login screen. Saying so next to the
   button is cheaper than losing the click to the surprise. */
.tnapp-ctanote { font-size: 13.5px; color: var(--ink-3); margin: 0; }

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

.tnapp-card {
  border-top: 1px solid var(--line);
  padding: 30px 0 0;
  margin: 0 0 38px;
}
.tnapp-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;
}
.tnapp-card h3 { font-size: 17px; font-weight: 700; margin: 22px 0 6px; }
.tnapp-sub { color: var(--ink-2); margin: 0 0 18px; max-width: 46rem; }
.tnapp-sub--warn {
  color: var(--warn-ink);
  background: var(--warn-bg);
  border: 1px solid var(--warn-line);
  border-radius: var(--radius);
  padding: 12px 16px;
}
.tnapp-sub--warn a { color: var(--warn-ink); font-weight: 600; }
.tnapp-li { margin: 0 0 6px; }

.tnapp-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;
}
.tnapp-note--warn {
  background: var(--warn-bg);
  border: 1px solid var(--warn-line);
  color: var(--warn-ink);
}
.tnapp-note b { color: inherit; }

/* ---- the lifecycle: this page's one bold element --------------------------
 *
 * The free-numbers estate spends its boldness on the delivery table because a
 * count of codes that actually arrived is the thing no competitor can print.
 * This page's equivalent is TIME — the four stages are the answer to every
 * question its visitor arrives with — so the rail is the framed, tinted block
 * and the table below it is left plain.
 *
 * Numbered because the content genuinely is a sequence, and the rail changes
 * at stage three: it goes from a solid line to a dashed one at exactly the
 * moment the number stops being yours. That is the fact the whole page exists
 * to communicate, drawn rather than only stated.
 */

.tnapp-card--life {
  border: 1px solid var(--line);
  border-top-color: var(--line);
  border-radius: 14px;
  background: linear-gradient(180deg, var(--tint) 0, #fff 190px);
  padding: 26px 26px 24px;
  box-shadow: 0 1px 2px rgba(16, 31, 29, .04), 0 8px 28px -18px rgba(16, 31, 29, .26);
}

.tnapp-life { list-style: none; margin: 22px 0 0; padding: 0; counter-reset: tnlife; }
.tnapp-life li {
  position: relative;
  counter-increment: tnlife;
  padding: 0 0 22px 52px;
  color: var(--ink-2);
  max-width: 46rem;
}
.tnapp-life li::before {
  content: counter(tnlife);
  position: absolute;
  left: 0;
  top: -1px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #fff;
  border: 1.5px solid var(--brand-bright);
  color: var(--brand);
  font-weight: 700;
  font-size: 14px;
  line-height: 29px;
  text-align: center;
  font-variant-numeric: tabular-nums slashed-zero;
}
.tnapp-life li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 16px;
  top: 37px;
  bottom: 4px;
  border-left: 1.5px solid var(--brand-bright);
}
/* The stage where the line stops being yours. Filled marker, dashed rail from
   here down — the break in the drawing IS the break in ownership. */
.tnapp-life .tnapp-life--end::before {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}
.tnapp-life .tnapp-life--end::after { border-left-style: dashed; border-left-color: #9dc9c3; }
.tnapp-life li b { display: block; color: var(--ink); font-weight: 700; margin-bottom: 1px; }
.tnapp-life li:last-child { padding-bottom: 0; }

/* ---- the priced table ---------------------------------------------------- */

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

.tnapp-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 14px;
}
.tnapp-find { flex: 1 1 200px; max-width: 280px; display: block; }
.tnapp-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);
}
.tnapp-find input::placeholder { color: var(--ink-3); }
.tnapp-find input:focus { border-color: var(--brand); outline-offset: 1px; }

.tnapp-sortset { display: flex; gap: 4px; background: var(--paper); border-radius: 9px; padding: 3px; }
.tnapp-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;
}
.tnapp-sortset button:hover { color: var(--brand); }
.tnapp-sortset button[aria-pressed="true"] {
  background: #fff;
  color: var(--brand);
  box-shadow: 0 1px 2px rgba(16, 31, 29, .12);
}

.tnapp-tablewrap { overflow-x: auto; }
.tnapp-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.tnapp-table th,
.tnapp-table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line-soft); }
.tnapp-table th:first-child, .tnapp-table td:first-child { padding-left: 0; }
.tnapp-table th:last-child, .tnapp-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.
 */
.tnapp-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;
}
.tnapp-table thead th span { display: block; font-weight: 400; color: #90a29e; font-size: 11.5px; }
.tnapp-table tbody tr:hover { background: #fafcfb; }
.tnapp-table tbody tr:last-child td { border-bottom: 0; }
/* :not(.tnapp-btn) matters — this selector is one class more specific than
   .tnapp-btn, so without it the Buy column's white button text is repainted
   brand teal ON the brand teal fill and every button reads as an empty pill. */
.tnapp-table a:not(.tnapp-btn) { color: var(--brand); text-decoration: none; font-weight: 600; }
.tnapp-table a:not(.tnapp-btn):hover { text-decoration: underline; }

.tnapp-price {
  font-weight: 700;
  font-variant-numeric: tabular-nums slashed-zero;
  white-space: nowrap;
  letter-spacing: -0.01em;
}
.tnapp-num { color: var(--ink-2); width: 30%; }
.tnapp-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. */
.tnapp-bar {
  display: block;
  height: 5px;
  border-radius: 3px;
  background: var(--line-soft);
  margin: 0 0 5px;
  overflow: hidden;
}
.tnapp-bar i { display: block; height: 100%; background: var(--brand-bright); border-radius: 3px; }
/* td.tnapp-go, not .tnapp-go: the generic `.tnapp-table td` rule above sets
   text-align:left and is one element more specific, so the plain class loses
   and every Buy button sits at the LEFT edge of its column. */
.tnapp-table td.tnapp-go { text-align: right; white-space: nowrap; }
.tnapp-empty { margin: 18px 0 0; color: var(--ink-2); font-size: 14.5px; }

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

.tnapp-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);
}
.tnapp-btn:hover { background: var(--brand-deep); border-color: var(--brand-deep); color: #fff; text-decoration: none; }
.tnapp-btn--sm { padding: 7px 14px; font-size: 13.5px; }
.tnapp-btn--ghost { background: #fff; color: var(--brand); border-color: var(--line); }
.tnapp-btn--ghost:hover { background: var(--paper); color: var(--brand-deep); border-color: #b9cfcb; }

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

.tnapp-routes { display: grid; grid-template-columns: repeat(auto-fit, minmax(238px, 1fr)); gap: 16px; }
.tnapp-route {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
}
/* One treatment, not two. The old rule drew a coloured border AND an inset
   ring of the same colour, which rendered as a doubled outline. */
.tnapp-route--best { border-color: var(--brand); background: #fbfdfd; }
.tnapp-route h3 { margin: 0 0 6px; font-size: 16px; }
.tnapp-route p { font-size: 14.5px; color: var(--ink-2); margin: 0 0 14px; }
.tnapp-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;
}
.tnapp-route .tnapp-btn { margin-top: auto; text-align: center; }

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

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

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

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

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

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

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

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

/* ---- small screens -------------------------------------------------------
 * The table used to scroll horizontally, 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) {
  .tnapp { padding: 16px 16px 56px; font-size: 15.5px; }
  .tnapp-card { padding-top: 26px; margin-bottom: 32px; }
  .tnapp-card--life { padding: 20px 16px; border-radius: 12px; }
  .tnapp-facts { gap: 14px 26px; }
  .tnapp-facts b { font-size: 20px; }

  .tnapp-tablewrap { overflow-x: visible; }
  .tnapp-table, .tnapp-table tbody, .tnapp-table tr, .tnapp-table td { display: block; width: auto; }
  .tnapp-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .tnapp-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;
  }
  .tnapp-table tbody tr:hover { background: #fff; }
  .tnapp-table td { border: 0; padding: 0; }
  .tnapp-table td:first-child { grid-area: c; font-size: 16px; font-weight: 600; }
  .tnapp-table .tnapp-price { grid-area: p; text-align: right; font-size: 16px; }
  .tnapp-table .tnapp-num { grid-area: n; width: auto; font-size: 13px; }
  .tnapp-table .tnapp-num::before { content: attr(data-label) ": "; color: var(--ink-3); }
  .tnapp-table .tnapp-bar { display: none; }
  .tnapp-table td.tnapp-go { grid-area: b; text-align: right; }
  .tnapp-table td.tnapp-go .tnapp-btn { padding: 9px 18px; font-size: 14.5px; }

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

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