:root {
  color-scheme: light;
  --ink: #272337;
  --muted: #665f72;
  --accent: #5a37a1;
  --line: #ded9e3;
  --paper: #faf9f6;
  font: 16px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box }
body, p, h1, h2 { margin: 0 }
[hidden] { display: none !important }
button, input { font: inherit }
button, summary, label:has(input[type=radio]) { cursor: pointer }
a, .link { color: var(--accent); text-underline-offset: 3px }
:focus-visible { outline: 3px solid #9b74da; outline-offset: 3px }
.wrap { max-width: 1100px; margin-inline: auto; padding-inline: 36px }
header { background: #fff; border-bottom: 1px solid var(--line) }
.brand { display: flex; align-items: center; gap: 12px; padding-block: 16px }
.brand img { display: block; flex: none }
.brand strong { display: block; font-size: 17px; line-height: 1.25; letter-spacing: -.015em }
.brand p { margin-top: 3px; font-size: 13px; color: var(--muted) }
.brand p:empty { display: none }
main { padding-block: 30px 44px }
.intro { margin-bottom: 24px }
h1 { font: normal clamp(38px, 4.5vw, 58px)/1.08 Georgia, serif; letter-spacing: -.05em; margin-bottom: 8px }
.intro p { color: var(--muted) }
.return-banner { padding: 16px 18px; margin-bottom: 20px; background: #f1edf7; border-radius: 12px }
.return-banner.received { background: #edf6ef; color: #205134 }
.return-banner p { margin-top: 5px }
form { display: grid; align-items: start; grid-template-columns: minmax(0,1.18fr) minmax(0,1fr); gap: clamp(20px,4vw,48px) }
fieldset { min-width: 0; border: 0; padding: 0; margin: 0 }
legend, h2 { padding: 0; font-size: 22px; line-height: 1.25; font-weight: 650; letter-spacing: -.035em }
legend { margin-bottom: 14px }
#plans { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); grid-auto-rows: 1fr; gap: 15px 9px }
.plan { display: grid; gap: 4px; align-content: start; position: relative; padding: 16px 14px 12px; border: 1px solid var(--line); border-radius: 13px; background: white }
.plan:hover { border-color: #b3a0cd }
.plan:has(:checked) { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); background: #f5effd }
input[type=radio] { width: 17px; height: 17px; margin: 0; accent-color: var(--accent); cursor: pointer }
.plan input { position: absolute; top: 16px; right: 12px }
.plan strong { font-size: clamp(19px,1.7vw,23px); letter-spacing: -.04em; padding-right: 18px; line-height: 1.2 }
.plan-name { font-size: 15px; font-weight: 600; line-height: 1.25 }
.plan small, .hint { font-size: 13px; color: var(--muted) }
.plan small { line-height: 1.25 }
.badge { position: absolute; top: -9px; left: 10px; border-radius: 99px; padding: 1px 8px; background: #f7dfad; color: #513810; font-size: 11px; font-weight: 650; line-height: 16px }
#premium { margin-top: 20px }
#premium h3 { margin: 0; font-size: 16px; line-height: 1.35 }
#benefits { list-style: none; padding: 0; margin: 8px 0; display: grid; gap: 4px }
#benefits li { display: flex; gap: 8px; font-size: 14px; align-items: baseline; line-height: 1.4 }
#benefits li::before { content: '✓'; color: var(--accent); font-weight: 750 }
.premium-details { color: var(--accent); font-size: 13px }
.premium-details summary { width: fit-content; text-underline-offset: 3px } .premium-details summary:hover { text-decoration: underline }
#premium-description { white-space: pre-line; margin-top: 8px; line-height: 1.55; color: var(--ink) }
.panel { border: 1px solid var(--line); border-radius: 17px; padding: 21px 23px; background: #fff; box-shadow: 0 5px 20px #30243e06 }
.order-summary { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; padding-block: 12px; border-bottom: 1px solid var(--line); margin-bottom: 14px }
#title { font-size: 15px; line-height: 1.3 } #total { white-space: nowrap; font-size: 19px; letter-spacing: -.035em }
.checkout-intro { font-size: 14px; color: var(--muted) }
.checkout-intro strong { color: var(--ink) }
.checkout-steps { list-style: none; display: grid; gap: 18px; padding: 0; margin: 16px 0 9px }
#pair-start { width: 100%; border: 0; cursor: pointer }
#pair-error { margin: 6px 0; border-inline-start: 3px solid #a32c46; font-weight: 600 }
#pair-message, #saved-receipt { overflow-wrap: anywhere }
#pair-help { min-height: 44px; font-size: 14px }
#pair-instructions { display: grid; gap: 6px; margin: 12px 0 0; padding-inline-start: 1.5em; font-size: 15px; line-height: 1.45 }
#pair-reset { margin-top: 10px; color: var(--muted); font-size: 13px }
/* Keep account and receipt actions aligned, with room to wrap long names and addresses. */
.order-detail { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 8px; font-size: 14px; line-height: 1.4 }
.order-detail .link { min-width: 44px; min-height: 32px; text-align: end; color: var(--muted) }
.checkout-steps:has(#profile-receipt:not([hidden])) { row-gap: 0 }
#logout-dialog { width: min(24rem, calc(100% - 32px)); padding: 22px; border: 1px solid var(--line); border-radius: 15px; color: var(--ink) }
#logout-dialog::backdrop { background: #27233766 }
#logout-note { margin: 10px 0 18px; color: var(--muted); font-size: 14px }
.logout-actions { display: flex; justify-content: flex-end; gap: 10px }
.logout-actions button { padding: 8px 16px; min-height: 44px; border: 1px solid var(--line); border-radius: 9px; background: white; color: var(--ink) }
#logout-stay { color: white; background: var(--accent); border-color: var(--accent) }
#checkout label { display: block; font-size: 15px; line-height: 24px; font-weight: 650; margin-bottom: 5px }
#checkout input { display: block; width: 100%; min-height: 45px; padding: 9px 12px; border: 1px solid #b9b2c1; border-radius: 9px; color: var(--ink); background: #fff }
#checkout input[aria-invalid=true] { border-color: #a32c46 }
.get-code { display: flex; align-items: center; justify-content: center; gap: 5px; min-height: 48px; padding: 10px; border-radius: 9px; background: #196599; color: white; font-size: 16px; font-weight: 650; text-align: center; text-decoration: none }
.get-code:hover { background: #134f79 }
.link { font: inherit; background: none; border: 0; padding: 0; text-decoration: underline }
#recipient, .form-error { font-size: 14px; border-radius: 7px; margin-top: 12px; padding: 9px 12px; overflow-wrap: anywhere }
#recipient { display: grid; color: #205134; background: #edf6ef }
.form-error { color: #7e2639; background: #fff0f2 }
#email-error { display: grid; gap: 5px; margin-top: 6px }
#error-message { font-weight: 650 }
.payment-action { margin-top: 19px }
.reassurance { display: flex; align-items: center; gap: 6px; font-size: 13px; color: #4c5150; margin-bottom: 7px }
.checkout-provider { margin-top: 6px; font-size: 13px; color: var(--muted) }
.reassurance span { flex: none; line-height: 1; display: grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: #e4f2e8; color: #237544; font-weight: 750 }
.primary { display: block; border: 0; border-radius: 10px; padding: 12px 16px; min-height: 48px; background: #53338e; color: white; font-weight: 650; text-decoration: none; text-align: center }
#submit { width: 100% } .primary:hover { background: #432973 } .primary:disabled { opacity: .78; cursor: wait }
.vpn { margin: 6px 0 0; font-size: 13px; line-height: 1.35; color: var(--muted); text-align: center }
.legal { margin-top: 11px; font-size: 12px; color: var(--muted) }
.legal-document { max-width: 820px; line-height: 1.65; overflow-wrap: anywhere }
.legal-document h1 { font-size: clamp(32px, 5vw, 48px) }
.legal-document h2 { margin-top: 1.8em }
.legal-document p, .legal-document ul, .legal-document ol { margin-block: 1em }
.legal-document blockquote { margin: 1.5em 0; padding-left: 1em; border-left: 3px solid var(--line) }
.demo-guide { max-width: 68ch; margin: 0 0 20px; color: var(--muted); font-size: 14px }
.demo-guide summary { color: var(--accent) }
.demo-guide ol { margin: 10px 0; padding-left: 22px }
.demo-guide li + li { margin-top: 5px }
.demo-cashier { max-width: 560px; display: grid; gap: 14px }
[data-mirror] #result:has(#invoice-details:not([hidden])) { margin-inline: auto; max-width: 500px }
[data-mirror] #result-note:empty { display: none }
#invoice-details { margin: 0 }
#invoice-details div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 10px 0 }
#invoice-details div + div { border-top: 1px solid var(--line) }
#invoice-details dt { color: var(--muted); font-size: 14px }
#invoice-details dd { min-width: 0; margin: 0; text-align: right; overflow-wrap: anywhere }
#invoice-plan, #invoice-amount { font-weight: 650 }
#invoice-amount { font-size: 24px; line-height: 1.2 }
#tariffs-again { justify-self: center; display: inline-flex; align-items: center; min-height: 44px; padding-inline: 12px; color: #666; font-size: 14px }
#result .help-actions:not(:has(> :not([hidden]))) { display: none }
#submit[aria-busy=true]::before, .checking::before {
  content: ''; display: inline-block; width: .95em; height: .95em; margin-right: .55em;
  border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%;
  vertical-align: -.12em; animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(1turn) } }
.link-loading { max-width: 32rem; padding-block: 12vh 3rem; display: grid; justify-items: start; gap: 14px }
.link-loading [role=status] { font-size: 20px; line-height: 1.4 }
.link-loading .checking { color: var(--accent); font-size: 22px }
@media (prefers-reduced-motion: reduce) {
  #submit[aria-busy=true]::before, .checking::before { animation: none }
}
footer { border-top: 1px solid var(--line) }
.foot-inner { display: flex; flex-wrap: wrap; gap: 18px 70px; padding-block: 23px 30px }
.foot-inner>div { display: grid; gap: 4px; align-content: start; font-size: 13px }
.footer-notice { display: grid; gap: 6px; padding: 16px 0 24px; border-top: 1px solid var(--line); font-size: 13px; line-height: 1.5; color: var(--muted) }
.footer-notice p { max-width: 92ch }
#mobile-plan { display: none }
.login-bar .get-code { width: 100% }
@media (max-width: 760px) {
  .login-bar:has(#pair-start:not([hidden])), .payment-bar {
    position: fixed; inset: auto 0 0; z-index: 5;
    padding: 9px max(16px, env(safe-area-inset-right)) calc(9px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
    background: white; border-top: 1px solid var(--line); box-shadow: 0 -3px 14px rgb(32 22 45 / 8%);
  }
  .payment-bar-row { display: flex; align-items: center; justify-content: space-between; gap: 12px }
  .order-detail .link { min-height: 44px }
  #mobile-plan { display: block; min-width: 0; font-size: 14px; font-weight: 650; line-height: 1.2; overflow-wrap: anywhere }
  .payment-bar #submit { width: auto; min-width: min(46%, 220px); flex-shrink: 0 }
  body:has(#form:not([hidden]) :is(#payment-action, #pair-start):not([hidden])) { padding-bottom: calc(110px + env(safe-area-inset-bottom)) }
  #email, #email-error, #error, #recipient, #pair-error { scroll-margin-bottom: calc(112px + env(safe-area-inset-bottom)) }

  .wrap { padding-inline: 17px } .brand { padding-block: 12px; gap: 10px }
  .brand img { width: 36px; height: 36px } .brand strong { font-size: 15px } .brand p { font-size: 12px; line-height: 1.35 }
  main { padding-block: 20px 24px } .intro { margin-bottom: 18px } .intro p { font-size: 14px }
  form { grid-template-columns: minmax(0,1fr); gap: 18px } legend,h2 { font-size: 20px } legend { margin-bottom: 9px }
  .plan { padding: 13px 10px 10px } .plan-name { font-size: 14px } .plan small { font-size: 12px }
  .plan input { right: 10px; top: 14px }
  #premium { margin-top: 16px } .panel { padding: 16px }
}
.home { max-width: 780px }
.bot-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px),1fr)); gap: 12px; margin: 20px 0 }
.bot-options a { display: grid; gap: 4px; text-decoration: none }
.bot-options a:hover { border-color: var(--accent) }
.bot-options strong { font-size: 19px }
.bot-options span { color: var(--muted); font-size: 14px }
.help { padding-block: clamp(24px, 5vw, 52px) 40px }
.help h1 { text-wrap: balance }
.help-intro { max-width: 62ch; margin-top: 12px; color: var(--muted) }
.help-nav, .help-actions, .help-links { display: flex; flex-wrap: wrap; gap: 6px 18px }
.help-nav { margin: 12px 0 20px }
.help-nav a, .help-links a { display: inline-flex; align-items: center; min-height: 40px }
.help-method { margin-block: 14px; padding: clamp(18px, 3vw, 28px); scroll-margin-top: 16px }
.help-recommended { position: relative }
.help-max-logo { vertical-align: -.2em }
.help-method h2, .help-support h2 { font-size: clamp(21px, 3vw, 26px) }
.help-method h3 { margin: 16px 0 0; font-size: 16px }
.help-method p, .help-support p { margin: 10px 0 }
.help-method ol { padding-left: 1.5em; margin: 10px 0 }
.help-method li { padding-left: .2em }
.help-method li + li { margin-top: 7px }
.help-method li::marker { color: var(--accent); font-weight: 650 }
.help-method code { white-space: nowrap; font-size: .9em }
.help-actions { gap: 8px; margin: 16px 0 }
.help-actions a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px 15px; border-radius: 9px; background: var(--accent); color: white; text-decoration: none; font-size: 15px; font-weight: 600 }
.help-actions a:hover { background: #432973 }
.help-method .help-result { margin: 0; font-size: 14px; color: var(--muted) }
.help-support { padding: 12px clamp(0px, 2vw, 20px) 0 }

#premium > summary { cursor: pointer; font-weight: 600; }

/* The mobile payment bar already stays on screen. On wide screens it floats only
   when the normal button in the order summary scrolls out of view. */
@media (min-width: 761px) {
  [data-mirror] #payment-bar-slot { min-height: 74px }
  [data-mirror] .payment-bar.floating {
    position: fixed; z-index: 5; bottom: 12px; right: max(36px, calc((100vw - 1028px) / 2));
    padding: 10px 14px; width: min(380px, 45vw); background: white;
    box-shadow: 0 4px 20px #30243e22; border: 1px solid var(--line); border-radius: 14px;
  }
  body[data-mirror]:has(#purchase:not([hidden])) { padding-bottom: 100px }
}
@media (max-width: 760px) {
  body[data-mirror]:has(#purchase:not([hidden])) { padding-bottom: calc(110px + env(safe-area-inset-bottom)) }
}
