/* GanttBoard for Jira — landing site styles */

:root {
  --primary: #0052CC;
  --primary-hover: #0747A6;
  --text: #172B4D;
  --text-subtle: #5E6C84;
  --bg: #FFFFFF;
  --bg-subtle: #F4F5F7;
  --border: #DFE1E6;
  --success: #00875A;
  --warning: #FF8B00;
  --danger: #DE350B;
  --radius: 3px;
  --max-width: 1200px;
  --header-height: 64px;
  --font-stack: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-stack);
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  color: var(--text);
  line-height: 1.2;
  margin-top: 0;
}

h1 { font-size: 2.25rem; font-weight: 700; margin-bottom: 1rem; }
h2 { font-size: 1.75rem; font-weight: 700; margin-bottom: 0.75rem; }
h3 { font-size: 1.25rem; font-weight: 600; margin-bottom: 0.5rem; }
h4 { font-size: 1.05rem; font-weight: 600; margin-bottom: 0.5rem; }

p { margin: 0 0 1rem; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* ----- Header ----- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--text);
  font-size: 1.05rem;
}

.brand img {
  width: 32px;
  height: 32px;
  border-radius: 6px;
}

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

.nav a {
  color: var(--text);
  font-weight: 500;
  font-size: 0.95rem;
}

.nav a:hover { color: var(--primary); text-decoration: none; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text);
}

/* ----- Buttons ----- */
.btn {
  display: inline-block;
  padding: 10px 18px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  line-height: 1.2;
}

.btn-primary {
  background: var(--primary);
  color: #FFFFFF !important;
}
.btn-primary:hover {
  background: var(--primary-hover);
  text-decoration: none;
  color: #FFFFFF !important;
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover { background: var(--bg-subtle); text-decoration: none; }

.btn-lg { padding: 14px 24px; font-size: 1.05rem; }

/* ----- Hero ----- */
.hero {
  padding: 72px 0 48px;
  background: linear-gradient(180deg, #F4F5F7 0%, #FFFFFF 100%);
  border-bottom: 1px solid var(--border);
}

.hero h1 {
  font-size: 2.75rem;
  max-width: 820px;
  margin-bottom: 1.25rem;
}

.hero .lead {
  font-size: 1.2rem;
  color: var(--text-subtle);
  max-width: 720px;
  margin-bottom: 1.75rem;
}

.hero-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 2rem;
}

.hero-meta {
  color: var(--text-subtle);
  font-size: 0.9rem;
}

/* ----- YouTube embed ----- */
.video-embed {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(9, 30, 66, 0.15);
  border: 1px solid var(--border);
  background: #000;
}
.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ----- Sections ----- */
section { padding: 64px 0; }
section.alt { background: var(--bg-subtle); }

.section-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 2.5rem;
}
.section-head p { color: var(--text-subtle); font-size: 1.1rem; }

/* ----- Grids ----- */
.grid {
  display: grid;
  gap: 24px;
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 24px;
}

.card h3 { margin-bottom: 8px; }
.card p { color: var(--text-subtle); margin: 0; }

/* ----- Feature rows (alternating) ----- */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  padding: 56px 0;
  border-bottom: 1px solid var(--border);
}
.feature-row:last-child { border-bottom: 0; }
.feature-row.reverse .feature-text { order: 2; }
.feature-row.reverse .feature-img { order: 1; }

.feature-img img {
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 4px 24px rgba(9, 30, 66, 0.08);
}

/* ----- Screenshot cycler (hero showcase) ----- */
.showcase {
  max-width: 1040px;
  margin: 0 auto;
}
.showcase-frame {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  background: #000;
  aspect-ratio: 16 / 9;
  box-shadow: 0 4px 24px rgba(9, 30, 66, 0.08);
}
.showcase-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
}
.showcase-slide.active { opacity: 1; }
.showcase-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.showcase-caption {
  text-align: center;
  margin-top: 16px;
  color: var(--text-subtle);
  font-size: 0.95rem;
  min-height: 1.5em;
}
.showcase-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}
.showcase-dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  border-radius: 50%;
  border: 0;
  background: var(--border);
  cursor: pointer;
}
.showcase-dots button.active { background: var(--primary); }

/* ----- Tables ----- */
.table-wrap { overflow-x: auto; }
table.compare {
  width: 100%;
  border-collapse: collapse;
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
}
table.compare th, table.compare td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}
table.compare th {
  background: var(--bg-subtle);
  font-weight: 600;
}
table.compare tr:last-child td { border-bottom: 0; }
table.compare td.yes { color: var(--success); font-weight: 600; }
table.compare td.no { color: var(--text-subtle); }
table.compare td.us { background: #E6F0FF; font-weight: 600; }

/* ----- Pricing ----- */
.pricing-banner {
  background: #E3FCEF;
  border: 1px solid #ABF5D1;
  color: #006644;
  padding: 14px 20px;
  border-radius: var(--radius);
  font-weight: 600;
  text-align: center;
  margin-bottom: 40px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.price-card {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 22px 18px;
  text-align: center;
}
.price-card.featured {
  border-color: var(--primary);
  box-shadow: 0 4px 16px rgba(0, 82, 204, 0.12);
  position: relative;
}
.price-card.featured::before {
  content: "Most popular";
  position: absolute;
  top: -10px; left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #FFFFFF;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.price-card h3 { font-size: 1.05rem; margin-bottom: 4px; }
.price-tier { color: var(--text-subtle); font-size: 0.85rem; margin-bottom: 12px; }
.price-amount { font-size: 1.75rem; font-weight: 700; color: var(--text); }
.price-unit { color: var(--text-subtle); font-size: 0.85rem; margin-bottom: 12px; }

/* ----- FAQ ----- */
.faq details {
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 16px 20px;
  margin-bottom: 12px;
  background: #FFFFFF;
}
.faq details[open] { border-color: var(--primary); }
.faq summary {
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 24px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 0; top: 0;
  font-size: 1.25rem;
  color: var(--text-subtle);
}
.faq details[open] summary::after { content: "\2013"; }
.faq details > p { margin: 12px 0 0; color: var(--text-subtle); }

/* ----- Docs ----- */
.docs-toc {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 20px 24px;
  margin-bottom: 32px;
}
.docs-toc ol { margin: 0; padding-left: 20px; }

.step-list { counter-reset: step; padding: 0; list-style: none; }
.step-list li {
  counter-increment: step;
  position: relative;
  padding: 0 0 24px 52px;
  border-left: 2px solid var(--border);
  margin-left: 16px;
}
.step-list li::before {
  content: counter(step);
  position: absolute;
  left: -17px; top: 0;
  width: 32px; height: 32px;
  background: var(--primary);
  color: #FFFFFF;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
}
.step-list li:last-child { border-left-color: transparent; }

/* ----- Shortcuts ----- */
.shortcut-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.shortcut-section h3 {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-subtle);
  margin-bottom: 10px;
}
.shortcut-section dl {
  margin: 0;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 12px;
  align-items: center;
}
.shortcut-section dt { color: var(--text); font-size: 0.92rem; }
.shortcut-section dd { margin: 0; display: flex; gap: 4px; justify-content: flex-end; }
kbd {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2px 7px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.8rem;
  color: var(--text);
  box-shadow: 0 1px 0 rgba(9, 30, 66, 0.12);
}

/* ----- Changelog ----- */
.changelog-entry {
  border-left: 3px solid var(--primary);
  padding: 4px 0 4px 20px;
  margin-bottom: 32px;
}
.changelog-entry h2 {
  font-size: 1.3rem;
  margin-bottom: 4px;
}
.changelog-date {
  color: var(--text-subtle);
  font-size: 0.9rem;
  margin-bottom: 12px;
}

/* ----- Blog article ----- */
.article {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 20px;
}
.article h1 { font-size: 2.25rem; }
.article h2 { margin-top: 2.25rem; }
.article p, .article li { font-size: 1.05rem; line-height: 1.7; }
.article img {
  border: 1px solid var(--border);
  border-radius: 6px;
  margin: 20px 0;
}
.article .meta {
  color: var(--text-subtle);
  font-size: 0.95rem;
  margin-bottom: 24px;
}
.article .callout {
  background: var(--bg-subtle);
  border-left: 3px solid var(--primary);
  padding: 16px 20px;
  border-radius: 4px;
  margin: 24px 0;
}

/* ----- CTA block ----- */
.cta-block {
  background: linear-gradient(135deg, #0052CC 0%, #0065FF 100%);
  color: #FFFFFF;
  padding: 56px 24px;
  border-radius: 8px;
  text-align: center;
}
.cta-block h2 { color: #FFFFFF; }
.cta-block p { color: rgba(255,255,255,0.92); max-width: 620px; margin: 0 auto 24px; font-size: 1.1rem; }
.cta-block .btn-primary {
  background: #FFFFFF;
  color: var(--primary) !important;
}
.cta-block .btn-primary:hover { background: #F4F5F7; }

/* ----- Footer ----- */
.site-footer {
  background: var(--bg-subtle);
  border-top: 1px solid var(--border);
  padding: 40px 0 32px;
  color: var(--text-subtle);
  font-size: 0.9rem;
}
.site-footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.site-footer a { color: var(--text-subtle); }
.site-footer nav { display: flex; gap: 20px; flex-wrap: wrap; }

/* ----- Utility ----- */
.center { text-align: center; }
.muted { color: var(--text-subtle); }
.pill {
  display: inline-block;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 3px 10px;
  font-size: 0.8rem;
  color: var(--text-subtle);
}

/* ----- Responsive ----- */
@media (max-width: 1200px) {
  .pricing-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 960px) {
  h1 { font-size: 2rem; }
  .hero h1 { font-size: 2.25rem; }
  .grid-3 { grid-template-columns: 1fr; }
  .feature-row { grid-template-columns: 1fr; gap: 24px; padding: 40px 0; }
  .feature-row.reverse .feature-text { order: 1; }
  .feature-row.reverse .feature-img { order: 2; }
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .hero { padding: 48px 0 32px; }
  .hero h1 { font-size: 1.75rem; }
  .hero .lead { font-size: 1.05rem; }
  section { padding: 48px 0; }
  .nav { display: none; }
  .nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--header-height);
    left: 0; right: 0;
    background: #FFFFFF;
    border-bottom: 1px solid var(--border);
    padding: 16px 20px;
    gap: 12px;
  }
  .nav-toggle { display: block; }
  .grid-2 { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .shortcut-grid { grid-template-columns: 1fr; }
  .site-footer .container { flex-direction: column; text-align: center; }
}
