/* ==========================================================================
   Evonex site — subpage styles (download, changelog, pricing)
   Loaded after styles.css to customize secondary view layouts.
   ========================================================================== */

.page {
  padding: 80px 0 60px;
}

.page-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 56px;
}

.page-head .eyebrow {
  justify-content: center;
}

.page-head h1 {
  font-size: clamp(2.1rem, 1.4rem + 2.5vw, 3rem);
  margin-top: 14px;
  font-weight: 800;
}

.page-head p {
  color: var(--text2);
  margin-top: 16px;
  font-size: 1.1rem;
}

/* ---- download ----------------------------------------------------------- */
.dl-wrap {
  max-width: 760px;
  margin: 0 auto;
}

.dl-card {
  padding: 40px;
  text-align: center;
}

.dl-card .ver-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-soft);
  border: 1px solid rgba(99, 102, 241, 0.2);
  color: var(--accent-hi);
  border-radius: 99px;
  padding: 6px 16px;
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.dl-card h2 {
  margin: 20px 0 8px;
  font-size: 1.8rem;
}

.dl-card .sub {
  color: var(--text2);
  font-size: 0.95rem;
}

.dl-actions {
  margin: 32px 0 16px;
  display: flex;
  justify-content: center;
}

.dl-note {
  color: var(--text3);
  font-size: 0.82rem;
  margin-top: 12px;
}

.dl-note a {
  color: var(--text2);
  text-decoration: underline;
}

.dl-note a:hover {
  color: #ffffff;
}

/* Specs layout */
.spec {
  margin-top: 36px;
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  padding-top: 24px;
}

.spec-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 16px;
  border-bottom: 0;
  text-align: left;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: all 0.2s ease;
}

.spec-row:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border2);
  transform: translateY(-1px);
}

.spec-row .k {
  color: var(--text3);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
}

.spec-row .k .ico {
  width: 14px;
  height: 14px;
  color: var(--accent-cyan);
}

.spec-row .v {
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 500;
}

.spec-row .v.mono {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--text2);
  word-break: break-all;
  cursor: pointer;
  padding: 2px 6px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 4px;
  border: 1px solid transparent;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.spec-row .v.mono:hover {
  border-color: var(--border2);
  background: rgba(255, 255, 255, 0.04);
  color: #ffffff;
}

@media (max-width: 600px) {
  .spec {
    grid-template-columns: 1fr;
  }
}

/* Download guide tabs */
.dl-tabs-container {
  margin-top: 48px;
}

.dl-tab-buttons {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 16px;
}

.dl-tab-btn {
  background: none;
  border: 0;
  color: var(--text3);
  font-family: inherit;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 8px 18px;
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.25s ease;
}

.dl-tab-btn:hover {
  color: var(--text2);
  background: rgba(255, 255, 255, 0.02);
}

.dl-tab-btn.active {
  color: #ffffff;
  background: var(--surface2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.dl-tab-pane {
  display: none;
  text-align: left;
  animation: fadeIn 0.3s ease both;
}

.dl-tab-pane.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

.guide-step-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.guide-step-item {
  display: flex;
  gap: 16px;
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid var(--border);
}

.guide-step-num {
  font-family: var(--mono);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-cyan);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent-cyan-soft);
  border: 1px solid rgba(6, 182, 212, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.guide-step-content h4 {
  font-size: 1rem;
  margin-bottom: 6px;
}

.guide-step-content p {
  font-size: 0.9rem;
  color: var(--text2);
}

.dl-help {
  text-align: center;
  margin-top: 36px;
  color: var(--text2);
  font-size: 0.92rem;
}

.dl-help a {
  color: var(--accent-hi);
  font-weight: 500;
}

.dl-help a:hover {
  text-decoration: underline;
}

/* ---- changelog ---------------------------------------------------------- */
.releases {
  max-width: 780px;
  margin: 0 auto;
  position: relative;
  padding-left: 32px;
}

/* Vertical timeline indicator line */
.releases::before {
  content: "";
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 11px;
  width: 2px;
  background: linear-gradient(180deg, var(--accent) 0%, var(--border) 100%);
}

.release {
  padding: 30px;
  margin-bottom: 30px;
  position: relative;
}

/* Timeline dot */
.release::before {
  content: "";
  position: absolute;
  top: 36px;
  left: -26px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--bg);
  border: 3px solid var(--accent);
  box-shadow: 0 0 10px var(--accent);
  z-index: 2;
  transition: all 0.3s ease;
}

.release:hover::before {
  background: #ffffff;
  transform: scale(1.2);
}

.release-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.release-head .ver {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #ffffff;
}

.release-head .chan {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  border-radius: 99px;
  padding: 4px 12px;
  border: 1px solid var(--border2);
  color: var(--text2);
  background: rgba(255, 255, 255, 0.02);
}

.release-head .chan.stable {
  color: var(--green);
  border-color: rgba(16, 185, 129, 0.3);
  background: rgba(16, 185, 129, 0.04);
}

.release-head .chan.beta {
  color: var(--amber);
  border-color: rgba(245, 158, 11, 0.3);
  background: rgba(245, 158, 11, 0.04);
}

.release-head .latest {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent-cyan);
  background: var(--accent-cyan-soft);
  border: 1px solid rgba(6, 182, 212, 0.25);
  border-radius: 99px;
  padding: 4px 12px;
}

.release-head .rel-date {
  margin-left: auto;
  color: var(--text3);
  font-size: 0.88rem;
  font-weight: 500;
}

@media (max-width: 600px) {
  .release-head .rel-date {
    margin-left: 0;
    width: 100%;
  }
}

.release .notes {
  color: var(--text2);
  font-size: 0.98rem;
}

.release .notes ul {
  margin: 0;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.release .notes li {
  line-height: 1.6;
}

.release-foot {
  margin-top: 24px;
  border-top: 1px solid var(--border);
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
}

.release-foot a {
  color: var(--accent-hi);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.release-foot a:hover {
  color: #ffffff;
}

.release-foot .meta {
  color: var(--text3);
  font-family: var(--mono);
}

.empty {
  text-align: center;
  color: var(--text2);
  padding: 64px 32px;
  border: 1.5px dashed var(--border2);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.01);
}

/* ---- pricing ------------------------------------------------------------ */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  max-width: 900px;
  margin: 0 auto;
  align-items: start;
}

@media (max-width: 768px) {
  .pricing-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* Annual switch toggle */
.billing-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
}

.billing-toggle .label {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text2);
  transition: color 0.2s ease;
}

.billing-toggle .label.active {
  color: #ffffff;
}

.billing-toggle .switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 26px;
  cursor: pointer;
}

.billing-toggle .switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.billing-toggle .slider {
  position: absolute;
  inset: 0;
  background-color: var(--surface3);
  border: 1px solid var(--border2);
  border-radius: 34px;
  transition: all 0.3s ease;
}

.billing-toggle .slider::before {
  content: "";
  position: absolute;
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: #ffffff;
  border-radius: 50%;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.billing-toggle input:checked + .slider {
  background-color: var(--accent);
  border-color: rgba(99, 102, 241, 0.5);
}

.billing-toggle input:checked + .slider::before {
  transform: translateX(24px);
}

.billing-toggle .discount-pill {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--green);
  background: var(--green-glow);
  border: 1px solid rgba(16, 185, 129, 0.2);
  padding: 3px 8px;
  border-radius: 99px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.price-card {
  padding: 40px 36px;
  position: relative;
}

.price-card.featured {
  border-color: rgba(139, 92, 246, 0.45);
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 24px 60px rgba(99, 102, 241, 0.16),
    0 0 0 1px rgba(139, 92, 246, 0.25);
}

.badge-pop {
  position: absolute;
  top: -14px;
  left: 36px;
  background: var(--grad-accent-horizontal);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 99px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.price-card h3 {
  font-size: 1.4rem;
  font-weight: 700;
}

.price-card .price-sub {
  color: var(--text2);
  font-size: 0.92rem;
  margin-top: 8px;
}

.price-now {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 24px 0 8px;
  flex-wrap: wrap;
}

.price-now .amt {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
  color: #ffffff;
}

.price-now .per {
  color: var(--text2);
  font-size: 0.95rem;
  font-weight: 500;
}

.price-now .was {
  color: var(--text3);
  text-decoration: line-through;
  font-size: 1.25rem;
  font-weight: 600;
}

.price-line {
  color: var(--text2);
  font-size: 0.88rem;
  min-height: 1.2em;
}

/* Custom Pricing Slider / Range style */
.calc {
  margin: 24px 0 8px;
}

.calc label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text2);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Custom HTML5 slider customization */
.slider-container {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}

.pricing-range {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  border-radius: 99px;
  background: var(--surface3);
  outline: none;
  border: 1px solid var(--border);
}

.pricing-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  border: 2px solid #ffffff;
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.4);
  transition: transform 0.1s ease;
}

.pricing-range::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

.pricing-range::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  border: 2px solid #ffffff;
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.4);
}

.calc-instance-display {
  font-family: var(--mono);
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  min-width: 42px;
  text-align: center;
}

.price-card .btn {
  width: 100%;
  margin: 26px 0 6px;
}

.feat {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.feat li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.92rem;
  color: var(--text2);
}

.feat li .ico {
  width: 16px;
  height: 16px;
  color: var(--green);
  flex-shrink: 0;
  margin-top: 2px;
}

.price-foot {
  text-align: center;
  color: var(--text3);
  font-size: 0.85rem;
  margin-top: 36px;
}

.price-faq {
  max-width: 760px;
  margin: 80px auto 0;
}

.price-faq h2 {
  text-align: center;
  font-size: 1.6rem;
  margin-bottom: 32px;
}
