/* R234b — RC DAVE BOOKS FOR WINDOWS ON THE HOME PAGE
   The download lives right on the home page, outside any login, like other software companies show theirs:
   (1) the hero: a gold "Download for Windows" button under "Get a Free Consultation" / "Client Login";
   (2) a showcase section under "What do you need today?": what it does, two screens, the big download button;
   (no menu tab and no picture at the top — he asked for both to go)
   Phones / tablets cannot run it: the button becomes "Send the link to my computer" (share / copy). */

/* ---------- the download button (gold, two lines) ---------- */
.hs-dl {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 14px 26px 14px 16px; border-radius: 18px;
  background: linear-gradient(135deg, var(--gold-bright) 0%, var(--gold) 55%, #b88f45 100%);
  color: var(--forest-dark); text-decoration: none;
  box-shadow: 0 14px 34px rgba(201,164,92,0.38), inset 0 1px 0 rgba(255,255,255,0.45);
  border: 0; cursor: pointer; font-family: 'Inter', sans-serif; text-align: left;
  position: relative; overflow: hidden;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.hs-dl::after { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, transparent, rgba(255,255,255,0.4), transparent); transform: translateX(-120%); transition: transform 0.7s ease; pointer-events: none; }
.hs-dl:hover { transform: translateY(-3px); box-shadow: 0 20px 44px rgba(201,164,92,0.5), inset 0 1px 0 rgba(255,255,255,0.45); }
.hs-dl:hover::after { transform: translateX(120%); }
.hs-dl:active { transform: translateY(0) scale(0.98); }
.hs-dl:focus-visible { outline: 3px solid var(--gold-bright); outline-offset: 3px; }
.hs-dl-ic {
  flex: 0 0 auto; width: 44px; height: 44px; border-radius: 13px;
  display: grid; place-items: center;
  background: var(--forest-dark); color: var(--gold-bright);
  box-shadow: inset 0 0 0 1px rgba(232,208,152,0.25);
}
.hs-dl-ic svg { width: 22px; height: 22px; }
.hs-dl:hover .hs-dl-ic svg { animation: hsBob 0.9s ease-in-out infinite; }
@keyframes hsBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(3px); } }
.hs-dl-txt { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.hs-dl-txt b { font-size: 17px; font-weight: 800; letter-spacing: -0.01em; white-space: nowrap; }
.hs-dl-txt small { font-size: 12.5px; font-weight: 600; opacity: 0.78; margin-top: 3px; white-space: nowrap; }
.hs-dl.hs-dl-sm { padding: 10px 20px 10px 12px; gap: 11px; border-radius: 15px; }
.hs-dl.hs-dl-sm .hs-dl-ic { width: 36px; height: 36px; border-radius: 11px; }
.hs-dl.hs-dl-sm .hs-dl-txt b { font-size: 15.5px; }
.hs-dl.hs-dl-sm .hs-dl-txt small { font-size: 11.5px; }

/* the name never goes through the page translator */
.hs-name { white-space: nowrap; }

/* ---------- the program's screens in window frames (the section) ---------- */
.hs-stage { position: relative; width: 100%; perspective: 1400px; }
.hs-win {
  display: block; position: relative; border-radius: 14px; overflow: hidden;
  background: #101a14; border: 1px solid rgba(232,208,152,0.32);
  box-shadow: 0 30px 70px rgba(0,0,0,0.45), 0 0 0 6px rgba(232,208,152,0.06);
  transform: rotateY(-9deg) rotateX(3deg); transform-origin: 60% 50%;
  transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease);
  text-decoration: none; cursor: pointer;
}
.hs-stage:hover .hs-win { transform: rotateY(-3deg) rotateX(1deg) translateY(-4px); box-shadow: 0 36px 80px rgba(0,0,0,0.5), 0 0 0 6px rgba(232,208,152,0.09); }
.hs-bar { display: flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; background: linear-gradient(#1d2d23, #16241b); border-bottom: 1px solid rgba(232,208,152,0.18); }
.hs-bar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,0.22); }
.hs-bar i:first-child { background: #e8735c; } .hs-bar i:nth-child(2) { background: var(--gold); } .hs-bar i:nth-child(3) { background: #4fce8a; }
.hs-bar span { margin-left: 8px; font: 600 11px/1 'Inter', sans-serif; color: rgba(255,255,255,0.72); letter-spacing: 0.2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hs-win img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top left; }
.hs-chip {
  position: absolute; z-index: 2; display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 13px; border-radius: 12px; white-space: nowrap;
  font: 700 12.5px/1.2 'Inter', sans-serif; color: var(--forest-dark);
  background: rgba(255,255,255,0.94); box-shadow: 0 12px 30px rgba(0,0,0,0.28);
  animation: hsFloat 6s ease-in-out infinite; pointer-events: none;
}
.hs-chip em { font-style: normal; font-weight: 600; color: #4b5a50; }
.hs-chip .hs-ok { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: #2f7a4f; color: #fff; font-size: 11px; }
.hs-chip-a { left: -26px; bottom: 26px; }
.hs-chip-b { right: -14px; top: -16px; background: var(--forest-dark); color: var(--gold-bright); border: 1px solid rgba(232,208,152,0.4); animation-delay: -3s; }
@keyframes hsFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

/* ---------- (1) the hero's third button ---------- */
.hs-hero-cta-wrap { margin-top: 18px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; position: relative; z-index: 1; }
.hs-hero-cta-wrap .hs-note { font-size: 13px; color: rgba(255,255,255,0.68); }
@media (max-width: 640px) { .hs-hero-cta-wrap { display: none; } }

/* ---------- (2) the showcase section ---------- */
.hs-section { padding: 72px 0; }
.hs-card {
  position: relative; overflow: hidden; border-radius: 28px;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 48px; align-items: center;
  padding: 56px 56px 56px 60px;
  background:
    radial-gradient(900px 420px at 100% 0%, rgba(232,208,152,0.16), transparent 60%),
    radial-gradient(700px 400px at 0% 100%, rgba(58,95,71,0.55), transparent 65%),
    linear-gradient(140deg, var(--forest) 0%, var(--forest-dark) 100%);
  border: 1px solid rgba(232,208,152,0.22);
  box-shadow: var(--shadow-lg);
  color: var(--white);
}
.hs-card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.6;
  background-image: linear-gradient(rgba(232,208,152,0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(232,208,152,0.05) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 60%); mask-image: linear-gradient(90deg, transparent, #000 60%);
}
.hs-copy, .hs-shots { position: relative; z-index: 1; min-width: 0; }
.hs-eyebrow {
  display: inline-flex; align-items: center; gap: 9px; margin-bottom: 18px;
  padding: 7px 14px 7px 10px; border-radius: 100px;
  background: rgba(232,208,152,0.13); border: 1px solid rgba(232,208,152,0.3);
  font-size: 12px; font-weight: 800; letter-spacing: 1.4px; text-transform: uppercase; color: var(--gold-bright);
}
.hs-eyebrow .hs-new { background: var(--gold-bright); color: var(--forest-dark); border-radius: 100px; padding: 2px 8px; letter-spacing: 0.8px; font-size: 11px; }
.hs-copy h2 { color: var(--white); font-size: clamp(28px, 3.3vw, 42px); line-height: 1.15; margin-bottom: 16px; }
.hs-copy h2 .hs-name { color: var(--gold-bright); }
[data-theme="dark"] .hs-copy h2 { color: var(--white); }
.hs-lead { color: rgba(255,255,255,0.8); font-size: 17px; line-height: 1.65; margin-bottom: 26px; max-width: 540px; }
.hs-points { list-style: none; padding: 0; margin: 0 0 30px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; }
.hs-points li { display: flex; gap: 12px; align-items: flex-start; min-width: 0; }
.hs-points .hs-ic { flex: 0 0 auto; width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; font-size: 18px; background: rgba(255,255,255,0.07); border: 1px solid rgba(232,208,152,0.2); }
.hs-points b { display: block; font-size: 15px; color: var(--white); line-height: 1.3; }
.hs-points small { display: block; font-size: 13px; color: rgba(255,255,255,0.64); line-height: 1.4; margin-top: 2px; }
.hs-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.hs-more { color: var(--gold-bright); font-weight: 700; font-size: 15px; text-decoration: none; border-bottom: 1px solid rgba(232,208,152,0.45); padding-bottom: 2px; white-space: nowrap; }
.hs-more:hover { border-bottom-color: var(--gold-bright); }
.hs-fine { margin-top: 18px; font-size: 13px; color: rgba(255,255,255,0.62); display: flex; flex-wrap: wrap; gap: 6px 16px; }
.hs-fine span { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.hs-fine span::before { content: "✓"; color: var(--gold-bright); font-weight: 800; }

.hs-shots { position: relative; padding: 30px 6px 64px 0; }
.hs-shots .hs-win { transform: rotateY(-7deg) rotateX(2deg); }
.hs-shots .hs-stage:hover .hs-win { transform: rotateY(-2deg) rotateX(1deg) translateY(-4px); }
.hs-shots .hs-win-2 {
  position: absolute; width: 56%; right: -28px; bottom: -44px; z-index: 2;
  transform: rotateY(-7deg) rotateX(2deg) translateZ(40px);
  box-shadow: 0 26px 60px rgba(0,0,0,0.55), 0 0 0 5px rgba(232,208,152,0.07);
}
.hs-shots .hs-chip-a { left: 0; bottom: -50px; }
.hs-shots .hs-chip-b { right: 14px; top: -18px; }

/* after the click: how to open it */
.hs-after { display: none; margin-top: 18px; padding: 14px 16px; border-radius: 14px; background: rgba(255,255,255,0.08); border: 1px solid rgba(232,208,152,0.28); color: rgba(255,255,255,0.88); font-size: 14px; line-height: 1.55; position: relative; }
.hs-after.on { display: block; animation: hsIn 0.35s var(--ease); }
.hs-after b { color: var(--gold-bright); }
.hs-after ol { margin: 6px 0 0 18px; padding: 0; }
.hs-after-x { position: absolute; top: 6px; right: 8px; background: none; border: 0; color: rgba(255,255,255,0.7); font-size: 20px; line-height: 1; cursor: pointer; padding: 4px 6px; }
@keyframes hsIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* a floating button (AI Assistant, WhatsApp, back to top) that would cover the card steps aside (home-software.js) */
.ai-assist-toggle.hs-away, .whatsapp-float.hs-away, .to-top-btn.hs-away {
  opacity: 0 !important; visibility: hidden !important; pointer-events: none !important;
  transition: opacity 0.2s ease, visibility 0s linear 0.2s !important;
}

/* phones / tablets: it is a Windows program */
.hs-phone-only { display: none; }
html.hs-touch .hs-phone-only { display: block; }
html.hs-touch .hs-desk-only { display: none !important; }
.hs-phone-note { margin-top: 14px; font-size: 13.5px; color: rgba(255,255,255,0.72); line-height: 1.5; }
.hs-phone-note b { color: var(--gold-bright); }

@media (max-width: 1100px) {
  .hs-card { gap: 36px; padding: 44px 40px; }
  .hs-points { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .hs-card { grid-template-columns: 1fr; padding: 40px 32px 36px; }
  .hs-shots { max-width: 560px; margin: 4px auto 0; width: 100%; }
  .hs-points { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .hs-section { padding: 36px 0 40px; }
  .hs-section > .container { padding: 0 14px; }
  .hs-card { border-radius: 22px; padding: 26px 18px 24px; gap: 22px; }
  .hs-copy h2 { font-size: 26px; }
  .hs-eyebrow { letter-spacing: 1.1px; }
  .hs-lead { font-size: 15px; margin-bottom: 18px; }
  .hs-points { grid-template-columns: 1fr; gap: 10px; margin-bottom: 22px; }
  .hs-points .hs-ic { width: 34px; height: 34px; font-size: 16px; }
  .hs-actions { gap: 12px; }
  .hs-dl { width: 100%; justify-content: flex-start; }
  .hs-more { white-space: normal; }
  .hs-shots { padding: 24px 0 92px; }
  .hs-shots .hs-win-2 { right: -6px; width: 54%; bottom: -36px; }
  .hs-shots .hs-chip-a { left: 0; bottom: -78px; font-size: 11.5px; padding: 6px 10px; }
  .hs-shots .hs-chip-b { right: 6px; top: -16px; font-size: 11.5px; padding: 6px 10px; }
  .hs-phone-only .hs-dl-txt b, .hs-phone-only .hs-dl-txt small { white-space: normal; }
  .hs-win, .hs-shots .hs-win, .hs-shots .hs-win-2 { transform: none; }
  .hs-fine { font-size: 12.5px; }
}
@media (prefers-reduced-motion: reduce) {
  .hs-chip, .hs-dl:hover .hs-dl-ic svg { animation: none; }
  .hs-win, .hs-dl { transition: none; }
}

/* the top menu keeps to one line at 901–1010 px (it spilled over by 20–60 px at 920–960 px wide) */
@media (min-width: 901px) and (max-width: 1010px) {
  .lang-toggle #langCurrentLabel { display: none; }
  .lang-toggle { height: 36px; padding: 0 10px; }
  .logo-text { font-size: 16px; }
  .logo-text .est { font-size: 11px; }
  .logo img.mark { width: 42px; height: 42px; }
  .main-nav > ul { gap: 0; }
  .main-nav a.nav-link { padding: 8px 7px; font-size: 13px; }
  .site-header .container { padding: 0 16px; gap: 8px; }
  .header-actions { gap: 5px; }
  .theme-toggle { width: 36px; height: 36px; font-size: 15px; }
  .btn-login { padding: 9px 14px; font-size: 13.5px; }
}
/* … and at 1121–1179 px (it spilled over by up to 18 px there too) */
@media (min-width: 1121px) and (max-width: 1179px) {
  .main-nav a.nav-link { padding: 9px 10px; }
  .site-header .container { gap: 14px; }
}
