/* =========================================================
   RoboWorker 24/7: checkout, ninja theme
   Sunset village scene, scroll panels, chakra glows, ink outlines.
   Same design system as the extension popup. Fonts are local (fonts/).
   ========================================================= */

@font-face { font-family: 'Bangers'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('fonts/bangers-latin.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url('fonts/inter-latin.woff2') format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 500 800; font-display: swap;
  src: url('fonts/jetbrains-mono-latin.woff2') format('woff2'); }

:root {
  --ink:       #0F0F14;
  --navy-950:  #070E1B;
  --navy-900:  #0A1628;
  --navy-800:  #1A2942;
  --orange:    #FF6B00;
  --orange-2:  #FF8C1A;
  --crimson:   #DC2626;
  --crimson-2: #B91C1C;
  --yellow:    #FCD34D;
  --chakra:    #00E5FF;
  --success:   #10B981;
  --danger:    #EF4444;

  --cream:     #FFF4DC;
  --dim:       #D6DFEE;
  --muted:     #A9B6CC;
  --parch:     #F8EBCB;
  --parch-2:   #EBD3A0;
  --parch-ink: #2A170B;

  --head: 'Bangers', 'Impact', 'Arial Black', sans-serif;
  --body: 'Inter', 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --mono: 'JetBrains Mono', 'SF Mono', Menlo, Consolas, monospace;

  --radius:   16px;
  --radius-s: 10px;

  --paper: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 .9 0 0 0 0 .7 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --paper-brown: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .27 0 0 0 0 .1 0 0 0 .16 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --scout-dot: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ccircle cx='16' cy='16' r='15' fill='%23DC2626' stroke='%230F0F14' stroke-width='2'/%3E%3Cg fill='%230F0F14'%3E%3Ccircle cx='16' cy='7.4' r='3'/%3E%3Ccircle cx='23.5' cy='20.3' r='3'/%3E%3Ccircle cx='8.5' cy='20.3' r='3'/%3E%3Ccircle cx='16' cy='16' r='3.4'/%3E%3C/g%3E%3C/svg%3E");
  --chakra-line: linear-gradient(90deg, var(--chakra), var(--yellow), var(--orange), var(--yellow), var(--chakra));
}

* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  min-height: 100vh; display: flex; flex-direction: column;
  background: #23163F; color: var(--cream);
  font: 15px/1.55 var(--body); -webkit-font-smoothing: antialiased;
}
:focus-visible { outline: 3px solid var(--chakra); outline-offset: 3px; border-radius: 6px; }
button { font: inherit; color: inherit; cursor: pointer; }
.ico { width: 1.15em; height: 1.15em; flex: none; color: var(--orange-2); }
.accent { color: var(--chakra); }

/* =========================================================
   Scene: the village at sunset
   ========================================================= */
.scene {
  position: fixed; inset: 0; z-index: -1; overflow: hidden;
  background: linear-gradient(180deg, #2B1A55 0%, #7A2E6E 14%, #D0491A 36%, #FF8C1A 58%, #FFC24D 84%, #FCD34D 100%);
}
.sun {
  position: absolute; left: 50%; bottom: 17%; margin-left: calc(clamp(150px, 30vmin, 320px) / -2); width: clamp(150px, 30vmin, 320px); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, #FFF9D6 0 30%, #FFE27A 31% 58%, #FF9A1F 100%);
  box-shadow: 0 0 70px 26px rgba(255, 150, 30, 0.6), 0 0 160px 60px rgba(255, 107, 0, 0.3);
  animation: sunPulse 7s ease-in-out infinite;
}
.cloud {
  position: absolute; left: 0; height: 44px; width: 220px; border-radius: 44px;
  background: rgba(255, 224, 170, 0.5); filter: blur(5px);
  animation: cloudDrift linear infinite; will-change: transform;
}
.cloud::before, .cloud::after { content: ''; position: absolute; background: inherit; border-radius: 50%; }
.cloud::before { width: 86px; height: 86px; left: 28px; top: -38px; }
.cloud::after  { width: 64px; height: 64px; right: 36px; top: -26px; }
.cloud.c1 { top: 13%; animation-duration: 150s; animation-delay: -40s; }
.cloud.c2 { top: 27%; transform: scale(0.7); animation-duration: 210s; animation-delay: -120s; opacity: 0.8; }
.cloud.c3 { top: 8%;  transform: scale(1.2); animation-duration: 260s; animation-delay: -200s; opacity: 0.6; }

.layer { position: absolute; left: 0; right: 0; bottom: 0; background-repeat: repeat-x; background-position: 0 100%; background-size: auto 100%; }
.layer.far  { height: 46vh; background-image: url('scene/far.svg'); opacity: 0.9; }
.layer.mid  { height: 34vh; background-image: url('scene/mid.svg'); }
.layer.near { height: 26vh; background-image: url('scene/near.svg'); }

.leaf { position: absolute; top: -30px; width: 16px; height: 16px; color: var(--orange-2); opacity: 0.55; animation: leafFall 20s linear infinite; }
.leaf.l1 { left: 8%;  animation-duration: 22s; }
.leaf.l2 { left: 24%; animation-duration: 17s; animation-delay: -7s;  width: 12px; height: 12px; }
.leaf.l3 { left: 47%; animation-duration: 25s; animation-delay: -12s; }
.leaf.l4 { left: 63%; animation-duration: 19s; animation-delay: -4s;  width: 13px; height: 13px; }
.leaf.l5 { left: 82%; animation-duration: 23s; animation-delay: -15s; }
.leaf.l6 { left: 93%; animation-duration: 18s; animation-delay: -9s;  width: 11px; height: 11px; }

/* =========================================================
   Header / footer
   ========================================================= */
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; max-width: 1080px; margin: 0 auto; padding: 16px 16px 8px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark { display: block; border-radius: 13px; filter: drop-shadow(2px 2px 0 var(--ink)) drop-shadow(0 0 10px rgba(255, 140, 26, 0.6)); }
.brand-name { font: 400 28px/1 var(--head); letter-spacing: 1.5px; color: #FFB04D; text-shadow: 2px 0 0 var(--ink), -2px 0 0 var(--ink), 0 2px 0 var(--ink), 0 -2px 0 var(--ink), 0 0 14px rgba(255, 140, 26, 0.6); }
.brand-name .accent { text-shadow: 2px 0 0 var(--ink), -2px 0 0 var(--ink), 0 2px 0 var(--ink), 0 -2px 0 var(--ink), 0 0 12px rgba(0, 229, 255, 0.7); }
.secure-pill {
  display: inline-flex; align-items: center; gap: 7px; padding: 6px 14px 5px;
  border: 2px solid var(--ink); border-radius: 999px; background: #0E2A22; color: #6EE7B7;
  font: 400 16px/1 var(--head); letter-spacing: 1.2px; text-transform: uppercase; box-shadow: 2px 2px 0 var(--ink);
}
.secure-pill .ico { color: currentColor; }

.wrap { flex: 1; width: 100%; max-width: 1080px; margin: 0 auto; padding: 14px 16px 44px; }
.site-footer { padding: 20px 16px 26px; text-align: center; font-size: 13px; color: var(--cream); }
.site-footer a { color: var(--yellow); font-weight: 700; }
.site-footer span:empty { display: none; }
/* the footer often lands on the bright sky, so the help line sits on a dark scroll tag, never on the scene */
.site-footer #supportLine { display: inline-block; padding: 8px 18px 7px; border: 2px solid var(--ink); border-radius: 999px; background: rgba(12, 23, 43, 0.95); box-shadow: 0 0 0 1px rgba(255, 140, 26, 0.4), 3px 3px 0 var(--ink); }

/* =========================================================
   Shared surfaces: dark scroll panels with orange rods
   ========================================================= */
.hero, .mission, .summary, .busy, .success, .trust li, .notice {
  position: relative;
  border: 2px solid var(--ink); border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 38%), var(--paper), linear-gradient(rgba(20, 35, 63, 0.94), rgba(12, 23, 43, 0.95));
  box-shadow: 0 0 0 1px rgba(255, 140, 26, 0.35), 5px 5px 0 var(--ink);
}
.hero::before, .hero::after, .mission::before, .mission::after, .busy::before, .busy::after, .success::before, .success::after {
  content: ''; position: absolute; left: -6px; right: -6px; height: 12px;
  border: 2px solid var(--ink); border-radius: 7px;
  background: linear-gradient(#E58A2E, #9A4E12 55%, #6B360C);
  box-shadow: inset 0 1px 0 rgba(255, 220, 160, 0.55); pointer-events: none;
}
.hero::before, .mission::before, .busy::before, .success::before { top: -7px; }
.hero::after,  .mission::after,  .busy::after,  .success::after  { bottom: -7px; }

/* Scroll Unroll on arrival */
.hero, .mission, .trust li, .success, .busy { animation: unroll 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) backwards; }
.mission { animation-delay: 0.15s; }
.trust li:nth-child(1) { animation-delay: 0.35s; }
.trust li:nth-child(2) { animation-delay: 0.45s; }
.trust li:nth-child(3) { animation-delay: 0.55s; }

/* =========================================================
   Hero + notice
   ========================================================= */
.hero {
  max-width: 760px; margin: 14px auto 34px; padding: 22px 26px 20px; text-align: center;
  border-color: transparent;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 38%) padding-box,
    linear-gradient(#152743, #0C172B) padding-box,
    var(--chakra-line) border-box;
  background-size: 100% 100%, 100% 100%, 300% 100%;
  animation: unroll 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) backwards, chakraFlow 6s linear infinite;
}
.hero h1 { font: 400 clamp(34px, 6vw, 54px)/1 var(--head); letter-spacing: 2px; color: #FFB04D; text-shadow: 3px 0 0 var(--ink), -3px 0 0 var(--ink), 0 3px 0 var(--ink), 0 -3px 0 var(--ink), 3px 3px 0 var(--ink), -3px -3px 0 var(--ink), 3px -3px 0 var(--ink), -3px 3px 0 var(--ink), 0 0 20px rgba(255, 140, 26, 0.6); }
.hero p { margin-top: 12px; font-size: 16px; color: var(--dim); }

.notice { max-width: 760px; margin: 0 auto 22px; padding: 14px 18px; text-align: center; font-size: 14px; color: #FDE68A; background: #3A2A08; }
.notice::before { content: 'Mission note'; display: block; margin-bottom: 2px; font: 400 20px var(--head); letter-spacing: 1.4px; text-transform: uppercase; color: var(--yellow); }

/* =========================================================
   Mission request form
   ========================================================= */
.mission { padding: 22px 22px 24px; }
.mission-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-bottom: 14px; margin-bottom: 20px; border-bottom: 2px dashed rgba(255, 255, 255, 0.2); }
.mission-title { display: inline-flex; align-items: center; gap: 9px; font: 400 26px/1 var(--head); letter-spacing: 1.6px; text-transform: uppercase; color: var(--yellow); text-shadow: 2px 2px 0 var(--ink); }
.mission-title .ico { width: 26px; height: 26px; filter: drop-shadow(2px 2px 0 var(--ink)); }
.mission-rank { padding: 4px 10px 3px; border: 2px solid var(--crimson-2); border-radius: 6px; color: #FF9A9A; font: 400 15px/1 var(--head); letter-spacing: 1.2px; text-transform: uppercase; transform: rotate(-3deg); }

.layout { display: grid; grid-template-columns: minmax(0, 1fr) 350px; gap: 26px; align-items: start; }
.steps { display: flex; flex-direction: column; gap: 26px; min-width: 0; }
fieldset { border: 0; min-width: 0; }
legend, .field label { display: block; margin-bottom: 14px; font: 400 21px/1.15 var(--head); letter-spacing: 1.2px; text-transform: uppercase; color: var(--yellow); text-shadow: 1px 1px 0 var(--ink); }

/* Plans: parchment scrolls */
.plan-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; padding-top: 14px; }
.loading { grid-column: 1 / -1; color: var(--muted); }
.plan { position: relative; display: block; cursor: pointer; }
.plan input { position: absolute; z-index: 3; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.plan::before, .plan::after {
  content: ''; position: absolute; z-index: 2; left: -5px; right: -5px; height: 11px; pointer-events: none;
  border: 2px solid var(--ink); border-radius: 6px;
  background: linear-gradient(#C9773A, #7A4318 60%, #57300F); box-shadow: inset 0 1px 0 rgba(255, 220, 160, 0.5);
}
.plan::before { top: -6px; }
.plan::after  { bottom: -6px; }

.plan-body {
  position: relative; display: flex; flex-direction: column; gap: 3px; height: 100%; padding: 30px 16px 22px;
  border: 2px solid var(--ink); border-radius: 8px; color: var(--parch-ink);
  background: var(--paper-brown), linear-gradient(#FAEFD2, var(--parch-2));
  box-shadow: inset 0 0 22px rgba(120, 70, 20, 0.3), 4px 4px 0 var(--ink);
  transition: box-shadow 0.2s;
}
/* rank ribbon, chosen by plan id (no JS needed) */
.plan-body::before {
  position: absolute; z-index: 4; top: -15px; left: 50%; transform: translateX(-50%);
  padding: 4px 14px 3px; border: 2px solid var(--ink); border-radius: 4px;
  background: linear-gradient(#EF4444, #B91C1C); color: #fff;
  font: 400 16px/1.1 var(--head); letter-spacing: 1.5px; text-transform: uppercase; white-space: nowrap; box-shadow: 2px 2px 0 var(--ink);
}
.plan:has(input[value="daily"])   .plan-body::before { content: 'Adept'; }
.plan:has(input[value="weekly"])  .plan-body::before { content: 'Expert'; }
.plan:has(input[value="monthly"]) .plan-body::before { content: 'Grandmaster'; }
/* speed lines + kunai trail on hover */
.plan-body::after {
  content: ''; position: absolute; inset: 0; border-radius: 6px; pointer-events: none; opacity: 0;
  background: repeating-linear-gradient(115deg, transparent 0 9px, rgba(255, 255, 255, 0.55) 9px 11px, transparent 11px 20px) 100% 0 / 220% 100%;
  -webkit-mask-image: linear-gradient(90deg, #000, transparent 80%); mask-image: linear-gradient(90deg, #000, transparent 80%);
}
.plan { transition: transform 0.2s; }
.plan:hover { transform: translateY(-4px) rotate(-0.5deg); }
.plan:hover .plan-body { box-shadow: inset 0 0 22px rgba(120, 70, 20, 0.3), 6px 8px 0 var(--ink); }
.plan:hover .plan-body::after { animation: speedSweep 0.3s ease-out forwards; }
.plan input:checked + .plan-body { animation: chakraPulse 2.2s ease-in-out infinite; }
.plan input:focus-visible + .plan-body { outline: 3px solid var(--chakra); outline-offset: 4px; }

.plan-name { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font: 400 25px/1 var(--head); letter-spacing: 1.4px; text-transform: uppercase; color: var(--parch-ink); }
.plan input:checked + .plan-body .plan-name::after { content: '✓ Chosen'; padding: 2px 8px 1px; border: 2px solid var(--ink); border-radius: 4px; background: var(--chakra); color: var(--ink); font: 400 13px/1.2 var(--head); letter-spacing: 1px; }
.tag { font-style: normal; padding: 2px 8px 1px; border: 2px solid var(--crimson-2); border-radius: 50px; background: #FFF4DC; color: var(--crimson-2); font: 400 12px/1.2 var(--head); letter-spacing: 1px; transform: rotate(-4deg); }
.plan-price { margin-top: 2px; font: 800 34px/1.1 var(--mono); letter-spacing: -1px; color: #9A3412; }
.plan-dur { margin-bottom: 8px; font-size: 13.5px; font-weight: 700; color: #5B3A1A; }
.plan-feats { list-style: none; display: flex; flex-direction: column; gap: 7px; font-size: 13.5px; font-weight: 600; color: var(--parch-ink); }
.plan-feats li { position: relative; padding-left: 20px; }
.plan-feats li::before { content: ''; position: absolute; left: 1px; top: 0.35em; width: 10px; height: 10px; background: var(--orange); border: 1.5px solid var(--ink); transform: rotate(45deg); }

/* Email field */
.field input {
  width: 100%; height: 52px; padding: 0 16px;
  border: 2px solid var(--ink); border-radius: var(--radius-s);
  background: #0A1424; color: var(--cream); font: 500 16px var(--body);   /* 16px stops iOS zoom-on-focus */
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.55);
}
.field input::placeholder { color: #8291AD; }
/* Chakra Flow: gradient border runs around the focused field */
.field input:focus {
  outline: none; border-color: transparent;
  background: linear-gradient(#0A1424, #0A1424) padding-box, var(--chakra-line) border-box; background-size: 100% 100%, 300% 100%;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.55), 0 0 18px rgba(0, 229, 255, 0.4);
  animation: chakraFlow 2.4s linear infinite;
}
.field input[aria-invalid="true"] { border-color: var(--danger); box-shadow: 0 0 14px rgba(239, 68, 68, 0.5); }
.hint { margin-top: 9px; font-size: 13px; color: var(--muted); }
.error { margin-top: 9px; font-size: 13.5px; font-weight: 600; color: #FF9A9A; }

/* =========================================================
   Summary ("mission brief") + pay button
   ========================================================= */
.summary { position: sticky; top: 16px; padding: 22px 22px 20px; background-color: #0C172B; }
.summary h2 { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; font: 400 24px/1 var(--head); letter-spacing: 1.4px; text-transform: uppercase; color: var(--yellow); text-shadow: 2px 2px 0 var(--ink); }
.summary h2 .ico { width: 24px; height: 24px; filter: drop-shadow(2px 2px 0 var(--ink)); }
.rows > div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 2px dashed rgba(255, 255, 255, 0.16); font-size: 14.5px; }
.rows dt { color: var(--muted); }
.rows dd { font-weight: 700; text-align: right; color: var(--cream); }
.total { display: flex; justify-content: space-between; align-items: baseline; padding: 16px 0 6px; }
.total span { font: 400 20px var(--head); letter-spacing: 1.2px; text-transform: uppercase; color: var(--dim); }
.total strong { font: 800 34px var(--mono); letter-spacing: -1px; color: var(--yellow); text-shadow: 0 0 16px rgba(252, 211, 77, 0.45); }
.region { margin: 4px 0 16px; font-size: 13.5px; color: var(--muted); }
.region b { color: var(--dim); }
.link { display: inline-flex; align-items: center; min-height: 24px; min-width: 24px; background: none; border: 0; padding: 2px 6px; color: var(--yellow); font: 400 17px var(--head); letter-spacing: 1px; text-transform: uppercase; text-decoration: underline; text-underline-offset: 3px; }

.pay {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 58px;
  border: 2px solid var(--ink); border-radius: 12px;
  background: linear-gradient(#FFB347, #FF8C1A 48%, #FF6B00); color: var(--ink);
  font: 400 24px/1 var(--head); letter-spacing: 1.6px; text-transform: uppercase; text-shadow: 0 1px 0 rgba(255, 255, 255, 0.4);
  box-shadow: 4px 4px 0 var(--ink), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transition: transform 0.12s, box-shadow 0.12s, filter 0.2s;
}
.pay::before {   /* power spin */
  content: ''; flex: none; width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--ink);
  background: radial-gradient(circle, #fff 0 16%, transparent 17%), conic-gradient(from 0deg, #00E5FF, #fff 18%, #00E5FF 38%, #7DF3FF 58%, #fff 78%, #00E5FF);
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.9); animation: spinChakra 3.4s linear infinite;
}
.pay::after {    /* speed lines */
  content: ''; position: absolute; inset: -2px; z-index: -1; pointer-events: none; opacity: 0;
  background: repeating-linear-gradient(115deg, transparent 0 9px, rgba(255, 255, 255, 0.6) 9px 11px, transparent 11px 20px);
  -webkit-mask-image: linear-gradient(90deg, #000, transparent 85%); mask-image: linear-gradient(90deg, #000, transparent 85%);
}
.pay:not(:disabled) { animation: chakraPulse 1.9s ease-in-out infinite; }
.pay:hover:not(:disabled) { transform: translate(-1px, -2px); box-shadow: 5px 6px 0 var(--ink), inset 0 1px 0 rgba(255, 255, 255, 0.3); filter: brightness(1.07); }
.pay:hover:not(:disabled)::before { animation-duration: 0.55s; }
.pay:hover:not(:disabled)::after { animation: speedSweep 0.3s ease-out forwards; }
.pay:active:not(:disabled) { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }
.pay:disabled { opacity: 0.55; cursor: not-allowed; filter: grayscale(0.7); }
.pay:disabled::before { animation: none; }
/* waiting on the gateway: the power spin becomes a spinning Scout Mode eye */
.pay[aria-busy="true"] { cursor: progress; }
.pay[aria-busy="true"]::before { background: var(--scout-dot) center / cover; border: 0; box-shadow: 0 0 10px rgba(220, 38, 38, 0.8); animation: spinChakra 1s linear infinite; }   /* full shorthand: .pay:disabled::before sets animation:none, and a busy button IS disabled */

.gateway { margin-top: 13px; text-align: center; font-size: 12.5px; color: var(--muted); }

/* Error: PAYMENT FAILED */
#payError.blocked {
  margin-top: 14px; padding: 10px 14px 12px; text-align: center; font-size: 14px; font-weight: 600; color: #FFD0D0;
  border: 2px solid var(--ink); border-radius: var(--radius-s); background: #3A1116;
  box-shadow: 0 0 0 2px var(--crimson), 0 0 26px rgba(239, 68, 68, 0.6), 3px 3px 0 var(--ink);
  animation: impactIn 0.35s cubic-bezier(0.2, 1.4, 0.4, 1);
}
#payError.blocked::before { content: 'Payment failed'; display: block; margin-bottom: 2px; font: 400 30px/1.05 var(--head); letter-spacing: 1.6px; text-transform: uppercase; color: #FF7A7A; text-shadow: 2px 2px 0 var(--ink), 0 0 16px rgba(239, 68, 68, 0.8); }

/* =========================================================
   Trust row
   ========================================================= */
.trust { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 38px; }
.trust li { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; font-size: 13.5px; color: var(--dim); box-shadow: 0 0 0 1px rgba(255, 140, 26, 0.3), 3px 3px 0 var(--ink); }
.trust .ico { width: 26px; height: 26px; margin-top: 2px; }
.trust b { display: block; margin-bottom: 2px; font: 400 19px/1.1 var(--head); letter-spacing: 1.1px; text-transform: uppercase; color: var(--yellow); }

/* =========================================================
   Busy: Scout Mode eye
   ========================================================= */
.busy { display: flex; flex-direction: column; align-items: center; gap: 18px; max-width: 460px; margin: 90px auto; padding: 40px 30px; }
.busy p { font: 400 24px/1.1 var(--head); letter-spacing: 1.6px; text-transform: uppercase; color: var(--cream); text-align: center; }
.scout-eye { width: 84px; height: 84px; filter: drop-shadow(0 0 14px rgba(220, 38, 38, 0.8)); animation: spinChakra 1.1s linear infinite; }

/* =========================================================
   Success: MISSION COMPLETE!
   ========================================================= */
.success { max-width: 660px; margin: 26px auto 0; padding: 26px 26px 26px; text-align: center; }
.hero-bot { display: block; margin: -10px auto 0; overflow: visible; }
.hero-bot .thumb { transform-box: fill-box; transform-origin: 20% 90%; animation: thumbUp 2.4s cubic-bezier(0.3, 1.6, 0.5, 1) 0.4s backwards, thumbWiggle 3s ease-in-out 2.8s infinite; }
.hero-bot .bot { animation: botBounce 2.6s ease-in-out infinite; }
.hero-bot .aura { animation: sunPulse 3s ease-in-out infinite; transform-origin: center; transform-box: fill-box; }
.hero-bot .blink { animation: blink 4s infinite; transform-box: fill-box; transform-origin: center; }
.hero-bot .spark path { animation: twinkle 1.6s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.hero-bot .spark .s2 { animation-delay: -0.5s; }
.hero-bot .spark .s3 { animation-delay: -1s; }
.success h1 { margin-top: 4px; font: 400 clamp(38px, 8vw, 60px)/1 var(--head); letter-spacing: 2px; text-transform: uppercase; color: var(--yellow); outline: none; text-shadow: 3px 0 0 var(--ink), -3px 0 0 var(--ink), 0 3px 0 var(--ink), 0 -3px 0 var(--ink), 3px 3px 0 var(--ink), -3px -3px 0 var(--ink), 3px -3px 0 var(--ink), -3px 3px 0 var(--ink), 0 0 26px rgba(252, 211, 77, 0.65); animation: impactIn 0.6s cubic-bezier(0.2, 1.4, 0.4, 1) 0.2s backwards; }
.lead { margin-top: 10px; font-size: 16px; color: var(--dim); }
.lead b { color: var(--cream); }

.key-card {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 12px; margin: 26px 0 14px; padding: 22px 16px 20px;
  border: 2px solid var(--ink); border-radius: 10px; color: var(--parch-ink);
  background: var(--paper-brown), linear-gradient(#FAEFD2, var(--parch-2));
  box-shadow: inset 0 0 24px rgba(120, 70, 20, 0.3), 0 0 0 3px var(--orange), 0 0 26px rgba(255, 140, 26, 0.55), 5px 5px 0 var(--ink);
  animation: chakraPulse 3s ease-in-out infinite;
}
.key-label { display: inline-flex; align-items: center; gap: 7px; font: 400 21px/1 var(--head); letter-spacing: 1.6px; text-transform: uppercase; color: #8A2B0B; }
.key-label .ico { color: #8A2B0B; }
.key { max-width: 100%; font: 800 clamp(18px, 4.6vw, 28px)/1.25 var(--mono); letter-spacing: 1px; color: var(--parch-ink); word-break: break-all; user-select: all; }
.copy {
  min-height: 44px; padding: 0 26px; border: 2px solid var(--ink); border-radius: 10px;
  background: linear-gradient(#FFB347, #FF6B00); color: var(--ink);
  font: 400 20px/1 var(--head); letter-spacing: 1.4px; text-transform: uppercase; box-shadow: 3px 3px 0 var(--ink);
  transition: transform 0.12s, box-shadow 0.12s;
}
.copy:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); }
.copy:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.copy.done { background: linear-gradient(#6EE7B7, #10B981); }

.email-status { min-height: 1.4em; font-size: 14.5px; color: var(--dim); }
.email-status.warn { color: #FDE68A; }

.how { max-width: 100%; margin: 24px auto 0; padding: 16px 20px 16px 42px; text-align: left; border: 2px solid var(--ink); border-left: 6px solid var(--orange); border-radius: 10px; background: linear-gradient(#1C2F52, #142440); color: var(--dim); }
.how li { padding: 4px 0 4px 4px; }
.how li::marker { color: var(--yellow); font: 400 20px var(--head); }
.how b { color: var(--cream); }
.fine { margin-top: 16px; font-size: 13px; color: var(--muted); }

/* =========================================================
   Impact frame: while a button is pressed, the page flashes black-and-white
   ========================================================= */
body:has(button:active:not(:disabled)) .wrap { filter: grayscale(1) invert(1) contrast(1.5); }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 960px) {
  .layout { grid-template-columns: 1fr; }
  .summary { position: static; }
}
@media (max-width: 680px) {
  .plan-list { grid-template-columns: 1fr; gap: 26px; }
  .plan-body { padding: 28px 16px 20px; }
  .trust { grid-template-columns: 1fr; }
  .secure-pill { display: none; }
  .brand-name { font-size: 23px; }
  .mission { padding: 20px 14px 22px; }
  .mission-title { font-size: 22px; }
  .mission-rank { display: none; }
  .hero { padding: 20px 16px 18px; }
}

/* =========================================================
   Keyframes
   ========================================================= */
@keyframes chakraFlow { to { background-position: 0 0, 0 0, 300% 0; } }
.field input:focus { animation-name: chakraFlowInput; }
@keyframes chakraFlowInput { to { background-position: 0 0, 300% 0; } }
@keyframes chakraPulse {
  0%, 100% { box-shadow: 4px 4px 0 var(--ink), 0 0 8px rgba(255, 140, 26, 0.6), 0 0 18px rgba(252, 211, 77, 0.3); }
  50%      { box-shadow: 4px 4px 0 var(--ink), 0 0 16px rgba(0, 229, 255, 0.75), 0 0 32px rgba(252, 211, 77, 0.5); }
}
@keyframes speedSweep {
  0%   { opacity: 0; background-position: 100% 0; }
  35%  { opacity: 0.95; }
  100% { opacity: 0; background-position: 0 0; }
}
@keyframes spinChakra { to { transform: rotate(360deg); } }
@keyframes unroll {
  from { clip-path: inset(0 -20px 100% -20px); opacity: 0; }
  to   { clip-path: inset(-20px -20px -20px -20px); opacity: 1; }
}
@keyframes impactIn { 0% { transform: scale(0.75) rotate(-2deg); opacity: 0; } 100% { transform: none; opacity: 1; } }
@keyframes sunPulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.05); opacity: 0.92; } }
@keyframes cloudDrift { from { transform: translateX(-30vw); } to { transform: translateX(130vw); } }
@keyframes leafFall { 0% { transform: translate3d(0, -40px, 0) rotate(0); } 100% { transform: translate3d(-140px, 108vh, 0) rotate(600deg); } }
@keyframes thumbUp {
  0%   { transform: translateY(40px) rotate(-30deg) scale(0.4); opacity: 0; }
  60%  { transform: translateY(-8px) rotate(8deg) scale(1.1); opacity: 1; }
  100% { transform: none; opacity: 1; }
}
@keyframes thumbWiggle { 0%, 88%, 100% { transform: none; } 92% { transform: rotate(-9deg); } 96% { transform: rotate(5deg); } }
@keyframes botBounce { 0%, 100% { transform: translate(-2px, 10px); } 50% { transform: translate(-2px, 4px); } }
@keyframes blink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(0.1); } }
@keyframes twinkle { 0%, 100% { transform: scale(0.6) rotate(0); opacity: 0.6; } 50% { transform: scale(1.15) rotate(20deg); opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; transition-duration: 0.001ms !important; }
  .leaf, .cloud { display: none; }
  body:has(button:active:not(:disabled)) .wrap { filter: none; }
}
