/* Packages + payment pages. Loaded after legal.css (fonts, header, footer, tokens).
   Type and buttons follow site.css: tracked kicker with blue rule, thin/bold h1, black pill buttons. */
.top-links { display: flex; align-items: center; gap: .4rem; }
.top-links a:not(.back) {
  color: var(--black);
  text-decoration: none;
  font-size: .95rem;
  padding: .55rem .8rem;
}
.top-links a:not(.back):hover, .top-links a[aria-current="page"] { color: var(--blue); }

.wide { width: min(1200px, calc(100% - 40px)); margin-inline: auto; }

.tracked {
  font-weight: 300;
  font-size: .78rem;
  letter-spacing: .32em;
  text-transform: uppercase;
}
.pk-kicker {
  display: inline-flex;
  flex-direction: column;
  gap: .7rem;
  margin: 0 0 1.4rem;
  color: var(--muted);
}
.pk-kicker::after { content: ""; width: 38px; height: 2px; background: var(--blue); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: .8rem 1.35rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 500;
  font-size: .98rem;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background .2s, border-color .2s, color .2s;
}
.btn-black { background: var(--black); color: #fff; }
.btn-black:hover { background: #26272B; }
.btn-outline { border-color: var(--line); background: #fff; color: var(--black); }
.btn-outline:hover { border-color: var(--black); }

/* Page head */
.pk-top { padding: clamp(4rem, 9vw, 6.5rem) 0 clamp(2.5rem, 5vw, 3.5rem); }
.pk-top h1 {
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  line-height: 1.02;
  font-weight: 600;
  letter-spacing: -.035em;
  max-width: 16ch;
}
.pk-top h1 .thin { display: block; font-weight: 200; letter-spacing: -.02em; color: var(--muted); }
.pk-lead { max-width: 36rem; margin: 1.6rem 0 0; font-weight: 300; font-size: 1.1rem; color: var(--muted); }
.pk-top .pk-kicker, .pk-top h1 .thin, .pk-top .pk-lead { color: var(--muted-dark); }
.pk-top .pk-jump a { color: #fff; border-color: rgba(255, 255, 255, .25); }
.pk-top .pk-jump a:hover { color: #5B8CFF; border-color: #5B8CFF; }
.pk-jump { display: flex; flex-wrap: wrap; gap: .4rem 1.6rem; margin-top: 2.4rem; }
.pk-jump a { color: var(--black); text-decoration: none; border-bottom: 1px solid var(--line); padding-bottom: .15rem; }
.pk-jump a:hover { border-color: var(--blue); color: var(--blue); }

/* Sections */
.pk-section { padding: clamp(4rem, 8vw, 6rem) 0 0; }
.pk-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .8fr);
  gap: 1.5rem 4rem;
  align-items: end;
  margin-bottom: 2.5rem;
}
.pk-head h2 { margin: 0; font-size: clamp(1.9rem, 4vw, 3rem); line-height: 1.06; font-weight: 500; letter-spacing: -.03em; }
.pk-head p { margin: 0; color: var(--muted); font-weight: 300; font-size: 1.06rem; }

/* Package rows */
.pk-list { border-top: 1px solid var(--black); }
.pk-row {
  display: grid;
  grid-template-columns: 1.1fr .9fr 1.3fr auto;
  gap: 1.5rem 2.5rem;
  align-items: start;
  padding: 2rem 0;
  border-bottom: 1px solid var(--line);
}
.pk-row h3 { margin: 0; font-size: 1.3rem; font-weight: 500; letter-spacing: -.01em; }
.pk-for { margin: .35rem 0 0; color: var(--muted); font-size: .95rem; line-height: 1.5; }
.pk-price { margin: 0; font-size: 1.9rem; font-weight: 600; letter-spacing: -.03em; line-height: 1.1; }
.pk-price small { font-size: .95rem; font-weight: 400; letter-spacing: 0; color: var(--muted); }
.pk-terms { margin: .45rem 0 0; color: var(--muted); font-size: .9rem; line-height: 1.5; }
.pk-row ul { list-style: none; margin: 0; padding: 0; }
.pk-row li { position: relative; padding-left: 1.1rem; margin-bottom: .45rem; font-size: .97rem; line-height: 1.5; color: #2E3442; }
.pk-row li::before { content: ""; position: absolute; left: 0; top: .6em; width: 5px; height: 5px; border-radius: 50%; background: var(--blue); }
.pk-row .btn { justify-self: end; }

/* Currency table */
.pk-fx { margin-top: 2rem; overflow-x: auto; }
.pk-fx table { width: 100%; border-collapse: collapse; font-size: .95rem; min-width: 520px; }
.pk-fx th, .pk-fx td { padding: .75rem 0; text-align: left; border-bottom: 1px solid var(--line); }
.pk-fx th { font-weight: 400; color: var(--muted); }
.pk-note { margin: .9rem 0 0; color: var(--muted); font-size: .9rem; }

/* Add-ons */
.pk-addons { display: grid; grid-template-columns: 1fr 1fr; column-gap: 4rem; border-top: 1px solid var(--black); }
.pk-addon { display: flex; justify-content: space-between; gap: 1.5rem; padding: 1.4rem 0; border-bottom: 1px solid var(--line); }
.pk-addon b { display: block; font-weight: 500; }
.pk-addon p { margin: .3rem 0 0; font-size: .93rem; color: var(--muted); line-height: 1.5; }
.pk-addon strong { font-weight: 500; white-space: nowrap; }

/* Billing terms */
.pk-rules { margin-top: clamp(4rem, 8vw, 6rem); padding: clamp(4rem, 8vw, 6rem) 0; background: var(--navy); color: #fff; }
.pk-rules .pk-kicker { color: var(--muted-dark); }
.pk-rules .pk-head p { color: var(--muted-dark); }
.pk-rules dl { display: grid; grid-template-columns: 1fr 1fr; column-gap: 4rem; margin: 0; border-top: 1px solid rgba(255, 255, 255, .25); }
.pk-rules dl div { padding: 1.3rem 0; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.pk-rules dt { font-weight: 500; }
.pk-rules dd { margin: .3rem 0 0; color: var(--muted-dark); font-size: .95rem; line-height: 1.6; }
.pk-rules a { color: #fff; }

.pk-cta { padding: clamp(4rem, 8vw, 6rem) 0; }
.pk-cta .pk-head { margin-bottom: 0; }
.pk-cta .row { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.4rem; }

/* Payment page: compact head, the form in three numbered cards, and a sticky summary that holds the pay button. */
.pay-top { padding: clamp(2.6rem, 6vw, 4rem) 0 clamp(1.6rem, 3vw, 2.2rem); }
.pay-top h1 { font-size: clamp(2.1rem, 4.6vw, 3.3rem); max-width: none; }
.pay-top .pk-lead { margin-top: 1rem; font-size: 1.02rem; }
.pay-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: clamp(1.5rem, 4vw, 2.8rem); align-items: start; padding: clamp(2rem, 5vw, 3.2rem) 0 clamp(4rem, 8vw, 6rem); }
.pay-form { display: grid; gap: 1.1rem; }
.pay-sec { padding: clamp(1.3rem, 3vw, 1.9rem); border: 1px solid var(--line); border-radius: 16px; background: #fff; transition: border-color .25s, box-shadow .25s; animation: pay-rise .5s ease-out both; }
.pay-sec:nth-child(2) { animation-delay: .07s; }
.pay-sec:nth-child(3) { animation-delay: .14s; }
.pay-sec:focus-within { border-color: rgba(1, 80, 253, .35); box-shadow: 0 10px 30px -18px rgba(1, 80, 253, .45); }
.pay-sec h2 { display: flex; align-items: center; gap: .7rem; margin: 0 0 1.3rem; font-size: 1.12rem; font-weight: 500; }
.pay-sec h2 span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--blue-soft, #E8EFFF); color: var(--blue); font-size: .85rem; font-weight: 600; transition: background .3s, color .3s; }
/* finished step: the number turns into a green tick */
.pay-sec h2 span { position: relative; }
.pay-sec.is-done h2 span { background: #1E9E57; color: transparent; }
.pay-sec.is-done h2 span::after { content: ""; position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.6 2.6L12 5.6' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat; animation: pay-pop .35s ease-out; }
.pay-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 1rem; } /* row gap only shows when fields stack on phones */
.pay-row-3 { grid-template-columns: 1fr 1.3fr .8fr; }
.pay-field { display: grid; gap: .4rem; align-content: start; margin-bottom: 1.1rem; }
.pay-sec > .pay-field:last-child, .pay-sec > .pay-row:last-child > .pay-field { margin-bottom: 0; }
.pay-field > span { font-size: .88rem; font-weight: 500; }
.pay-field input, .pay-field select {
  width: 100%;
  min-height: 50px;
  padding: .75rem .95rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--black);
  font: inherit;
  font-size: 1rem;
  transition: border-color .15s, box-shadow .15s;
}
.pay-field select {
  appearance: none;
  padding-right: 2.4rem;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%235B6476' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right .95rem center / 12px;
  cursor: pointer;
}
.pay-field input::placeholder { color: #9AA3B2; }
.pay-field input:focus, .pay-field select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(1, 80, 253, .15); }
.pay-field [aria-invalid="true"] { border-color: #D93025; }
.pay-field [aria-invalid="true"]:focus { box-shadow: 0 0 0 3px rgba(217, 48, 37, .15); }
.pay-err { color: #C5221F; font-size: .84rem; animation: pay-err-in .2s ease-out; }
.shake { animation: pay-shake .35s ease-in-out; }
.pay-prefix { position: relative; }
.pay-prefix i { position: absolute; left: .95rem; top: 50%; transform: translateY(-50%); font-style: normal; color: var(--muted); pointer-events: none; }
.pay-prefix input { padding-left: 3.1rem; }
.pay-amount i { font-size: 1.6rem; }
.pay-amount input { min-height: 64px; padding-left: 2.5rem; font-size: 2rem; font-weight: 500; }
.pay-for { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; padding: 0; border: 0; }
.pay-for legend { margin-bottom: .55rem; padding: 0; font-size: .88rem; font-weight: 500; }
.pay-for label { cursor: pointer; }
.pay-for input { position: absolute; opacity: 0; pointer-events: none; }
.pay-for span { display: inline-block; padding: .55rem 1rem; border: 1px solid var(--line); border-radius: 999px; font-size: .92rem; transition: border-color .2s, background .2s, color .2s; }
.pay-for input:checked + span { border-color: var(--blue); background: var(--blue); color: #fff; }
.pay-for input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }

.pay-summary { position: sticky; top: 96px; padding: 1.6rem; border-radius: 16px; background: var(--mist); animation: pay-rise .5s .1s ease-out both; }
.pay-summary h2 { margin: 0 0 .8rem; font-size: 1.12rem; font-weight: 500; }
.pay-sum { margin: 0 0 1.3rem; }
.pay-sum div { display: flex; justify-content: space-between; gap: 1rem; padding: .5rem 0; font-size: .95rem; }
.pay-sum dt { color: var(--muted); }
.pay-sum dd { margin: 0; font-weight: 500; text-align: right; }
.pay-sum .total { align-items: baseline; margin-top: .5rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.pay-sum .total dt { color: var(--black); font-weight: 500; }
.pay-sum .total dd { font-size: 1.75rem; font-weight: 600; letter-spacing: -.02em; }
.pay-btn { width: 100%; min-height: 56px; background: var(--blue); color: #fff; font-size: 1.05rem; transition: background .2s, transform .12s, opacity .2s; }
.pay-btn:hover { background: #0040D0; }
.pay-btn:active { transform: scale(.98); }
.pay-btn:disabled { opacity: .6; cursor: progress; }
.pay-btn.is-busy { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; opacity: .85; }
.pay-btn.is-busy::before { content: ""; width: 18px; height: 18px; border: 2px solid rgba(255, 255, 255, .4); border-top-color: #fff; border-radius: 50%; animation: pay-spin .7s linear infinite; }
.pay-msg { margin: .9rem 0 0; padding: .85rem 1rem; border: 1px solid var(--line); border-radius: 10px; background: #fff; font-size: .9rem; line-height: 1.5; animation: pay-err-in .25s ease-out; }
.pay-assure { display: grid; gap: .55rem; margin: 1.3rem 0 0; padding: 1.2rem 0 0; border-top: 1px solid var(--line); list-style: none; font-size: .88rem; color: var(--muted); }
.pay-assure li { display: flex; align-items: center; gap: .55rem; }
.pay-assure svg { flex: none; width: 16px; height: 16px; fill: none; stroke: #1E9E57; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pay-note { margin: 1rem 0 0; color: var(--muted); font-size: .82rem; line-height: 1.55; }
.pay-note a { color: inherit; }

/* Success screen: ring draws, tick draws, then the details rise in. */
.pay-done { grid-column: 1 / -1; width: min(100%, 640px); margin-inline: auto; background: #fff; padding: clamp(2rem, 5vw, 3rem) clamp(1.2rem, 4vw, 2.5rem); border: 1px solid var(--line); border-radius: 16px; text-align: center; }
.pay-tick { display: block; width: 88px; height: 88px; margin: 0 auto 1.4rem; overflow: visible; }
.pay-tick .disc { fill: #E7F6EE; transform-origin: center; animation: pay-pop .45s .75s ease-out both; }
.pay-tick .ring, .pay-tick path { fill: none; stroke: #1E9E57; stroke-linecap: round; stroke-linejoin: round; }
.pay-tick .ring { stroke-width: 2.5; stroke-dasharray: 151; stroke-dashoffset: 151; transform: rotate(-90deg); transform-origin: center; animation: pay-draw .6s ease-out forwards; }
.pay-tick path { stroke-width: 3.5; stroke-dasharray: 34; stroke-dashoffset: 34; animation: pay-draw .35s .55s ease-out forwards; }
.pay-done > :not(svg) { animation: pay-rise .5s .85s ease-out both; }
.pay-done h2 { margin: 0; font-size: 1.6rem; font-weight: 500; outline: none; }
.pay-done-amount { margin: .3rem 0 1.6rem; font-size: 2.4rem; font-weight: 600; letter-spacing: -.02em; }
.pay-done-list { display: grid; gap: .1rem; max-width: 26rem; margin: 0 auto 1.4rem; text-align: left; }
.pay-done-list div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .2rem 1rem; padding: .7rem 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.pay-done-list dt { color: var(--muted); white-space: nowrap; }
.pay-done-list dd { margin: 0 0 0 auto; font-weight: 500; font-size: .9rem; overflow-wrap: break-word; max-width: 100%; text-align: right; }
.pay-done-note { max-width: 26rem; margin: 0 auto 1.8rem; color: var(--muted); font-size: .92rem; line-height: 1.5; }
.pay-done-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .7rem; }
.pay-done-actions .btn { min-height: 50px; }
@keyframes pay-draw { to { stroke-dashoffset: 0; } }
@keyframes pay-pop { from { transform: scale(.4); opacity: 0; } 70% { transform: scale(1.06); } to { transform: scale(1); opacity: 1; } }
@keyframes pay-rise { from { opacity: 0; transform: translateY(10px); } }
@keyframes pay-err-in { from { opacity: 0; transform: translateY(-4px); } }
@keyframes pay-shake { 20%, 60% { transform: translateX(-5px); } 40%, 80% { transform: translateX(5px); } }
@keyframes pay-spin { to { transform: rotate(360deg); } }
/* form and summary fade out before the success screen comes in (pay.js waits 260ms) */
.pay-form, .pay-summary { transition: opacity .25s, transform .25s; }
.is-leaving { opacity: 0; transform: translateY(-8px); pointer-events: none; }
@media (prefers-reduced-motion: reduce) {
  .pay-tick *, .pay-done > *, .pay-sec, .pay-summary, .pay-err, .pay-msg, .shake, .pay-sec h2 span::after { animation: none !important; stroke-dashoffset: 0 !important; }
  .pay-btn.is-busy::before { animation-duration: 1.6s; }
  .pay-form, .pay-summary, .pay-btn { transition: none; }
}

@media (max-width: 900px) {
  .pk-row { grid-template-columns: 1fr 1fr; }
  .pk-row ul { grid-column: 1 / -1; }
  .pk-row .btn { justify-self: start; }
  .pay-wrap { grid-template-columns: 1fr; }
  .pay-summary { position: static; }
}
@media (max-width: 640px) {
  .top-links a:not(.back) { display: none; }
  .pk-head, .pk-addons, .pk-rules dl, .pay-row { grid-template-columns: 1fr; }
  .pay-row-3 { grid-template-columns: 1fr 1fr; } /* city | state, then PIN: same order as the keyboard */
  .pk-row { grid-template-columns: 1fr; gap: 1rem; }
  .pay-summary { padding: 1.3rem; }
  .pk-jump { gap: 0 1.4rem; }
  .pk-jump a { padding-top: .6rem; }
}
