/* Ganttry website. Colours are Ganttry's own, as in src/brands/ganttry/theme.css. */
:root {
  --navy: #13294b;
  --blue: #1d56a0;
  --bright: #3b7dd1;
  --light: #7ea8df;
  --ink: #2f3640;
  --muted: #5b6573;
  --line: #dbe1e8;
  --wash: #f5f7fa;
  --white: #ffffff;
  --error: #b42318;
  --font: Arial, Helvetica, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  overflow-wrap: break-word;
  background: var(--white);
  color: var(--ink);
  font: 16px/1.6 var(--font);
}

a { color: var(--blue); }
a:hover { color: var(--navy); }

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */

.site-header {
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--navy);
  font-size: 22px;
  font-weight: bold;
  text-decoration: none;
}

.brand img { width: 34px; height: 34px; }

.site-header nav {
  display: flex;
  gap: 20px;
  font-size: 15px;
}

.site-header nav a { text-decoration: none; }

/* Buttons */

.button {
  display: inline-block;
  padding: 11px 20px;
  border: 1px solid var(--blue);
  border-radius: 6px;
  background: var(--blue);
  color: var(--white);
  font-weight: bold;
  text-decoration: none;
}

.button:hover { background: var(--navy); border-color: var(--navy); color: var(--white); }

.button.secondary {
  background: var(--white);
  color: var(--blue);
}

.button.secondary:hover { background: var(--wash); color: var(--navy); }

/* Homepage */

.hero {
  padding: 64px 0 40px;
  text-align: center;
}

.hero h1 {
  max-width: 760px;
  margin: 0 auto 16px;
  color: var(--navy);
  font-size: 42px;
  line-height: 1.15;
}

.hero p {
  max-width: 640px;
  margin: 0 auto 28px;
  color: var(--muted);
  font-size: 19px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.badge {
  display: inline-block;
  margin-bottom: 18px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--wash);
  color: var(--blue);
  font-size: 14px;
  font-weight: bold;
}

.screenshot {
  display: block;
  width: 100%;
  height: auto;
  margin: 40px 0 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 12px 40px rgba(19, 41, 75, 0.12);
}

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  padding-top: 64px;
  padding-bottom: 64px;
}

.features h3 {
  margin: 0 0 6px;
  color: var(--navy);
  font-size: 18px;
}

.features p { margin: 0; color: var(--muted); }

.band {
  padding: 56px 0;
  background: var(--wash);
}

.band h2 {
  margin: 0 0 12px;
  color: var(--navy);
  font-size: 28px;
}

.band .columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.band ul { margin: 0; padding-left: 20px; }
.band li { margin-bottom: 6px; }

.closing {
  padding: 64px 0;
  text-align: center;
}

.closing h2 {
  margin: 0 0 12px;
  color: var(--navy);
  font-size: 28px;
}

.closing p { margin: 0 0 24px; color: var(--muted); }

/* Text pages: privacy, terms, contact */

.page {
  max-width: 760px;
  padding-top: 40px;
  padding-bottom: 64px;
}

.page h1 { color: var(--navy); font-size: 34px; margin: 0 0 4px; }
.page h2 { color: var(--navy); font-size: 21px; margin: 32px 0 8px; }
.page .updated { color: var(--muted); margin: 0 0 24px; }
.page table { width: 100%; border-collapse: collapse; margin: 8px 0 16px; font-size: 15px; }
.page th, .page td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.page th { color: var(--navy); }

/* Footer */

.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-top: 24px;
  padding-bottom: 32px;
}

.site-footer nav { display: flex; gap: 18px; }
.site-footer .legal { flex-basis: 100%; margin: 0; font-size: 13px; }

@media (max-width: 760px) {
  .hero { padding-top: 40px; }
  .hero h1 { font-size: 32px; }
  .hero p { font-size: 17px; }
  .features, .band .columns { grid-template-columns: 1fr; }
  .site-header .wrap { flex-wrap: wrap; height: auto; padding-top: 12px; padding-bottom: 12px; row-gap: 6px; }
  .site-header nav { flex-wrap: wrap; gap: 6px 16px; font-size: 14px; }
  .site-header nav .wide-only { display: none; }
  .page table { display: block; overflow-x: auto; }
}

/* Pricing page */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.pricing-hero {
  padding: 56px 0 96px;
  background: linear-gradient(180deg, var(--wash), color-mix(in srgb, var(--light) 22%, var(--white)));
  text-align: center;
}

.pricing-hero h1 {
  margin: 0 0 10px;
  color: var(--navy);
  font-size: 40px;
}

.pricing-hero p {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 18px;
}

.period-switch {
  display: inline-flex;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
}

.period-switch button {
  padding: 8px 20px;
  border: none;
  border-radius: 999px;
  background: none;
  color: var(--ink);
  font: inherit;
  font-weight: bold;
  cursor: pointer;
}

.period-switch button span {
  margin-left: 4px;
  color: var(--bright);
  font-size: 13px;
}

.period-switch button[aria-checked='true'] {
  background: var(--navy);
  color: var(--white);
}

.period-switch button[aria-checked='true'] span {
  color: var(--light);
}

/* Three cards side by side, equal height, pulled up into the header band */

.plan-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 24px;
  margin-top: -64px;
}

.plan-card {
  display: flex;
  flex-direction: column;
  padding: 28px 28px 24px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
  box-shadow: 0 6px 24px rgba(19, 41, 75, 0.08);
}

/* The highlighted plan: a blue frame and band, without moving its content out of line with the others. */
.plan-card.featured {
  padding: 27px 27px 23px;
  border: 2px solid var(--blue);
  box-shadow: inset 0 6px 0 var(--blue), 0 14px 40px rgba(19, 41, 75, 0.16);
}

.plan-card .eyebrow {
  margin: 0 0 6px;
  color: var(--bright);
  font-size: 13px;
  font-weight: bold;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.plan-card.featured .eyebrow { color: var(--blue); }

.plan-card h2 {
  margin: 0;
  color: var(--navy);
  font-size: 26px;
}

.plan-card .tagline {
  min-height: 3.2em;
  margin: 6px 0 18px;
  color: var(--muted);
}

.plan-card .price { display: none; }
.plan-cards[data-showing='yearly'] .price[data-period='yearly'],
.plan-cards[data-showing='monthly'] .price[data-period='monthly'] { display: block; }

.plan-card .amount {
  display: block;
  color: var(--navy);
  font-size: 46px;
  font-weight: bold;
  line-height: 1.05;
}

.plan-card .per {
  display: block;
  min-height: 1.6em;
  margin-top: 6px;
  color: var(--muted);
  font-size: 15px;
}

.plan-card .note {
  min-height: 1.5em;
  margin: 10px 0 20px;
  color: var(--muted);
  font-size: 13px;
}

.plan-card .button {
  text-align: center;
}

.plan-card .button.unavailable {
  border-color: var(--line);
  color: var(--muted);
  cursor: default;
}

.plan-card .button.unavailable:hover { background: var(--white); }

.plan-features {
  margin: 24px 0 0;
  padding: 20px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.plan-features li {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}

.tick {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 3px;
}

.tick circle { fill: color-mix(in srgb, var(--bright) 14%, var(--white)); }
.tick path { fill: none; stroke: var(--blue); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

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

.beta-note {
  margin: 24px 0 0;
  color: var(--muted);
  text-align: center;
}

/* Comparison table */

.compare { padding-top: 64px; }

.compare h2,
.faq h2 {
  margin: 0 0 16px;
  color: var(--navy);
  font-size: 28px;
  text-align: center;
}

.compare-wrap { overflow-x: auto; }

.compare table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
}

.compare th,
.compare td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}

.compare thead th {
  position: sticky;
  top: 0;
  background: var(--white);
  color: var(--navy);
  font-size: 18px;
}

.compare thead th.featured { color: var(--blue); }

.compare td {
  width: 20%;
  text-align: center;
}

.compare td .tick { margin: 0 auto; display: block; }

.compare tbody th {
  font-weight: normal;
  text-align: left;
}

.compare tr.group th {
  padding-top: 24px;
  border-bottom: 2px solid var(--navy);
  color: var(--navy);
  font-weight: bold;
}

/* Questions */

.faq {
  max-width: 760px;
  margin: 0 auto;
  padding: 64px 0 24px;
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  padding: 16px 32px 16px 0;
  position: relative;
  color: var(--navy);
  font-weight: bold;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  position: absolute;
  top: 12px;
  right: 4px;
  color: var(--bright);
  font-size: 22px;
  content: '+';
}

.faq details[open] summary::after { content: '\2212'; }

.faq details p {
  margin: 0 0 16px;
  color: var(--muted);
}

@media (max-width: 860px) {
  .plan-cards { grid-template-columns: 1fr; max-width: 460px; margin-left: auto; margin-right: auto; }
  .plan-card .tagline, .plan-card .per, .plan-card .note { min-height: 0; }
  .pricing-hero h1 { font-size: 32px; }
}

/* The free tools: MPP viewer and MPP to XML */

.tool-hero {
  padding: 56px 0 48px;
  background: linear-gradient(180deg, var(--wash), color-mix(in srgb, var(--light) 22%, var(--white)));
  text-align: center;
}

.tool-hero h1 { margin: 0 0 10px; color: var(--navy); font-size: 40px; }
.tool-hero > .wrap > p { max-width: 640px; margin: 0 auto 28px; color: var(--muted); font-size: 18px; }

.tool-box {
  max-width: 620px;
  margin: 0 auto;
  padding: 24px;
  border-radius: 14px;
  background: var(--white);
  box-shadow: 0 10px 30px rgba(19, 41, 75, 0.12);
}

.tool-drop {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 28px 16px;
  border: 2px dashed var(--light);
  border-radius: 10px;
  cursor: pointer;
}

.tool-drop:hover, .tool-box.dragging .tool-drop { border-color: var(--blue); background: var(--wash); }
.tool-choose { color: var(--ink); font-size: 17px; }
.tool-choose strong { color: var(--blue); }
.tool-file { color: var(--navy); font-weight: bold; }
.tool-file:empty { display: none; }

.tool-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 18px;
}

.tool-actions[hidden], .tool-actions [hidden] { display: none; }
.tool-actions button { font: inherit; font-weight: bold; cursor: pointer; }
.tool-actions button:disabled { opacity: 0.6; cursor: default; }

.tool-status { min-height: 1.4em; margin: 14px 0 0; color: var(--blue); }
.tool-status.problem { color: var(--error); }
.tool-note { margin: 6px 0 0; color: var(--muted); font-size: 13px; }

.tool-steps { max-width: 760px; margin: 0 auto; padding: 56px 0 32px; }
.tool-steps h2 { margin: 0 0 16px; color: var(--navy); font-size: 28px; text-align: center; }
.tool-steps ol { margin: 0; padding-left: 22px; }
.tool-steps li { margin-bottom: 12px; }

.tool-page .screenshot { margin-top: 8px; }

@media (max-width: 760px) {
  .tool-hero h1 { font-size: 30px; }
}

/* Greeting for visitors from Product Hunt */

.welcome-bar {
  padding: 10px 0;
  background: var(--navy);
  color: var(--white);
  font-size: 15px;
  text-align: center;
}

.welcome-bar a { margin-left: 6px; color: var(--light); font-weight: bold; }
