/* The pay page: light, one column on phones, plan cards in a grid on wider screens. Colours follow the logo. */
.pay-page { --ink: #0f2a2e; --muted: #52686b; --line: #dbe6e6; --teal: #0f8f86; --teal-d: #0b6f68; --soft: #eef7f6; --coral: #f55a4e; --ok: #0a7a4b; --okbg: #dff5ea; --bad: #a32121; --badbg: #fde8e8; --warn: #8a5a00; --warnbg: #fff1d6; }
.pay-main { background: #f3f7f7; min-height: 70vh; padding: 28px 0 120px; color: var(--ink); }
.pay-wrap { max-width: 920px; }
.pay-head h1 { font-size: clamp(26px, 5vw, 38px); margin: 0 0 6px; color: var(--ink); }
.pay-lead { color: var(--muted); margin: 0 0 18px; font-size: 16px; line-height: 1.7; }

.p-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 20px; margin: 0 0 14px; }
.p-narrow { max-width: 460px; margin-inline: auto; }
.p-card h2, .p-h { font-size: 19px; margin: 0 0 6px; color: var(--ink); }
.p-sub { color: var(--muted); font-size: 14px; line-height: 1.7; margin: 0 0 8px; }
.p-link { color: var(--teal-d); font-weight: 700; font-size: 14px; }

.pay-page label { display: block; margin: 14px 0 6px; font-weight: 700; font-size: 14px; color: var(--ink); }
.pay-page input[type=email], .pay-page input[type=password], .pay-page input[type=text], .pay-page input[type=tel] { width: 100%; padding: 13px 14px; border: 1.5px solid #c4d4d4; border-radius: 12px; font: inherit; font-size: 16px; background: #fff; color: var(--ink); box-sizing: border-box; }
.pay-page input:focus { outline: 3px solid rgb(15 143 134 / .25); border-color: var(--teal); }

.p-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 12px 22px; border: 0; border-radius: 12px; font: inherit; font-weight: 700; font-size: 16px; cursor: pointer; transition: transform .15s, opacity .15s; }
.p-btn:active { transform: scale(.98); }
.p-btn:disabled { opacity: .5; cursor: not-allowed; }
.p-primary { background: var(--coral); color: #fff; }
.p-ghost { background: #e5eded; color: var(--ink); }
#loginForm .p-btn { width: 100%; margin-top: 18px; }
#askOwner { width: 100%; margin-top: 12px; }

#msg { padding: 12px 16px; border-radius: 12px; margin: 0 0 14px; font-weight: 700; line-height: 1.6; }
#msg.err { background: var(--badbg); color: var(--bad); }
#msg.ok { background: var(--okbg); color: var(--ok); }

/* account */
.p-account { display: grid; grid-template-columns: 1fr; gap: 14px; align-items: center; }
.p-acc-main { display: flex; gap: 12px; align-items: center; min-width: 0; }
.p-avatar { width: 46px; height: 46px; border-radius: 50%; background: var(--teal); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 19px; flex: none; }
.p-acc-plan { border-top: 1px solid var(--line); padding-top: 12px; }
.p-pill { display: inline-block; padding: 3px 10px; border-radius: 99px; font-size: 13px; font-weight: 700; margin-bottom: 6px; }
.p-pill.ok { background: var(--okbg); color: var(--ok); }
.p-pill.warn { background: var(--warnbg); color: var(--warn); }
.p-pill.bad { background: var(--badbg); color: var(--bad); }
@media (min-width: 720px) {
  .p-account { grid-template-columns: 1.2fr 1fr auto; }
  .p-acc-plan { border-top: 0; padding-top: 0; border-inline-start: 1px solid var(--line); padding-inline-start: 16px; }
}

/* steps */
.p-steps { display: flex; gap: 8px; list-style: none; padding: 0; margin: 4px 0 18px; }
.p-steps li { flex: 1; text-align: center; font-size: 14px; font-weight: 700; color: #7b8e90; padding: 10px 6px; border-radius: 12px; background: #e6eeee; }
.p-steps li span { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #c4d4d4; color: #fff; margin-inline-end: 6px; font-size: 13px; }
.p-steps li.on { background: var(--teal); color: #fff; }
.p-steps li.on span { background: #fff; color: var(--teal-d); }
.p-steps li.done { background: var(--soft); color: var(--teal-d); }
.p-steps li.done span { background: var(--teal); }

/* plans */
.p-plans { display: grid; gap: 14px; grid-template-columns: 1fr; margin: 12px 0 0; }
@media (min-width: 640px) { .p-plans { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .p-plans { grid-template-columns: repeat(4, 1fr); } }
.p-plan { position: relative; background: #fff; border: 2px solid var(--line); border-radius: 16px; padding: 18px 16px 16px; cursor: pointer; text-align: start; font: inherit; color: var(--ink); display: flex; flex-direction: column; gap: 6px; }
.p-plan:hover { border-color: #9cc9c5; }
.p-plan[aria-checked=true] { border-color: var(--teal); box-shadow: 0 0 0 3px rgb(15 143 134 / .18); background: #fbfefd; }
.p-plan .tag { position: absolute; top: -11px; inset-inline-start: 14px; background: var(--teal); color: #fff; font-size: 12px; font-weight: 700; padding: 2px 10px; border-radius: 99px; }
.p-plan .tag.cur { background: #2f5d8a; }
.p-plan h3 { margin: 4px 0 0; font-size: 17px; }
.p-plan .per { color: var(--muted); font-size: 13px; }
.p-plan .price { font-size: 28px; font-weight: 800; color: var(--teal-d); line-height: 1.2; }
.p-plan .price small { font-size: 14px; font-weight: 600; color: var(--muted); }
.p-plan .was { font-size: 14px; color: var(--muted); }
.p-plan .was s { margin-inline-end: 6px; }
.p-plan .save { display: inline-block; background: var(--okbg); color: var(--ok); border-radius: 8px; padding: 1px 8px; font-weight: 700; font-size: 13px; }
.p-plan .fit { font-size: 14px; font-weight: 700; margin-top: 4px; }
.p-plan ul { list-style: none; padding: 0; margin: 6px 0 0; display: grid; gap: 7px; font-size: 14px; line-height: 1.5; }
.p-plan li { padding-inline-start: 24px; position: relative; }
.p-plan li::before { content: "\2713"; position: absolute; inset-inline-start: 0; top: 0; color: var(--teal); font-weight: 800; }
.p-plan li b { color: var(--ink); }

/* sticky action bar */
.p-bar { display: flex; gap: 10px; align-items: center; justify-content: space-between; margin-top: 18px; }
#bar1 { position: sticky; bottom: 0; background: rgb(243 247 247 / .96); backdrop-filter: blur(6px); padding: 12px 0; border-top: 1px solid var(--line); z-index: 5; }
.p-bar-sum { display: grid; line-height: 1.4; font-size: 14px; color: var(--muted); }
.p-bar-sum b { font-size: 20px; color: var(--ink); }
#bar1 .p-btn { min-width: 170px; }
#step2 .p-bar .p-btn { flex: 1; }
#step2 .p-bar .p-ghost { flex: 0 0 auto; min-width: 100px; }

/* step 2 */
.p-chosen { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: space-between; background: var(--soft); border-radius: 14px; padding: 14px 16px; margin-bottom: 14px; }
.p-chosen b { display: block; font-size: 17px; }
.p-chosen-price { font-size: 24px; font-weight: 800; color: var(--teal-d); }
.p-methods { display: grid; gap: 10px; margin: 10px 0; }
.p-method { text-align: start; background: #fff; border: 2px solid var(--line); border-radius: 12px; padding: 14px; font: inherit; font-weight: 700; color: var(--ink); cursor: pointer; display: flex; align-items: center; gap: 10px; }
.p-method[aria-checked=true] { border-color: var(--teal); background: #fbfefd; box-shadow: 0 0 0 3px rgb(15 143 134 / .18); }
.p-method::before { content: ""; width: 18px; height: 18px; border-radius: 50%; border: 2px solid #9db3b3; flex: none; }
.p-method[aria-checked=true]::before { border-color: var(--teal); background: radial-gradient(var(--teal) 0 45%, #fff 50%); }
.p-how { padding-inline-start: 22px; margin: 14px 0 6px; display: grid; gap: 12px; line-height: 1.7; }
.p-account-box { display: flex; gap: 10px; align-items: center; justify-content: space-between; background: var(--soft); border: 1.5px dashed var(--teal); border-radius: 12px; padding: 12px 14px; margin: 8px 0 4px; }
.p-account-box b { font-size: 22px; letter-spacing: .5px; word-break: break-all; }
.p-copy { background: var(--teal); color: #fff; border: 0; border-radius: 10px; padding: 8px 14px; font: inherit; font-weight: 700; cursor: pointer; flex: none; }
.p-file { display: block; border: 2px dashed #9db3b3; border-radius: 12px; padding: 18px 14px; text-align: center; color: var(--muted); cursor: pointer; font-weight: 600; margin: 0 !important; }
.p-file.has { border-style: solid; border-color: var(--teal); color: var(--teal-d); background: var(--soft); }
.p-file-input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

/* requests + done */
.p-req { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-weight: 700; }
.p-done { text-align: center; }
.p-check { width: 64px; height: 64px; border-radius: 50%; background: var(--okbg); color: var(--ok); display: grid; place-items: center; font-size: 34px; margin: 0 auto 10px; }
.p-done .p-btn { width: 100%; margin-top: 10px; }

@media (max-width: 520px) {
  .p-card { padding: 16px; }
  #bar1 { flex-direction: row; }
  #bar1 .p-btn { min-width: 0; flex: 1; }
  .p-steps li { font-size: 13px; padding: 9px 4px; }
}

/* the site's own `section { padding: 72px 0 }` is for landing sections, not for these */
.pay-page section:not(.p-card) { padding: 0; }
.pay-page .p-narrow { padding: 20px; }

/* ---------- Motion: the same feel as the rest of the site (curves and the rise keyframes come from styles.css) ---------- */
/* buttons lift on hover, squash when pressed and spring back */
.p-btn { transition: transform .26s var(--spring), opacity .15s, background-color .2s; }
.p-btn:not(:disabled):hover { transform: translateY(-2px); }
.p-primary:not(:disabled):hover { transform: translateY(-3px) scale(1.02); }
.p-btn:not(:disabled):active { transform: scale(1.04, .92); transition-duration: .07s; }
.p-copy { transition: transform .26s var(--spring), background-color .2s; }
.p-copy:hover { transform: translateY(-1px); }
.p-copy:active { transform: scale(1.06, .9); transition-duration: .07s; }
/* a plan or a payment method answers the pointer, and the chosen one settles in */
.p-plan, .p-method { transition: transform .26s var(--ease), border-color .2s, box-shadow .2s, background-color .2s; }
.p-plan:hover, .p-method:hover { transform: translateY(-3px); }
.p-plan:active, .p-method:active { transform: scale(.985); transition-duration: .07s; }
.p-plans .p-plan[aria-checked=true] { animation: picked .35s var(--spring); }
@keyframes picked { 0% { transform: scale(.97); } 100% { transform: none; } }
.p-file { transition: border-color .2s, background-color .2s, color .2s; }
.p-file:hover { border-color: var(--teal); color: var(--teal-d); }
/* each step rises in when it appears: sign-in, the account, the plans, the payment, the done card */
.pay-head, .pay-page .p-card, #step1, #step2, #requests > * { animation: rise .45s var(--ease) both; }
.p-plans .p-plan:nth-child(2) { animation-delay: .05s; } .p-plans .p-plan:nth-child(3) { animation-delay: .1s; } .p-plans .p-plan:nth-child(4) { animation-delay: .15s; }
.p-plans .p-plan { animation: rise .45s var(--ease) both; }
/* the tick on the done card pops */
.p-check { animation: pop .5s var(--spring) .15s both; }
@keyframes pop { from { opacity: 0; transform: scale(.4); } }
/* the status message arrives with a small drop so it is noticed */
#msg:not([hidden]) { animation: rise .3s var(--ease); }
