/* ============================================================
   downloads.css — shared styles for all /downloads.html pages
   (ribalta, jammtext, kueit)
   ============================================================ */

/* ============================================================
   CSS CUSTOM PROPERTIES
   ============================================================ */
:root {
  --color-red:        #db313f;
  --color-red-dark:   #bd1004;
  --color-red-hover:  #a80e03;
  --color-blue:       #0e1587;
  --color-gold:       #F4C949;
  --color-white:      #ffffff;
  --color-bg:         #f7f7f7;
  --color-card-bg:    #ffffff;
  --color-text:       #222222;
  --color-text-muted: #555555;
  --color-border:     #e2e2e2;
  --color-shadow:     rgba(0,0,0,0.10);
  --font-base:        'Open Sans', sans-serif;
  --radius-btn:       30px;
  --radius-card:      12px;
  --transition:       all 0.3s ease;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-base);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.8;
  color: var(--color-text);
  background: var(--color-white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--color-red); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--color-red-dark); text-decoration: underline; }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-base);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-text);
}

h1 {
  font-size: clamp(22px, 3.5vw, 27px);
  font-weight: 300;
  letter-spacing: -0.5px;
  margin-bottom: 10px;
  color: #111 !important;
}

h2 {
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 700;
  margin-bottom: 10px;
}

h3 {
  font-size: clamp(16px, 2.5vw, 20px);
  font-weight: 600;
  color: var(--color-blue) !important;
  margin-bottom: 8px;
}

p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--color-text-muted);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-download {
  display: inline-block;
  padding: 14px 32px;
  border-radius: var(--radius-btn);
  background-color: var(--color-red);
  color: var(--color-white);
  font-family: var(--font-base);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 1px;
  border: 2px solid var(--color-red);
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  white-space: nowrap;
  text-decoration: none;
}

.btn-download:hover,
.btn-download:focus {
  background-color: var(--color-red-dark);
  border-color: var(--color-red-dark);
  color: var(--color-white);
  text-decoration: none;
  outline: none;
}

.btn-download:focus-visible {
  outline: 3px solid var(--color-blue);
  outline-offset: 3px;
}

.btn-outline {
  background-color: transparent;
  color: var(--color-red);
}

.btn-outline:hover,
.btn-outline:focus {
  background-color: var(--color-red);
  color: var(--color-white);
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  background: var(--color-white);
  padding: 60px 0 60px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.7s ease forwards 0.1s;
}

@keyframes fadeInUp {
  to { opacity: 1; transform: translateY(0); }
}

.hero-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 48px;
  display: flex;
  align-items: center;
  gap: 64px;
}

/* Left column — 42% */
.hero-content {
  flex: 0 0 42%;
  min-width: 0;
}

/* max-width is set per-product in each page's inline <style> */
.hero-logo {
  width: auto;
  height: auto;
  margin-bottom: 24px;
}

.hero-title {
  color: #111 !important;
  font-size: clamp(26px, 3.5vw, 40px) !important;
  font-weight: 300 !important;
}

.hero-subtitle {
  font-size: 16px;
  color: var(--color-text-muted);
  margin-top: 6px;
  margin-bottom: 0;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0 8px;
  align-items: center;
}

.meta-badge {
  display: inline-block;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 20px;
  padding: 5px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text);
  letter-spacing: 0.3px;
}

.platform-detect-msg {
  font-size: 13px;
  color: var(--color-blue);
  margin-bottom: 24px;
  min-height: 20px;
  font-weight: 600;
}

.hero-cta-wrap {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}

/* Right column — 58% */
.hero-screenshot {
  flex: 0 0 58%;
  min-width: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transform: translateY(16px);
  animation: fadeInUp 0.7s ease forwards 0.35s;
}

.screenshot-card {
  background: var(--color-white);
  border-radius: 24px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.13), 0 4px 18px rgba(0,0,0,0.07);
  overflow: hidden;
  max-width: 600px;
  width: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.screenshot-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 32px 80px rgba(0,0,0,0.17), 0 6px 22px rgba(0,0,0,0.09);
}

.screenshot-card img {
  width: 100%;
  height: auto;
  display: block;
}

/* ============================================================
   PLATFORM TABS
   ============================================================ */
.platform-section {
  background: var(--color-bg);
  padding: 50px 24px;
}

.platform-inner {
  max-width: 860px;
  margin: 0 auto;
}

.platform-section-title {
  text-align: center;
  margin-bottom: 28px;
  color: var(--color-text);
}

.platform-tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.tab-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-btn);
  background: var(--color-white);
  color: var(--color-text-muted);
  font-family: var(--font-base);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: var(--transition);
}

.tab-btn:hover {
  border-color: var(--color-red);
  color: var(--color-red);
}

.tab-btn.active {
  background: var(--color-red);
  border-color: var(--color-red);
  color: var(--color-white);
}

.tab-btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.platform-content { display: none; }
.platform-content.active { display: block; }

.platform-download-box {
  background: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 32px;
  text-align: center;
  box-shadow: 0 4px 16px var(--color-shadow);
}

.platform-download-box h3 {
  color: var(--color-text);
  margin-bottom: 8px;
}

.platform-download-box p {
  margin-bottom: 22px;
  font-size: 15px;
}

.store-badge {
  display: inline-block;
  margin: 6px;
}

.store-badge img {
  height: 44px;
  width: auto;
  border-radius: 8px;
}

/* ============================================================
   SEPARATOR LINE
   ============================================================ */
.section-divider {
  height: 3px;
  width: 60px;
  background: var(--color-red);
  border-radius: 2px;
  margin: 0 auto 20px;
}

/* ============================================================
   SYSTEM REQUIREMENTS SECTION
   ============================================================ */
.requirements-section {
  background: var(--color-white);
  padding: 70px 24px;
}

.requirements-inner {
  max-width: 860px;
  margin: 0 auto;
}

.section-heading-block {
  text-align: center;
  margin-bottom: 36px;
}

.section-heading-block h2 {
  color: var(--color-text);
  margin-bottom: 28px;
}

.section-heading-block .section-sub {
  font-size: 15px;
  color: var(--color-text-muted);
  font-style: italic;
}

.requirements-card {
  background: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  box-shadow: 0 6px 24px var(--color-shadow);
  padding: 40px;
}

.requirements-card .body-copy {
  font-size: 16px;
  line-height: 1.75;
  color: var(--color-text);
  margin-bottom: 36px;
  text-align: center;
}

.req-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.req-block {
  background: var(--color-bg);
  border-radius: 10px;
  padding: 24px 22px;
  border-top: 4px solid var(--color-red);
}

.req-block h3 {
  color: var(--color-blue);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.req-block p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--color-text);
}

/* ============================================================
   FOOTER STRIP
   ============================================================ */
.page-footer {
  background: var(--color-bg);
  border-top: 1px solid var(--color-border);
  padding: 28px 24px;
  text-align: center;
}

.page-footer p {
  font-size: 13px;
  color: var(--color-text-muted);
}

.page-footer a {
  color: var(--color-red);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  /* hero-logo max-width is overridden per-product (default 216px) */
  .hero-logo { margin-bottom: 45px !important; display: block; margin-left: auto; margin-right: auto; max-width: 216px !important; }
  .hero-title { font-size: 35px !important; }

  .hero-inner {
    flex-direction: column;
    gap: 40px;
    padding: 0 24px;
  }

  .hero-content {
    flex: none;
    width: 100%;
    order: 1;
    text-align: center;
  }

  .hero-cta-wrap {
    align-items: center;
  }

  .hero-meta {
    justify-content: center;
  }

  .hero-screenshot {
    order: 2;
    flex: none;
    width: 100%;
  }

  .screenshot-card {
    max-width: 480px;
    margin: 0 auto;
  }

  .hero {
    padding: 40px 0 40px;
  }
}

@media (max-width: 600px) {
  h1 { font-size: 22px; }
  h2 { font-size: 20px; }

  .hero { padding: 40px 0 30px; }

  .req-grid {
    grid-template-columns: 1fr;
  }

  .requirements-card {
    padding: 24px 20px;
  }

  .platform-tabs { gap: 8px; }

  .tab-btn {
    padding: 9px 16px;
    font-size: 13px;
  }

  .platform-download-box {
    padding: 24px 18px;
  }
}

@media (max-width: 375px) {
  h1 { font-size: 20px; }
  .btn-download { padding: 13px 24px; font-size: 14px; }
}
