/* Asteria prototype, round 2 v10: readability. Hero buttons, a calmer finale and a dock that
   steps aside where the page already offers a button. Tokens live in proto.css. */
.hero-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 30px; text-shadow: none; }
.hero-cta a { display: inline-flex; align-items: center; min-height: 52px; padding: 0 26px; border-radius: 999px; font-size: 16px; font-weight: 500; text-decoration: none; transition: transform 0.25s var(--ease), background 0.3s, color 0.3s; }
.hero-cta a:active { transform: scale(0.96); }
.hc-main { background: var(--sage); color: var(--forest); box-shadow: 0 14px 34px rgba(22, 36, 29, 0.3); }
.hc-main:hover { background: var(--paper); }
.hc-alt { border: 1px solid rgba(247, 241, 232, 0.75); color: var(--paper); background: rgba(47, 34, 27, 0.18); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.hc-alt:hover { background: rgba(47, 34, 27, 0.35); }

/* The dock hides while the hero or the finale shows its own buttons. */
.dock { transition: transform 0.55s var(--ease), opacity 0.4s; }
.dock.off { transform: translateY(160%); opacity: 0; }
.dock.off .dock-in { pointer-events: none; }

/* The finale is shorter, so there is no empty screen before the call. */
.finale { height: 160vh; }

@media (max-width: 760px) {
  .hero-cta { flex-direction: column; align-items: center; gap: 8px; margin-top: 22px; }
  .hero-cta a { min-height: 48px; font-size: 15px; }
  .finale { height: 140vh; }
  /* Room at the sides for the objects that circle the call. */
  .finale-copy { padding-inline: 40px; }
  .finale-copy h2 { font-size: 42px; }
}
@media (prefers-reduced-motion: reduce) {
  .finale { height: auto; }
}

/* Scroll cue: a line with a drop of light running down it, and the words breathing,
   so the eye catches it from the side. It is also a link to the next section. */
.scroll-cue { bottom: 26px; display: grid; justify-items: center; gap: 10px; text-decoration: none; animation: cueBob 2.6s ease-in-out infinite; }
.cue-txt { animation: cuePulse 2.6s ease-in-out infinite; }
.cue-line { position: relative; width: 2px; height: 46px; border-radius: 2px; background: rgba(247, 241, 232, 0.28); overflow: hidden; }
.cue-line i { position: absolute; inset-inline: 0; top: 0; height: 40%; border-radius: 2px; background: var(--paper); box-shadow: 0 0 10px rgba(247, 241, 232, 0.9); animation: cueDrop 1.8s cubic-bezier(0.65, 0, 0.35, 1) infinite; }
@keyframes cueDrop { 0% { transform: translateY(-110%); opacity: 0; } 20% { opacity: 1; } 100% { transform: translateY(260%); opacity: 0; } }
@keyframes cuePulse { 0%, 100% { opacity: 0.6; } 50% { opacity: 1; } }
@keyframes cueBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(5px); } }

/* The plan card keeps one height whatever the plan: room for a two-line name, a one-line
   price and a two-line note, each centred in its own space. */
.plan { height: clamp(500px, 40vw, 560px); min-height: 0; }
.plan h3 { min-height: 2.1em; display: grid; place-items: center; text-wrap: balance; }
.plan .price { white-space: nowrap; }
.plan .price small { margin-inline-start: 0.15em; font-size: 0.32em; font-weight: 500; color: var(--mist); }
.plan .per { min-height: 3.2em; display: grid; place-items: center; text-wrap: balance; }
@media (max-width: 760px) {
  .plan { height: 500px; }
}
/* Price and its "per month": side by side, the small word on the reading side's end. */
.plan .price { display: flex; justify-content: center; align-items: baseline; }
.plan .price small { unicode-bidi: isolate; }
#site[dir="rtl"] .plan .price { flex-direction: row-reverse; }
#site[dir="rtl"] .plan .price small { margin-inline-start: 0; margin-inline-end: 0.15em; }

/* The brand name is set in Young Serif (a soft, rounded serif); everything else stays in Rubik. */
:root { --brand: "Young Serif", Georgia, serif; }
.top .logo { font-family: var(--brand); font-weight: 400; letter-spacing: -0.01em; }
.giant { font-family: var(--brand); font-weight: 400; letter-spacing: -0.03em; }

/* Short screens (a laptop with the browser bar open): the buttons need the room; the cue goes. */
@media (max-height: 640px) { .scroll-cue { display: none; } }
