/* ==========================================================================
   Bumpr Marketing Website — styles.css
   ========================================================================== */

/* --------------------------------------------------------------------------
   Design Tokens (CSS Custom Properties)
   -------------------------------------------------------------------------- */
:root {
  /* Colors */
  --color-bg-start: #444D58;
  --color-bg-end: #151D27;
  --color-triangle: #151D27;
  --color-text: #FFFFFF;
  --color-text-muted: rgba(255, 255, 255, 0.6);
  --color-accent: #FAF000;
  --color-link: #FFFFFF;
  --color-link-hover: #FAF000;

  /* Typography */
  --font-family: 'Libre Franklin', sans-serif;
  --font-size-xs: 12px;
  --font-size-sm: 13px;
  --font-size-base: 15px;
  --font-size-md: 18px;
  --font-size-lg: 24px;
  --font-size-xl: 32px;
  --font-size-xxl: 40px;
  --line-height-tight: 1.2;
  --line-height-base: 1.53; /* 23px / 15px */
  --line-height-relaxed: 1.6;
  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;

  /* Layout */
  --max-width: 1280px;
  --content-width: 980px;
  --content-padding: 150px;
  --main-col-width: 570px;
  --sidebar-width: 292px;
  --column-gap: 118px;
  --nav-height: 60px;

  /* Spacing */
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 40px;
  --space-xl: 64px;
  --space-xxl: 96px;

  /* Misc */
  --border-radius: 8px;
  --transition: 0.2s ease;
}

/* --------------------------------------------------------------------------
   Reset / Normalize
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  transition: opacity 0.15s ease;
}

body {
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-regular);
  line-height: var(--line-height-base);
  color: var(--color-text);
  background: linear-gradient(to bottom, var(--color-bg-start), var(--color-bg-end));
  background-attachment: fixed;
  min-height: 100vh;
}

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

a {
  color: var(--color-link);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--color-link-hover);
}

ul, ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* --------------------------------------------------------------------------
   Triangle Background
   Figma: 1280×832px, fill #151D27 at 20% opacity
   Path: M1280 832V0L0 832H1280Z = bottom-right triangle
   Diagonal runs from top-right → bottom-left
   -------------------------------------------------------------------------- */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: -1;
  background: rgba(21, 29, 39, 0.2);
  clip-path: polygon(100% 0, 0 100%, 100% 100%);
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   Typography
   -------------------------------------------------------------------------- */
h1, h2, h3, h4 {
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-tight);
}

h1 {
  font-size: var(--font-size-xxl);
}

h2 {
  font-size: var(--font-size-xl);
}

h3 {
  font-size: var(--font-size-lg);
}

h4 {
  font-size: var(--font-size-md);
}

.text-accent {
  color: var(--color-accent);
}

.text-muted {
  color: var(--color-text-muted);
}

.text-bold {
  font-weight: var(--font-weight-bold);
}

.text-semibold {
  font-weight: var(--font-weight-semibold);
}

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */
.page-wrapper {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.content-area {
  max-width: var(--content-width);
  margin: 0 auto;
  display: flex;
  gap: var(--column-gap);
  padding-top: var(--space-lg);
}

.main-column {
  flex: 1;
  min-width: 0;
  max-width: var(--main-col-width);
  padding-bottom: 100px;
}

#nav-placeholder {
  min-height: 100px;
}

.sidebar {
  width: var(--sidebar-width);
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   Navigation
   -------------------------------------------------------------------------- */
.nav {
  display: flex;
  align-items: center;
  padding: var(--space-lg) 0 var(--space-md);
  max-width: var(--content-width);
  margin: 0 auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 65px;
}

.nav-links a {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-bold);
  color: var(--color-text);
  padding-bottom: 6px;
  border-bottom: 8px solid transparent;
  transition: color var(--transition), border-color var(--transition);
}

.nav-links a:hover {
  color: var(--color-text);
  border-bottom-color: rgba(255, 255, 255, 0.4);
}

.nav-links a.is-active {
  color: var(--color-text);
  border-bottom-color: var(--color-text);
}

/* --------------------------------------------------------------------------
   Sidebar Widget (Desktop App Card)
   -------------------------------------------------------------------------- */
.app-widget {
  position: sticky;
  top: var(--space-lg);
  text-align: center;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 15px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  width: 292px;
  height: 729px;
  padding: 50px 32px;
}

.app-widget-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 50px;
}

.app-widget-logo {
  width: 176px;
  height: 76px;
  object-fit: contain;
}

.app-widget-tagline {
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-bold);
  color: var(--color-text);
  line-height: 19px;
  text-align: center;
  width: 213px;
}

.app-widget-rating-block {
  text-align: center;
  width: 213px;
}

.app-widget-score {
  font-size: 38px;
  font-weight: var(--font-weight-bold);
  line-height: 1;
  margin-bottom: 4px;
}

.app-widget-rating-label {
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-bold);
  color: var(--color-text);
  margin-bottom: 4px;
}

.app-widget-stars {
  font-size: 20px;
  color: var(--color-text);
  letter-spacing: 2px;
}

.app-widget-download {
  background: #000000;
  border-radius: 10px;
  padding: 14px 20px;
  text-align: center;
  width: 176px;
  height: 209px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.app-widget-cta {
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-bold);
  margin-bottom: 2px;
}

.app-widget-system-req {
  font-size: 10px;
  color: var(--color-text-muted);
  font-weight: var(--font-weight-medium);
  margin-bottom: var(--space-sm);
}

.app-widget-download-icon {
  margin: 0 auto var(--space-sm);
  width: 60px;
  height: 60px;
}

.app-store-badge {
  display: inline-block;
  transition: opacity var(--transition);
}

.app-store-badge:hover {
  opacity: 0.8;
}

.app-store-badge img {
  height: 40px;
  width: auto;
  margin: 0 auto;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer {
  text-align: left;
  padding-top: var(--space-xl);
  padding-bottom: var(--space-md);
  font-size: var(--font-size-xs);
  color: var(--color-text);
  font-weight: var(--font-weight-regular);
}

.footer-names {
  text-decoration: underline;
  text-decoration-skip-ink: none;
  text-underline-offset: 2px;
}

/* --------------------------------------------------------------------------
   Home Page — Sections
   -------------------------------------------------------------------------- */

/* What's New Banner */
.whats-new-banner {
  margin-bottom: var(--space-lg);
}

.whats-new-label {
  font-size: var(--font-size-sm);
  margin-bottom: 4px;
}

.whats-new-desc {
  font-size: var(--font-size-base);
  line-height: var(--line-height-base);
  color: var(--color-text);
}

.whats-new-desc a {
  color: var(--color-accent);
  text-decoration: underline;
  text-decoration-color: var(--color-accent);
  text-underline-offset: 2px;
  font-weight: var(--font-weight-medium);
}

.whats-new-desc a:hover {
  opacity: 0.8;
}

/* Hero */
.hero-section {
  margin-bottom: var(--space-xl);
}

.hero-headline {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-regular);
  line-height: var(--line-height-relaxed);
}

.hero-headline strong {
  font-weight: var(--font-weight-bold);
}

/* Feature Sections (browser/mail selection) */
.feature-section {
  margin-bottom: var(--space-xl);
}

.feature-intro {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-regular);
  line-height: var(--line-height-relaxed);
  color: var(--color-text);
  margin-bottom: var(--space-md);
}

.app-screenshot {
  margin-bottom: var(--space-md);
}

.app-screenshot img {
  display: block;
  max-width: 380px;
  width: 100%;
  height: auto;
  border-radius: 0;
}

/* Closing Section */
.closing-section {
  margin-bottom: var(--space-lg);
}

.closing-text {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-regular);
  line-height: var(--line-height-relaxed);
  color: var(--color-text);
  margin-bottom: var(--space-md);
}

.closing-cta {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-regular);
  line-height: var(--line-height-relaxed);
  color: var(--color-text);
}

.closing-cta a {
  color: var(--color-accent);
  text-decoration: underline;
  text-decoration-color: var(--color-accent);
  text-underline-offset: 2px;
  font-weight: var(--font-weight-medium);
}

.closing-cta a:hover {
  opacity: 0.8;
}

/* Section Heading (used on FAQs page) */
.section-heading {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-bold);
  margin-bottom: 50px;
}

/* Version list (What's New) */
.version-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.version-entry {
  /* Each version block */
}

.version-title {
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--space-sm);
}

.version-notes {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.version-notes li {
  font-size: var(--font-size-base);
  line-height: var(--line-height-base);
  color: var(--color-text-muted);
  padding-left: 0;
  display: flex;
  align-items: flex-start;
  gap: var(--space-xs);
}

.new-badge {
  display: inline-block;
  flex-shrink: 0;
  font-size: 10px;
  font-weight: var(--font-weight-bold);
  text-transform: uppercase;
  color: var(--color-triangle);
  background: var(--color-accent);
  padding: 2px 6px;
  border-radius: 3px;
  margin-top: 3px;
  letter-spacing: 0.05em;
}

/* --------------------------------------------------------------------------
   About Page — Changelog
   -------------------------------------------------------------------------- */
.about-intro {
  font-size: var(--font-size-lg);
  line-height: var(--line-height-relaxed);
  color: var(--color-text);
  margin-bottom: 50px;
}

.about-intro strong {
  font-weight: 800;
}

.changelog-heading {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-bold);
  color: var(--color-text);
  margin-bottom: 50px;
}

.changelog {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.changelog-version {
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-bold);
  color: var(--color-text);
  padding-left: 65px;
  padding-top: 40px;
}

.changelog-version:first-child {
  padding-top: 0;
}

.changelog-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.changelog-badge-col {
  width: 46px;
  flex-shrink: 0;
  display: flex;
  justify-content: flex-start;
  padding-top: 1px;
}

.cl-badge {
  display: inline-block;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 2px 5px;
  border-radius: 3px;
  color: #151D27;
  line-height: 1.4;
}

.cl-badge--current {
  background: #FAF000;
}

.cl-badge--default {
  background: #D9D9D9;
}

.cl-badge--hidden {
  visibility: hidden;
}

.changelog-text {
  font-size: var(--font-size-base);
  line-height: 20px;
  color: var(--color-text);
  flex: 1;
  min-width: 0;
}

.changelog-text--current {
  color: #FFF6B1;
}

/* --------------------------------------------------------------------------
   FAQs Page — Always Visible Q&A
   -------------------------------------------------------------------------- */
.faq-qa-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.faq-q {
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-bold);
  color: var(--color-text);
  padding-top: 40px;
  line-height: var(--line-height-base);
  margin-bottom: 8px;
}

.faq-qa:first-child .faq-q {
  padding-top: 0;
}

.faq-q--current {
  color: #FAF000;
}

.faq-a {
  font-size: var(--font-size-base);
  line-height: var(--line-height-base);
  color: var(--color-text);
}

.faq-a--current {
  color: #FFF6B1;
}

.faq-a p + p {
  margin-top: 12px;
}

.faq-a a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.faq-a a:hover {
  opacity: 0.8;
}

/* --------------------------------------------------------------------------
   Tagline variants — desktop shows one version, mobile the other
   -------------------------------------------------------------------------- */
.app-widget-tagline--mobile {
  display: none;
}

/* --------------------------------------------------------------------------
   Responsive — Mobile (≤767px)
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {
  .content-area {
    flex-direction: column;
    gap: var(--space-lg);
    padding-left: 41.5px;
    padding-right: 41.5px;
    padding-top: var(--space-lg);
  }

  .main-column {
    max-width: 100%;
  }

  .sidebar {
    width: 100%;
    order: -1;
  }

  /* Full-size widget (Home) */
  .app-widget {
    position: static;
    width: 100%;
    max-width: 310px;
    height: auto;
    margin: 0 auto;
    padding: 50px 32px;
  }

  /* Compact widget (About / FAQs) — no download box, smaller logo */
  .sidebar:not(.sidebar--home) .app-widget {
    padding-top: 30px;
    padding-bottom: 30px;
  }

  .sidebar:not(.sidebar--home) .app-widget-logo {
    width: 95px;
    height: 42px;
  }

  .sidebar:not(.sidebar--home) .app-widget-download {
    display: none;
  }

  /* Hide rating on all mobile */
  .app-widget-rating-block {
    display: none;
  }

  /* Tagline swap */
  .app-widget-tagline--desktop {
    display: none;
  }

  .app-widget-tagline--mobile {
    display: block;
  }

  .nav {
    padding: var(--space-sm) 41.5px;
  }
}

/* --------------------------------------------------------------------------
   Responsive — Tablet (768px–1023px)
   -------------------------------------------------------------------------- */
@media (min-width: 768px) and (max-width: 1023px) {
  .content-area {
    flex-direction: column;
    gap: var(--space-lg);
    padding-left: 41.5px;
    padding-right: 41.5px;
    padding-top: var(--space-lg);
    max-width: 680px;
    margin: 0 auto;
  }

  .main-column {
    max-width: 100%;
  }

  .sidebar {
    width: 100%;
    order: -1;
  }

  .app-widget {
    position: static;
    width: 100%;
    max-width: 310px;
    height: auto;
    margin: 0 auto;
    padding: 50px 32px;
  }

  .sidebar:not(.sidebar--home) .app-widget {
    padding-top: 30px;
    padding-bottom: 30px;
  }

  .sidebar:not(.sidebar--home) .app-widget-logo {
    width: 95px;
    height: 42px;
  }

  .sidebar:not(.sidebar--home) .app-widget-download {
    display: none;
  }

  .app-widget-rating-block {
    display: none;
  }

  .app-widget-tagline--desktop {
    display: none;
  }

  .app-widget-tagline--mobile {
    display: block;
  }

  .nav {
    padding: var(--space-sm) 41.5px;
  }
}

/* --------------------------------------------------------------------------
   Responsive — Desktop (≥1024px)
   -------------------------------------------------------------------------- */
@media (min-width: 1024px) {
  .content-area {
    padding-left: 0;
    padding-right: 0;
  }
}

/* --------------------------------------------------------------------------
   Responsive — Wide (≥1280px)
   -------------------------------------------------------------------------- */
@media (min-width: 1280px) {
  .page-wrapper {
    padding: 0;
  }
}
