/* PilotTrain all-exams page (.ptex), /practice-exams/: the page as a flight plan.
   1. the hero: a route map of the licences that can be planned on (pick where you are headed and
      the route lights up, a small aircraft flies it, and the way there is written out)
   2. proof   3. every exam, side by side   4. what every membership includes
   5. quick answers (links into the FAQ)   6. the closing call
   The markup is written by exams-mockup/build.py (in the project folder); pt-exams.js runs the
   planner. Without the script the map is still a map of links and the usual route is written out.
   What moves: the route draws itself once, the aircraft flies when a route is chosen, and the
   SmartKDR report arrives once when it is scrolled to (its border then turns on the compositor
   while it is on screen). Nothing else moves or repaints while the page scrolls. */

.ptex, .ptex *, .ptex *::before, .ptex *::after{box-sizing:border-box;}
.ptex{
  --ink:#0a1a2b; --text:#3d4c60; --muted:#66768a; --line:#dde5ee; --bg:#f6f8fb; --card:#fff;
  --blue:#2f7bf0; --blue-dk:#1f5fcc; --a:#5d8ce6; --b:#a9c8f5; --navy:#071320; --navy2:#0d2033;
  --dline:rgba(255,255,255,.12); --dtext:#cfdbe8; --ddim:#9fb3c8;
  width:100%; background:var(--bg); color:var(--text);
  font-family:"Inter",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
  font-size:16px; line-height:1.6; -webkit-font-smoothing:antialiased;
}

/* ---------- hold our own against the theme's global rules ---------- */
.ptex h1, .ptex h2, .ptex h3, .ptex p, .ptex ul, .ptex li, .ptex figure, .ptex figcaption{margin:0; padding:0;}
.ptex h1, .ptex h2, .ptex h3{font-family:inherit; text-transform:none; border:0; background:none;}
.ptex h1::before, .ptex h1::after, .ptex h2::before, .ptex h2::after, .ptex h3::before, .ptex h3::after{content:none; display:none;}
.ptex ul, .ptex li{list-style:none;}
.ptex svg{display:block;}
.ptex a, .ptex a:hover, .ptex a:focus, .ptex a:visited{text-decoration:none; color:inherit;}
.ptex a:focus-visible, .ptex button:focus-visible{outline:3px solid var(--a); outline-offset:3px; border-radius:10px;}
/* pictures are not links here: no hover label, no drag */
.ptex img{display:block; max-width:100%; height:auto; border:0; pointer-events:none; -webkit-user-drag:none; user-select:none;}
.ptex [hidden]{display:none !important;}
.ptex .ptex-sr{position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); clip-path:inset(50%); white-space:nowrap;}
.ptex .ptex-grad{background:linear-gradient(90deg,var(--a),var(--b)); -webkit-background-clip:text; background-clip:text; color:transparent;}
/* the site header stays at the top of the screen: a section that is jumped to stops clear of it */
.ptex [id]{scroll-margin-top:124px;}

/* ---------- buttons ---------- */
.ptex a.ptex-btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px; height:48px; padding:0 20px; border-radius:12px;
  font-size:15.5px; font-weight:700; line-height:1.2; white-space:nowrap;
  transition:transform .16s ease, box-shadow .16s ease, background .16s ease;
}
.ptex a.ptex-btn svg{width:15px; height:15px;}
.ptex a.ptex-btn--1, .ptex a.ptex-btn--1:hover, .ptex a.ptex-btn--1:focus, .ptex a.ptex-btn--1:visited{
  color:#fff; background:linear-gradient(180deg,#3b86f5,#2a6fe0); box-shadow:0 10px 26px rgba(47,123,240,.4);
}
.ptex a.ptex-btn--1:hover{transform:translateY(-2px); box-shadow:0 14px 32px rgba(47,123,240,.52);}
.ptex a.ptex-btn--2, .ptex a.ptex-btn--2:hover, .ptex a.ptex-btn--2:focus, .ptex a.ptex-btn--2:visited{
  color:#fff; background:rgba(255,255,255,.07); border:1px solid rgba(255,255,255,.22);
}
.ptex a.ptex-btn--2:hover{background:rgba(255,255,255,.13); transform:translateY(-2px);}

/* =============================================================
   1. HERO
   ============================================================= */
.ptex .ptex-hero{
  text-align:center; color:#e9f1f8; padding:40px 12px 28px;
  background:
    radial-gradient(80% 70% at 50% -12%, rgba(47,123,240,.36), rgba(47,123,240,0) 64%),
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px) 0 0/28px 28px,
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px) 0 0/28px 28px,
    var(--navy);
}
.ptex .ptex-hero-in{max-width:820px; margin:0 auto; padding:0 4px;}
.ptex .ptex-pill{
  display:inline-flex; align-items:center; gap:7px; padding:6px 13px; border-radius:999px;
  font-size:12px; font-weight:700; letter-spacing:.12em; text-transform:uppercase; line-height:1.2; color:var(--b);
  border:1px solid var(--dline); background:rgba(255,255,255,.05);
}
.ptex .ptex-pill svg{width:14px; height:14px;}
.ptex .ptex-hero h1{
  margin:18px 0 0; font-size:clamp(31px,6.8vw,56px); font-weight:800; letter-spacing:-.03em; line-height:1.06; color:#fff; text-wrap:balance;
}
.ptex .ptex-sub{max-width:620px; margin:14px auto 0; font-size:clamp(15px,2vw,17.5px); line-height:1.55; color:var(--ddim); text-wrap:balance;}

/* ---------- the flight plan: one panel, three parts ---------- */
.ptex .ptex-plan{
  max-width:1040px; margin:26px auto 0; text-align:left; border-radius:20px; overflow:hidden;
  border:1px solid rgba(169,200,245,.2);
  background:linear-gradient(180deg, rgba(15,36,58,.94), rgba(8,22,37,.96));
  box-shadow:0 24px 60px rgba(0,0,0,.36), inset 0 1px 0 rgba(255,255,255,.06);
}

/* a) its heading, and the question: where are you headed? */
.ptex .ptex-plan-top{padding:16px 14px 0;}
.ptex h2.ptex-plan-h{
  display:flex; align-items:center; gap:9px; margin:0;
  font-size:12px; font-weight:700; letter-spacing:.13em; text-transform:uppercase; line-height:1.3; color:var(--b);
}
.ptex h2.ptex-plan-h::before{content:""; flex:none; width:18px; height:2px; border-radius:2px; background:linear-gradient(90deg,var(--blue),var(--b));}
.ptex .ptex-ask{margin-top:12px;}
.ptex .ptex-ask-h{font-size:17px; font-weight:700; letter-spacing:-.01em; line-height:1.3; color:#fff;}
.ptex .ptex-chips{display:flex; flex-wrap:wrap; gap:8px; margin-top:11px;}
.ptex button.ptex-chip, .ptex button.ptex-chip:hover, .ptex button.ptex-chip:focus{
  -webkit-appearance:none; appearance:none; margin:0; height:40px; padding:0 14px; border-radius:999px; cursor:pointer;
  font-family:inherit; font-size:14px; font-weight:650; line-height:1.2; letter-spacing:0; text-transform:none; white-space:nowrap;
  color:var(--dtext); background:rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.2); box-shadow:none;
  transition:background .16s ease, color .16s ease, border-color .16s ease;
  -webkit-tap-highlight-color:transparent;
}
.ptex button.ptex-chip:hover{background:rgba(255,255,255,.13); color:#fff;}
.ptex button.ptex-chip[aria-pressed="true"], .ptex button.ptex-chip[aria-pressed="true"]:hover, .ptex button.ptex-chip[aria-pressed="true"]:focus{
  color:var(--ink); background:#fff; border-color:#fff;
}

/* b) the map. The lines are one drawing stretched over the box; the waypoints are links placed
   on it by percentage, so the words stay the same size on every screen. */
.ptex .ptex-map{
  position:relative; display:block; height:272px; margin-top:10px;
  background:radial-gradient(rgba(169,200,245,.13) 1px, transparent 1.6px) 0 0/22px 22px;
}
.ptex .ptex-lines{position:absolute; left:0; top:0; width:100%; height:100%; overflow:visible;}
.ptex .ptex-seg{
  fill:none; stroke:rgba(169,200,245,.6); stroke-width:2; stroke-linecap:round; vector-effect:non-scaling-stroke;
  transition:stroke .3s ease, opacity .3s ease, stroke-width .3s ease;
}
.ptex .ptex-seg--alt{stroke-dasharray:.1 7; stroke-width:2.5;}
.ptex .ptex-seg.is-on{stroke:#9cc3ff; stroke-width:3.5;}
.ptex .ptex-seg.is-off{opacity:.24;}

.ptex .ptex-start{
  position:absolute; left:var(--x); top:var(--y); width:10px; height:10px; margin:-5px 0 0 -5px; border-radius:50%; background:var(--b);
}
.ptex a.ptex-wp, .ptex a.ptex-wp:hover, .ptex a.ptex-wp:focus, .ptex a.ptex-wp:visited{
  position:absolute; left:var(--x); top:var(--y); z-index:2; display:flex; align-items:center; gap:11px; min-width:44px; min-height:44px; color:#fff;
  transition:opacity .3s ease; -webkit-tap-highlight-color:transparent;
}
/* each link is slid so that its dot, not its corner, sits on the point */
.ptex a.ptex-wp--up{flex-direction:column-reverse; transform:translate(-50%, calc(-100% + 9px));}
.ptex a.ptex-wp--down{flex-direction:column; transform:translate(-50%, -9px);}
.ptex a.ptex-wp--right{flex-direction:row; transform:translate(-9px, -50%);}
.ptex a.ptex-wp--left{flex-direction:row-reverse; transform:translate(calc(-100% + 9px), -50%);}
.ptex .ptex-dot{
  flex:none; width:18px; height:18px; border-radius:50%; background:var(--navy2); border:2.5px solid var(--b);
  box-shadow:0 0 0 4px rgba(9,24,40,.9);
  transition:background .3s ease, border-color .3s ease, box-shadow .3s ease, transform .16s ease;
}
.ptex .ptex-lab{display:block; white-space:nowrap; text-align:center; line-height:1.15;}
.ptex a.ptex-wp--right .ptex-lab{text-align:left;}
.ptex a.ptex-wp--left .ptex-lab{text-align:right;}
.ptex .ptex-lab b{display:block; font-size:15px; font-weight:800; letter-spacing:.01em; color:#fff;}
.ptex .ptex-lab i{display:block; margin-top:3px; font-style:normal; font-size:11px; font-weight:600; letter-spacing:.02em; color:var(--ddim);}
.ptex a.ptex-wp:hover .ptex-dot{transform:scale(1.18); border-color:#fff;}
.ptex a.ptex-wp:hover .ptex-lab b{text-decoration:underline; text-decoration-thickness:1.5px; text-underline-offset:3px;}
.ptex a.ptex-wp.is-on .ptex-dot{background:var(--blue); border-color:#fff; box-shadow:0 0 0 4px rgba(47,123,240,.3), 0 0 20px rgba(47,123,240,.9);}
.ptex a.ptex-wp.is-off{opacity:.38;}
.ptex a.ptex-wp.is-off:hover, .ptex a.ptex-wp.is-off:focus-visible{opacity:1;}

/* the aircraft: where you are on the plan */
.ptex .ptex-plane{
  position:absolute; left:var(--x); top:var(--y); z-index:3; width:34px; height:34px; margin:-17px 0 0 -17px; border-radius:50%;
  display:grid; place-items:center; color:var(--ink); background:#fff; pointer-events:none;
  box-shadow:0 0 0 4px rgba(255,255,255,.16), 0 8px 20px rgba(0,0,0,.45);
}
/* the drawing of the aircraft points up and to the right: 45 degrees more and it points along the line */
.ptex .ptex-plane > span{display:block; transform:rotate(45deg);}
.ptex .ptex-plane svg{width:17px; height:17px;}

/* c) the route, written out */
.ptex .ptex-out{border-top:1px solid var(--dline); padding:16px 14px 18px; background:rgba(4,12,22,.42);}
.ptex .ptex-route{display:grid; grid-template-columns:minmax(0,1fr); gap:16px;}
.ptex .ptex-route-k{font-size:11.5px; font-weight:700; letter-spacing:.14em; text-transform:uppercase; line-height:1.3; color:var(--b);}
.ptex .ptex-legs{display:flex; flex-wrap:wrap; align-items:center; gap:7px 8px; margin-top:10px;}
.ptex .ptex-legs b{
  display:inline-block; padding:5px 11px; border-radius:9px; font-size:16px; font-weight:800; letter-spacing:.01em; line-height:1.2; color:#fff;
  background:rgba(47,123,240,.24); border:1px solid rgba(143,186,255,.44);
}
.ptex .ptex-leg-a{display:inline-grid; color:var(--a);}
.ptex .ptex-leg-a svg{width:15px; height:15px;}
.ptex .ptex-leg-w{font-size:13px; font-weight:600; color:var(--ddim);}
.ptex .ptex-route-t{margin-top:11px; max-width:66ch; font-size:15px; line-height:1.55; color:var(--dtext);}
.ptex .ptex-route-a{display:flex; flex-wrap:wrap; gap:10px;}
.ptex .ptex-route-a a.ptex-btn{flex:1 1 auto;}

/* =============================================================
   2. PROOF
   ============================================================= */
.ptex .ptex-wrap{max-width:1200px; margin:0 auto; border-left:1px solid var(--line); border-right:1px solid var(--line);}
.ptex ul.ptex-proof{display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1px; background:var(--line); border-bottom:1px solid var(--line);}
.ptex ul.ptex-proof li{display:flex; gap:11px; align-items:flex-start; padding:16px 12px; background:var(--bg);}
.ptex .ptex-pic{
  flex:none; width:36px; height:36px; border-radius:10px; display:grid; place-items:center;
  color:var(--blue); background:#eaf1fb; border:1px solid var(--line);
}
.ptex .ptex-pic svg{width:17px; height:17px;}
.ptex ul.ptex-proof b{display:block; font-size:14px; font-weight:700; line-height:1.3; color:var(--ink);}
.ptex .ptex-s{display:block; margin-top:3px; font-size:12.5px; line-height:1.35; color:var(--muted);}

/* =============================================================
   SECTIONS AND THEIR HEADINGS
   ============================================================= */
.ptex .ptex-sec{padding:54px 16px 0;}
.ptex .ptex-head{max-width:760px; margin:0 auto 26px; text-align:center;}
.ptex .ptex-kick{display:inline-flex; align-items:center; gap:9px; font-size:12px; font-weight:700; letter-spacing:.14em; text-transform:uppercase; line-height:1.3; color:var(--blue-dk);}
.ptex .ptex-kick::before{content:""; width:18px; height:2px; border-radius:2px; background:linear-gradient(90deg,var(--blue),var(--b));}
.ptex .ptex-head h2{margin-top:12px; font-size:clamp(27px,3.9vw,40px); font-weight:800; letter-spacing:-.03em; line-height:1.12; color:var(--ink); text-wrap:balance;}
.ptex .ptex-lead{max-width:60ch; margin:12px auto 0; font-size:clamp(15.5px,1.6vw,18px); line-height:1.55; color:var(--muted); text-wrap:balance;}

/* =============================================================
   3. EVERY EXAM, SIDE BY SIDE: one strip each
   ============================================================= */
.ptex ul.ptex-strips{display:grid; gap:12px; max-width:1040px; margin:0 auto;}
.ptex li.ptex-strip{
  position:relative; display:grid; grid-template-columns:minmax(0,1fr) 96px; column-gap:14px;
  grid-template-areas:"badge thumb" "head thumb" "about about" "covers covers" "go go";
  padding:16px 14px 0 20px; border:1px solid var(--line); border-radius:16px; background:var(--card); overflow:hidden;
  box-shadow:0 1px 2px rgba(10,26,43,.04);
  transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
/* the coloured edge of a flight strip */
.ptex li.ptex-strip::before{content:""; position:absolute; left:0; top:0; bottom:0; width:5px; background:linear-gradient(180deg,var(--blue),var(--b));}
.ptex .ptex-strip-main{display:contents;}
.ptex .ptex-thumb{grid-area:thumb; align-self:start; display:block; border-radius:10px; overflow:hidden; border:1px solid var(--line); background:#fff; aspect-ratio:600 / 353;}
.ptex .ptex-thumb img{width:100%; height:100%; object-fit:cover;}
.ptex .ptex-badge{
  grid-area:badge; justify-self:start; display:none; margin-bottom:8px; padding:4px 9px; border-radius:999px;
  font-size:10.5px; font-weight:700; letter-spacing:.1em; text-transform:uppercase; line-height:1.2; color:#fff; background:var(--blue);
}
.ptex li.ptex-strip.is-on .ptex-badge{display:inline-block;}
.ptex li.ptex-strip h3{grid-area:head; align-self:center; line-height:1.2;}
.ptex .ptex-code{display:block; font-size:23px; font-weight:800; letter-spacing:-.02em; color:var(--ink);}
.ptex .ptex-name{display:block; margin-top:3px; font-size:14px; font-weight:600; letter-spacing:0; color:var(--muted);}
.ptex .ptex-about{grid-area:about; margin-top:12px; font-size:15px; line-height:1.55; color:var(--text);}
.ptex ul.ptex-covers{grid-area:covers; display:flex; flex-wrap:wrap; gap:6px; margin-top:12px;}
.ptex ul.ptex-covers li{
  padding:4px 10px; border-radius:999px; font-size:12.5px; font-weight:600; line-height:1.35; color:#35506e;
  background:#eef3fa; border:1px solid #dfe8f3;
}
.ptex a.ptex-go, .ptex a.ptex-go:hover, .ptex a.ptex-go:focus, .ptex a.ptex-go:visited{
  grid-area:go; display:flex; align-items:center; justify-content:space-between; gap:12px; margin:14px -14px 0 -20px; padding:13px 14px 13px 20px;
  border-top:1px solid var(--line); background:#fafcfe; font-size:15px; font-weight:700; line-height:1.3; color:var(--blue-dk);
  transition:background .18s ease, color .18s ease;
}
.ptex a.ptex-go > span{
  flex:none; width:30px; height:30px; border-radius:50%; display:grid; place-items:center; color:var(--blue-dk); background:#fff; border:1px solid var(--line);
  transition:background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
.ptex a.ptex-go svg{width:14px; height:14px;}
/* the whole strip is the link */
.ptex a.ptex-go::after{content:""; position:absolute; left:0; top:0; right:0; bottom:0;}
.ptex li.ptex-strip:hover{border-color:rgba(47,123,240,.5); box-shadow:0 12px 30px rgba(10,26,43,.1);}
.ptex li.ptex-strip:hover a.ptex-go > span{background:var(--blue); border-color:var(--blue); color:#fff; transform:translateX(3px);}
.ptex li.ptex-strip.is-on{border-color:rgba(47,123,240,.62); box-shadow:0 0 0 3px rgba(47,123,240,.13), 0 10px 26px rgba(10,26,43,.08);}

/* =============================================================
   4. WHAT EVERY MEMBERSHIP INCLUDES
   ============================================================= */
.ptex .ptex-inc{display:grid; grid-template-columns:minmax(0,1fr); gap:22px; max-width:1040px; margin:0 auto;}
.ptex ul.ptex-feats{display:grid; grid-template-columns:minmax(0,1fr); gap:1px; border:1px solid var(--line); border-radius:16px; background:var(--line); overflow:hidden;}
.ptex ul.ptex-feats li{display:flex; gap:14px; align-items:flex-start; padding:18px 16px; background:var(--card);}
.ptex .ptex-ic{
  flex:none; width:40px; height:40px; border-radius:12px; display:grid; place-items:center; color:#fff;
  background:linear-gradient(135deg,#2a6fe0,#5d8ce6); box-shadow:0 8px 18px rgba(47,123,240,.26);
}
.ptex .ptex-ic svg{width:19px; height:19px;}
.ptex ul.ptex-feats h3{font-size:16.5px; font-weight:700; letter-spacing:-.01em; line-height:1.3; color:var(--ink);}
.ptex ul.ptex-feats p{margin-top:5px; font-size:14.5px; line-height:1.55; color:var(--text);}

/* ---------- the SmartKDR report: the home page's, in its phone layout ----------
   It arrives when it is scrolled to (pt-exams.js adds .is-armed, then .is-on): the ring fills
   and the score counts up, the pills pop, the feedback and the two boxes rise, the meters grow,
   a shine crosses the first box and confetti leaves the score ring. Each of those happens once.
   The border turns on the compositor and rests while the report is off screen (.is-rest).
   Without the script the report is simply there, complete. */
.ptex figure.ptex-kdr{margin:0;}
.ptex .ptex-k-wrap{position:relative; max-width:420px; margin:0 auto; text-align:left; line-height:1.25;}
.ptex .ptex-k-win{
  position:relative; isolation:isolate; overflow:hidden; padding:2px; border-radius:18px; background:#c9d8ec;
  box-shadow:0 18px 44px rgba(10,26,43,.16);
}
/* the glow: painted once, only its opacity changes */
.ptex .ptex-k-wrap::before{
  content:""; position:absolute; left:0; top:0; right:0; bottom:0; border-radius:18px; pointer-events:none;
  box-shadow:0 0 0 5px rgba(93,140,230,.2), 0 0 60px rgba(93,140,230,.36);
  opacity:0; transition:opacity .5s ease;
}
.ptex .ptex-kdr.is-on .ptex-k-wrap::before{opacity:1;}
/* the turning border: one gradient disc behind the card */
.ptex .ptex-k-ring{
  position:absolute; z-index:-1; left:50%; top:50%; width:460px; height:460px; margin:-230px 0 0 -230px; border-radius:50%;
  background:conic-gradient(#004aad,#5d8ce6,#a9c8f5,#5d8ce6,#004aad); transform:scale(2);
}
.ptex .ptex-kdr.is-on .ptex-k-ring{will-change:transform; animation:ptex-k-spin 5s linear infinite;}
.ptex .ptex-kdr.is-on.is-rest .ptex-k-ring{animation-play-state:paused;}
.ptex .ptex-k-card{position:relative; overflow:hidden; border-radius:16px; background:linear-gradient(180deg,#f2f7ff 0,#fff 150px); color:#3d4c60;}

.ptex .ptex-k-bar{display:flex; align-items:center; gap:10px; height:44px; padding:0 16px; border-bottom:1px solid #e4eaf1; font-size:12.5px; color:#66768a;}
.ptex .ptex-k-dots{display:flex; gap:6px;}
.ptex .ptex-k-dots i{width:9px; height:9px; border-radius:50%; background:#d3dbe5;}
.ptex .ptex-k-bar strong{font-weight:600; color:#0a1a2b; white-space:nowrap;}
.ptex .ptex-k-tag{margin-left:auto; display:inline-flex; align-items:center; gap:6px; font-size:12.5px; font-weight:700; color:#1d5fd0; white-space:nowrap;}
.ptex .ptex-k-tag svg{width:13px; height:13px;}
.ptex .ptex-k-body{padding:16px 14px 14px;}

.ptex .ptex-k-sum{display:flex; align-items:center; gap:14px;}
.ptex .ptex-k-gauge{position:relative; flex:none; width:88px; height:88px;}
.ptex .ptex-k-gauge svg{width:100%; height:100%;}
.ptex .ptex-k-gauge-fg{stroke-dashoffset:18;}
.ptex .ptex-kdr.is-armed .ptex-k-gauge-fg{stroke-dashoffset:100;}
.ptex .ptex-kdr.is-armed.is-on .ptex-k-gauge-fg{stroke-dashoffset:18; transition:stroke-dashoffset 1.05s cubic-bezier(.25,.8,.25,1) .12s;}
.ptex .ptex-k-gauge-n{position:absolute; left:0; top:0; right:0; bottom:0; display:flex; align-items:center; justify-content:center; line-height:1; color:#0a1a2b;}
.ptex .ptex-k-gauge-n b{font-size:26px; font-weight:800; letter-spacing:-.03em; font-variant-numeric:tabular-nums;}
.ptex .ptex-k-gauge-n i{font-style:normal; font-size:12.5px; font-weight:700; color:#66768a; margin:8px 0 0 1px;}
.ptex .ptex-k-pills{display:flex; flex-wrap:wrap; gap:6px;}
.ptex .ptex-k-ok, .ptex .ptex-k-kt{display:inline-flex; align-items:center; gap:5px; height:27px; padding:0 9px; border-radius:999px; font-size:12px; font-weight:700; white-space:nowrap;}
.ptex .ptex-k-ok svg, .ptex .ptex-k-kt svg{flex:none; width:12px; height:12px;}
.ptex .ptex-k-ok{background:#e1f4e8; color:#15803d;}
.ptex .ptex-k-kt{position:relative; background:#ffc94d; color:#0a1a2b;}
.ptex .ptex-k-kt u{position:absolute; right:8px; top:-15px; text-decoration:none; font-size:15px; font-weight:800; color:#b7791f; opacity:0; pointer-events:none;}
.ptex .ptex-k-yours{margin-top:11px;}
.ptex .ptex-k-yours span{display:block; font-size:11px; font-weight:700; letter-spacing:.12em; text-transform:uppercase; color:#66768a;}
.ptex .ptex-k-yours b{display:block; margin-top:2px; font-size:16px; font-weight:700; letter-spacing:-.01em; color:#0a1a2b;}

.ptex .ptex-k-fb{margin-top:14px; padding:13px 0 0; border-top:1px solid #e4eaf1;}
.ptex .ptex-k-eye{display:block; margin-bottom:5px; font-size:11px; font-weight:800; letter-spacing:.12em; text-transform:uppercase; color:#1d5fd0;}
.ptex .ptex-k-fb-t{font-size:17.5px; font-weight:800; letter-spacing:-.015em; line-height:1.25; color:#0a1a2b;}
.ptex .ptex-k-lead{margin-top:6px; font-size:14.5px; line-height:1.5; color:#3d4c60; text-wrap:pretty;}

.ptex .ptex-k-boxes{display:grid; gap:10px; margin-top:13px;}
.ptex .ptex-k-box{position:relative; overflow:hidden; border-radius:12px; padding:12px 14px 12px 18px;}
.ptex .ptex-k-box::before{content:""; position:absolute; left:0; top:0; bottom:0; width:5px;}
.ptex .ptex-k-box--focus{background:#eff5fd; box-shadow:inset 0 0 0 2px #1d5fd0;}
.ptex .ptex-k-box--focus::before{background:#1d5fd0;}
.ptex .ptex-k-box--focus::after{
  content:""; position:absolute; top:0; bottom:0; left:0; width:38%; pointer-events:none;
  background:linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,.85), rgba(255,255,255,0));
  transform:translateX(-140%) skewX(-18deg);
}
.ptex .ptex-k-box--well{background:#edf7f1;}
.ptex .ptex-k-box--well::before{background:#15803d;}
.ptex .ptex-k-lab{margin-bottom:8px; font-size:11px; font-weight:800; letter-spacing:.12em; text-transform:uppercase;}
.ptex .ptex-k-box--focus .ptex-k-lab{color:#1d5fd0;}
.ptex .ptex-k-box--well .ptex-k-lab{color:#15803d;}
.ptex .ptex-k-item + .ptex-k-item{margin:11px 0 0; padding:11px 0 0; border-top:1px solid rgba(10,26,43,.1);}
.ptex .ptex-k-it{display:flex; align-items:center; gap:9px; font-size:15px; font-weight:700; letter-spacing:-.005em; color:#0a1a2b;}
.ptex .ptex-k-chip{flex:none; padding:3px 7px; border-radius:6px; font-size:10px; font-weight:800; letter-spacing:.08em; text-transform:uppercase;}
.ptex .ptex-k-chip--hi{background:#fde2e2; color:#c02626;}
.ptex .ptex-k-chip--md{background:#ffedc2; color:#935600;}
/* share of the misses that sit in this topic */
.ptex .ptex-k-meter{display:block; height:6px; margin:8px 0 7px; border-radius:999px; background:rgba(10,26,43,.08); overflow:hidden;}
.ptex .ptex-k-meter i{display:block; height:100%; border-radius:inherit; transform-origin:0 50%;}
.ptex .ptex-k-meter--hi i{width:44.4%; background:linear-gradient(90deg,#f87171,#dc2626);}
.ptex .ptex-k-meter--md i{width:22.2%; background:linear-gradient(90deg,#fbbf24,#d97706);}
.ptex .ptex-k-item small, .ptex small.ptex-k-note{display:block; margin:0; font-size:13px; font-weight:400; line-height:1.45; color:#566579; text-wrap:pretty;}
.ptex .ptex-k-wells{display:flex; flex-wrap:wrap; gap:7px 8px;}
.ptex .ptex-k-wells span{display:inline-flex; align-items:center; gap:7px; padding:6px 11px 6px 9px; border-radius:999px; background:#fff; box-shadow:inset 0 0 0 1px rgba(21,128,61,.22); font-size:13.5px; font-weight:600; color:#0a1a2b; white-space:nowrap;}
.ptex .ptex-k-wells i{font-style:normal; font-weight:800; color:#15803d;}
.ptex small.ptex-k-note{margin-top:9px; color:#4b6356;}

/* waiting to be scrolled to: what will arrive is held back */
.ptex .ptex-kdr.is-armed:not(.is-on) .ptex-k-ok, .ptex .ptex-kdr.is-armed:not(.is-on) .ptex-k-kt,
.ptex .ptex-kdr.is-armed:not(.is-on) .ptex-k-fb, .ptex .ptex-kdr.is-armed:not(.is-on) .ptex-k-box{opacity:0;}
.ptex .ptex-kdr.is-armed:not(.is-on) .ptex-k-meter i{transform:scaleX(0);}
/* scrolled to: the home hero's sequence, a third of a second earlier (there is no screen to slide up first) */
.ptex .ptex-kdr.is-on .ptex-k-fb{animation:ptex-k-rise .5s cubic-bezier(.2,.8,.2,1) .22s both;}
.ptex .ptex-kdr.is-on .ptex-k-box--focus{animation:ptex-k-rise .55s cubic-bezier(.2,.8,.2,1) .39s both;}
.ptex .ptex-kdr.is-on .ptex-k-box--well{animation:ptex-k-rise .55s cubic-bezier(.2,.8,.2,1) .55s both;}
.ptex .ptex-kdr.is-on .ptex-k-ok{animation:ptex-k-pill .5s cubic-bezier(.3,1.6,.5,1) .77s both;}
.ptex .ptex-kdr.is-on .ptex-k-kt{animation:ptex-k-pill .5s cubic-bezier(.3,1.6,.5,1) .95s both;}
.ptex .ptex-kdr.is-on .ptex-k-kt u{animation:ptex-k-plus 1.3s ease-out 1.27s both;}
.ptex .ptex-kdr.is-on .ptex-k-meter--hi i{animation:ptex-k-grow .9s cubic-bezier(.2,.8,.2,1) .82s both;}
.ptex .ptex-kdr.is-on .ptex-k-meter--md i{animation:ptex-k-grow .9s cubic-bezier(.2,.8,.2,1) .97s both;}
.ptex .ptex-kdr.is-on .ptex-k-box--focus::after{animation:ptex-k-shine 1.1s ease 1.42s both;}

/* confetti from the score ring (outside the card, so it can fly over the page) */
.ptex .ptex-k-burst{position:absolute; z-index:2; left:60px; top:106px; width:0; height:0; pointer-events:none;}
.ptex .ptex-k-burst i{position:absolute; left:-4px; top:-3px; border-radius:1.5px; opacity:0;}
.ptex .ptex-kdr.is-on .ptex-k-burst i{animation:ptex-k-burst 1.15s cubic-bezier(.15,.75,.3,1) both;}
/* each piece: where it lands, how it spins, its size and colour, and when it leaves (as the score
   reaches 82). These rules must weigh as much as the one above, or its shorthand resets the delay. */
.ptex .ptex-kdr .ptex-k-burst i:nth-child(1){--x:94px; --y:13px; --r:255deg; width:8px; height:6px; background:#34c46b; animation-delay:1.18s;}
.ptex .ptex-kdr .ptex-k-burst i:nth-child(2){--x:107px; --y:36px; --r:301deg; width:8px; height:6px; background:#ffc94d; animation-delay:1.17s;}
.ptex .ptex-kdr .ptex-k-burst i:nth-child(3){--x:69px; --y:48px; --r:-277deg; width:10px; height:5px; background:#2f7bf0; animation-delay:1.15s;}
.ptex .ptex-kdr .ptex-k-burst i:nth-child(4){--x:59px; --y:78px; --r:-299deg; width:10px; height:5px; background:#f87171; animation-delay:1.17s;}
.ptex .ptex-kdr .ptex-k-burst i:nth-child(5){--x:32px; --y:65px; --r:-293deg; width:10px; height:5px; background:#15803d; animation-delay:1.17s;}
.ptex .ptex-kdr .ptex-k-burst i:nth-child(6){--x:18px; --y:108px; --r:-272deg; width:7px; height:7px; background:#5d8ce6; animation-delay:1.15s;}
.ptex .ptex-kdr .ptex-k-burst i:nth-child(7){--x:-14px; --y:113px; --r:307deg; width:11px; height:4px; background:#ffb020; animation-delay:1.13s;}
.ptex .ptex-kdr .ptex-k-burst i:nth-child(8){--x:-50px; --y:120px; --r:-321deg; width:11px; height:4px; background:#a9c8f5; animation-delay:1.12s;}
.ptex .ptex-kdr .ptex-k-burst i:nth-child(9){--x:-46px; --y:75px; --r:-284deg; width:10px; height:5px; background:#34c46b; animation-delay:1.13s;}
.ptex .ptex-kdr .ptex-k-burst i:nth-child(10){--x:-74px; --y:52px; --r:-356deg; width:10px; height:5px; background:#ffc94d; animation-delay:1.11s;}
.ptex .ptex-kdr .ptex-k-burst i:nth-child(11){--x:-61px; --y:24px; --r:321deg; width:5px; height:10px; background:#2f7bf0; animation-delay:1.13s;}
.ptex .ptex-kdr .ptex-k-burst i:nth-child(12){--x:-71px; --y:13px; --r:226deg; width:10px; height:5px; background:#f87171; animation-delay:1.12s;}
.ptex .ptex-kdr .ptex-k-burst i:nth-child(13){--x:-83px; --y:1px; --r:-174deg; width:7px; height:7px; background:#15803d; animation-delay:1.16s;}
.ptex .ptex-kdr .ptex-k-burst i:nth-child(14){--x:-80px; --y:-23px; --r:185deg; width:8px; height:6px; background:#5d8ce6; animation-delay:1.11s;}
.ptex .ptex-kdr .ptex-k-burst i:nth-child(15){--x:-79px; --y:-78px; --r:-247deg; width:5px; height:10px; background:#ffb020; animation-delay:1.10s;}
.ptex .ptex-kdr .ptex-k-burst i:nth-child(16){--x:-31px; --y:-50px; --r:361deg; width:8px; height:6px; background:#a9c8f5; animation-delay:1.12s;}
.ptex .ptex-kdr .ptex-k-burst i:nth-child(17){--x:-3px; --y:-57px; --r:358deg; width:8px; height:6px; background:#34c46b; animation-delay:1.15s;}
.ptex .ptex-kdr .ptex-k-burst i:nth-child(18){--x:4px; --y:-107px; --r:-253deg; width:11px; height:4px; background:#ffc94d; animation-delay:1.09s;}
.ptex .ptex-kdr .ptex-k-burst i:nth-child(19){--x:49px; --y:-86px; --r:158deg; width:10px; height:5px; background:#2f7bf0; animation-delay:1.10s;}
.ptex .ptex-kdr .ptex-k-burst i:nth-child(20){--x:49px; --y:-40px; --r:235deg; width:8px; height:6px; background:#f87171; animation-delay:1.14s;}
.ptex .ptex-kdr .ptex-k-burst i:nth-child(21){--x:80px; --y:-24px; --r:-361deg; width:5px; height:10px; background:#15803d; animation-delay:1.11s;}
.ptex .ptex-kdr .ptex-k-burst i:nth-child(22){--x:108px; --y:-29px; --r:-325deg; width:7px; height:7px; background:#5d8ce6; animation-delay:1.11s;}
.ptex figure.ptex-kdr figcaption{margin-top:13px; font-size:13px; line-height:1.45; text-align:center; color:var(--muted);}

/* =============================================================
   5. QUICK ANSWERS
   ============================================================= */
.ptex .ptex-sec--ask{padding-bottom:60px;}
.ptex ul.ptex-asks{max-width:760px; margin:0 auto; border:1px solid var(--line); border-radius:16px; background:var(--card); overflow:hidden; box-shadow:0 1px 2px rgba(10,26,43,.04);}
.ptex ul.ptex-asks li + li{border-top:1px solid var(--line);}
.ptex ul.ptex-asks a, .ptex ul.ptex-asks a:visited{
  display:flex; align-items:center; justify-content:space-between; gap:14px; padding:16px 16px 16px 18px;
  font-size:16px; font-weight:650; line-height:1.4; color:var(--ink); transition:background .14s ease, color .14s ease;
}
.ptex ul.ptex-asks a:hover{background:#f8fafd; color:var(--blue-dk);}
.ptex .ptex-ask-go{flex:none; width:26px; height:26px; border-radius:50%; display:grid; place-items:center; color:var(--muted); background:#eef3fa; transition:background .14s ease, color .14s ease, transform .14s ease;}
.ptex .ptex-ask-go svg{width:14px; height:14px;}
.ptex ul.ptex-asks a:hover .ptex-ask-go{background:var(--blue); color:#fff; transform:translateX(3px);}
.ptex .ptex-ask-all{margin-top:18px; text-align:center;}
.ptex .ptex-ask-all a, .ptex .ptex-ask-all a:visited{display:inline-flex; align-items:center; gap:7px; font-size:15px; font-weight:700; color:var(--blue-dk);}
.ptex .ptex-ask-all a:hover{color:var(--blue);}
.ptex .ptex-ask-all svg{width:14px; height:14px; transition:transform .16s ease;}
.ptex .ptex-ask-all a:hover svg{transform:translateX(3px);}

/* =============================================================
   6. THE CLOSING CALL
   ============================================================= */
.ptex .ptex-final{
  text-align:center; color:var(--dtext); padding:58px 20px 54px;
  background:
    radial-gradient(70% 120% at 50% 120%, rgba(47,123,240,.36), rgba(47,123,240,0) 62%),
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px) 0 0/28px 28px,
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px) 0 0/28px 28px,
    var(--navy);
}
.ptex .ptex-final h2{font-size:clamp(29px,4.4vw,46px); font-weight:800; letter-spacing:-.03em; line-height:1.1; color:#fff; text-wrap:balance;}
.ptex .ptex-final .ptex-lead{margin-top:14px; color:var(--ddim);}
.ptex .ptex-final a.ptex-btn{height:52px; padding:0 28px; margin-top:26px; font-size:16px;}
.ptex .ptex-fine{margin-top:14px; font-size:14px; color:var(--ddim);}
.ptex .ptex-backed{display:flex; flex-wrap:wrap; align-items:center; justify-content:center; gap:12px 16px; max-width:760px; margin:34px auto 0; padding-top:26px; border-top:1px solid var(--dline);}
.ptex .ptex-backed > span:first-child{font-size:12px; font-weight:700; letter-spacing:.14em; text-transform:uppercase; color:var(--ddim);}
.ptex .ptex-logo{display:flex; align-items:center; justify-content:center; width:92px; height:62px; padding:8px 10px; border-radius:14px; background:#fff;}
.ptex .ptex-logo img{max-height:100%; width:auto;}

/* =============================================================
   THE WAY IN: the route is drawn once, then the page is still
   ============================================================= */
@keyframes ptex-wipe{from{clip-path:inset(0 100% 0 0);} to{clip-path:inset(0 -10% 0 0);}}
@keyframes ptex-pop{from{opacity:0;}}
@keyframes ptex-in{from{opacity:0; transform:translateY(6px);}}
@keyframes ptex-k-spin{to{transform:scale(2) rotate(360deg);}}
@keyframes ptex-k-pill{from{opacity:0; transform:scale(.5);} to{opacity:1; transform:none;}}
@keyframes ptex-k-rise{from{opacity:0; transform:translateY(18px);} to{opacity:1; transform:none;}}
@keyframes ptex-k-plus{0%{opacity:0; transform:translateY(8px) scale(.7);} 22%{opacity:1;} 100%{opacity:0; transform:translateY(-26px) scale(1);}}
@keyframes ptex-k-grow{from{transform:scaleX(0);} to{transform:none;}}
@keyframes ptex-k-shine{from{transform:translateX(-140%) skewX(-18deg);} to{transform:translateX(340%) skewX(-18deg);}}
@keyframes ptex-k-burst{
  0%{opacity:0; transform:translate(0,0) rotate(0deg) scale(.3);}
  10%{opacity:1;}
  72%{opacity:1;}
  100%{opacity:0; transform:translate(var(--x),var(--y)) rotate(var(--r)) scale(1);}
}
.ptex .ptex-lines{animation:ptex-wipe 1.1s .1s cubic-bezier(.4,0,.2,1) backwards;}
.ptex a.ptex-wp{animation:ptex-pop .45s ease backwards;}
.ptex a.ptex-wp:nth-of-type(1){animation-delay:.15s;}
.ptex a.ptex-wp:nth-of-type(2){animation-delay:.3s;}
.ptex a.ptex-wp:nth-of-type(3){animation-delay:.5s;}
.ptex a.ptex-wp:nth-of-type(4){animation-delay:.7s;}
.ptex a.ptex-wp:nth-of-type(5){animation-delay:.95s;}
.ptex a.ptex-wp:nth-of-type(6){animation-delay:.95s;}
.ptex a.ptex-wp:nth-of-type(7){animation-delay:.8s;}
.ptex .ptex-route.is-in{animation:ptex-in .32s ease backwards;}

/* =============================================================
   WIDER SCREENS
   ============================================================= */
@media (min-width:480px){
  .ptex .ptex-route-a a.ptex-btn{flex:0 1 auto;}
}
@media (min-width:700px){
  .ptex .ptex-hero{padding:56px 24px 40px;}
  .ptex .ptex-plan{margin-top:34px;}
  .ptex .ptex-plan-top{padding:20px 22px 0;}
  .ptex .ptex-ask-h{font-size:19px;}
  .ptex .ptex-map{height:300px;}
  .ptex .ptex-lab b{font-size:17px;}
  .ptex .ptex-lab i{font-size:12px;}
  .ptex .ptex-dot{width:20px; height:20px;}
  .ptex a.ptex-wp--up{transform:translate(-50%, calc(-100% + 10px));}
  .ptex a.ptex-wp--down{transform:translate(-50%, -10px);}
  .ptex a.ptex-wp--right{transform:translate(-10px, -50%);}
  .ptex a.ptex-wp--left{transform:translate(calc(-100% + 10px), -50%);}
  .ptex .ptex-out{padding:20px 22px 22px;}
  .ptex ul.ptex-proof li{padding:20px 22px;}
  .ptex .ptex-sec{padding:72px 24px 0;}
  .ptex .ptex-head{margin-bottom:34px;}
  .ptex ul.ptex-feats{grid-template-columns:repeat(2,minmax(0,1fr));}
  .ptex ul.ptex-feats li{padding:22px 20px;}
  .ptex .ptex-sec--ask{padding-bottom:80px;}
  .ptex .ptex-final{padding:76px 24px 70px;}
}
@media (min-width:860px){
  /* the route beside its buttons */
  .ptex .ptex-route{grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:28px;}
  .ptex .ptex-route-a{flex-direction:column; align-items:stretch;}
  .ptex ul.ptex-proof{grid-template-columns:repeat(4,minmax(0,1fr));}
  /* a strip in one row: picture, words, link */
  .ptex li.ptex-strip{
    grid-template-columns:188px minmax(0,1fr) auto; column-gap:22px; align-items:center;
    grid-template-areas:"thumb badge go" "thumb head go" "thumb about go" "thumb covers go";
    padding:18px 22px 18px 25px;
  }
  .ptex .ptex-thumb{align-self:center;}
  .ptex li.ptex-strip h3{align-self:end;}
  .ptex .ptex-code{display:inline; font-size:24px;}
  .ptex .ptex-name{display:inline; margin:0 0 0 8px; font-size:15px;}
  .ptex .ptex-about{margin-top:6px;}
  .ptex ul.ptex-covers{margin-top:11px;}
  .ptex a.ptex-go, .ptex a.ptex-go:hover, .ptex a.ptex-go:focus, .ptex a.ptex-go:visited{
    justify-content:center; gap:10px; margin:0; padding:0 8px 0 16px; height:46px; border:1px solid var(--line); border-radius:999px; background:#f5f8fc; white-space:nowrap;
  }
  .ptex li.ptex-strip:hover{transform:translateY(-2px);}
  .ptex li.ptex-strip:hover a.ptex-go{background:#fff; border-color:rgba(47,123,240,.5);}
}
@media (min-width:1000px){
  .ptex .ptex-map{height:320px;}
  .ptex .ptex-inc{grid-template-columns:minmax(0,1fr) 372px; gap:30px; align-items:start;}
  .ptex ul.ptex-strips{gap:14px;}
}

@media (prefers-reduced-motion:reduce){
  .ptex *, .ptex *::before, .ptex *::after{animation:none !important; transition:none !important;}
}
