/* AccuDownloader site: the rose theme shared by the homepage and the post-purchase page. */

:root {
  color-scheme: light;
  --ink: #4a2c33;
  --muted: #7d6565;
  --rose: #a85c68;
  --tint: #fdf3f1;
  --danger: #a4402e;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font: 18px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 15% 5%, rgba(255, 247, 244, 0.95) 0, transparent 45%),
    radial-gradient(circle at 90% 100%, rgba(214, 150, 150, 0.35) 0, transparent 45%),
    linear-gradient(135deg, #fcebe6 0%, #f4d3cb 55%, #ecc2b8 100%);
  min-height: 100vh;
}
p { margin: 0 0 14px; color: var(--muted); }

.brand { display: flex; align-items: center; gap: 16px; margin-bottom: 28px; font-size: 26px; font-weight: 700; color: #8f4c57; }
.brand img { width: 60px; height: 60px; filter: drop-shadow(0 6px 14px rgba(110, 55, 65, 0.25)); }

footer { max-width: 1080px; margin: 0 auto; padding: 0 28px 40px; font-size: 15px; color: var(--muted); }
footer a { color: var(--rose); font-weight: 600; }

.panel {
  padding: 34px 40px;
  border-radius: 22px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.55));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.95), 0 0 0 1px rgba(168, 92, 104, 0.2), 0 24px 50px rgba(110, 55, 65, 0.22);
}
.panel h2 { margin: 0 0 6px; font-size: 30px; color: #5b2f38; }
.panel .price { margin: 0 0 18px; font-size: 20px; font-weight: 700; color: var(--rose); }
.panel ol { margin: 0 0 18px; padding-left: 22px; color: var(--muted); }
.panel li { margin-bottom: 6px; }
.panel p:last-child { margin: 0; }
.panel + .panel { margin-top: 24px; }

/* ---------- the buy form (homepage) and the key result (both pages) ---------- */

.buy-form { display: flex; flex-direction: column; gap: 16px; margin: 22px 0 0; }
.buy-field { display: flex; flex-direction: column; gap: 6px; }
.buy-field span { font-size: 13px; font-weight: 700; color: var(--muted); }
.buy-field input, .buy-field textarea {
  font: inherit; font-size: 16px; padding: 11px 13px; border-radius: 10px;
  border: 1px solid rgba(168, 92, 104, 0.25); background: #fff; color: var(--ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.buy-field textarea { resize: vertical; max-height: 320px; line-height: 1.5; }
/* A field holding something looks different from an empty one. The inputs are told apart by their
   placeholder, and the message box by being valid, which a required textarea only is once it has
   text in it. */
.buy-field input:not(:placeholder-shown), .buy-field textarea:valid { background: var(--tint); }
.buy-field input:focus, .buy-field textarea:focus { outline: none; border-color: var(--rose); box-shadow: 0 0 0 3px rgba(168, 92, 104, 0.25); }
.promo-row { display: flex; gap: 10px; align-items: flex-end; }
.promo-row .buy-field { flex: 1; min-width: 0; }

.ghost-button, .buy-button {
  font: inherit; font-weight: 700; cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.ghost-button {
  font-size: 14px; padding: 11px 18px; border-radius: 10px;
  border: 1px solid rgba(168, 92, 104, 0.35); background: transparent; color: var(--rose);
}
.ghost-button:hover { background: rgba(168, 92, 104, 0.08); transform: translateY(-1px); }
.buy-button {
  font-size: 17px; padding: 14px 20px; border-radius: 12px; border: none;
  background: linear-gradient(180deg, #c07783, var(--rose)); color: #fff;
  box-shadow: 0 10px 24px rgba(110, 55, 65, 0.3);
}
.buy-button:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(110, 55, 65, 0.35); }
.buy-button:disabled, .ghost-button:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }

.price-line { margin: 0; font-size: 17px; font-weight: 700; color: var(--ink); }
.price-line strong { color: var(--rose); }
.discount-line { margin: 0; font-size: 14px; }
.buy-error { margin: 0; font-size: 14px; color: var(--danger); }

.buy-result { margin-top: 20px; padding-top: 20px; border-top: 1px solid rgba(168, 92, 104, 0.2); display: flex; flex-direction: column; gap: 12px; }
.key-row { display: flex; align-items: center; gap: 12px; padding: 13px 16px; border-radius: 10px; background: var(--tint); }
.key-row code { font-size: 16px; font-weight: 700; letter-spacing: 0.03em; color: var(--ink); background: none; padding: 0; }
.licence-howto { margin: 20px 0 0; font-size: 14px; }

.support-line { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 22px 0 0; font-size: 19px; font-weight: 700; }
.support-line a { color: var(--rose); }
.support-label { font-size: 15px; font-weight: 400; color: var(--muted); }
.support-sent { margin: 0; font-size: 17px; font-weight: 700; color: var(--rose); }
/* A field no person sees, so anything typed into it came from a program filling in the whole form. */
.decoy { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.icon-button {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; padding: 0; cursor: pointer;
  border: 1px solid rgba(168, 92, 104, 0.35); border-radius: 10px;
  background: transparent; color: var(--rose);
  transition: transform 0.15s ease, background 0.15s ease;
}
.icon-button:hover { background: rgba(168, 92, 104, 0.08); transform: translateY(-1px); }
footer a + a { margin-left: 18px; }

@media (max-width: 820px) { .panel { padding: 26px 24px; } }
@media (max-width: 480px) { .promo-row { flex-direction: column; align-items: stretch; } }
@media (prefers-reduced-motion: reduce) {
  .ghost-button, .ghost-button:hover, .buy-button, .buy-button:hover,
  .icon-button, .icon-button:hover { transition: none; transform: none; }
}

/* An element the script hides with the hidden attribute must stay hidden even when a rule here
   gives it a display of its own: an empty result block or a bulk bar with nothing selected would
   otherwise sit on the page from the moment it loads. */
[hidden] { display: none !important; }
